Skip to content

Comments

feat: Better RowSidePanel handling#706

Closed
ernestii wants to merge 8 commits intov2from
ernest/hdx-1498-lots-of-results-tables-cant-open-event-details-on-click
Closed

feat: Better RowSidePanel handling#706
ernestii wants to merge 8 commits intov2from
ernest/hdx-1498-lots-of-results-tables-cant-open-event-details-on-click

Conversation

@ernestii
Copy link
Contributor

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Mar 22, 2025

⚠️ No Changeset found

Latest commit: 59e7c8b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ernestii ernestii force-pushed the ernest/hdx-1498-lots-of-results-tables-cant-open-event-details-on-click branch 2 times, most recently from 4dac540 to 258eec7 Compare March 22, 2025 23:09
// Compress and decompress the value to save space in the URL
const deflateParser = createParser({
parse: (value: string) => {
return JSON.parse(LZString.decompressFromBase64(value)) as SidePanelStack;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should keep them user readable, that way it's easy to interact programmatically as well (people who build URLs dynamically from retool and other internal platforms for example)

@ernestii ernestii force-pushed the ernest/hdx-1498-lots-of-results-tables-cant-open-event-details-on-click branch 2 times, most recently from f9a02b8 to 1f81214 Compare March 26, 2025 01:40
@ernestii ernestii marked this pull request as ready for review March 26, 2025 01:40
@ernestii ernestii force-pushed the ernest/hdx-1498-lots-of-results-tables-cant-open-event-details-on-click branch from 1f81214 to 0e519bb Compare March 26, 2025 02:46
@ernestii ernestii requested a review from MikeShi42 March 27, 2025 21:59
@teeohhem teeohhem self-requested a review March 28, 2025 20:53
teeohhem
teeohhem previously approved these changes Mar 28, 2025
Copy link
Contributor

@teeohhem teeohhem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean approach. Tested locally and things worked as expected.

A few notes for later (will create tickets)

  1. If you find yourself clicking into many rows (surrounding context is an example), it can take as many clicks to completely close the side panels completely. A "close all" button might be nice.
  2. Existing bookmarks with tabs may not work (I don't think we really care)

Copy link
Member

@wrn14897 wrn14897 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed changes to update all k8s dashboard related components

Copy link
Member

@wrn14897 wrn14897 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One issue I noticed is that the row side panels keep stacking when I use 'j' and 'k' to navigate between rows, and there's no way to close all the panels at once. Also I'm curious what's the best way to handle nested side panels? (ex: k8s dashboard)

Copy link
Contributor

@teeohhem teeohhem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewing further and discussing. Don't merge yet

@teeohhem teeohhem closed this Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants