Skip to content

Conversation

@brandon-pereira
Copy link
Member

@brandon-pereira brandon-pereira commented Sep 5, 2025

Add accordion functionality to filter groups, changed how the system prioritizes which filters are open by default, added new sort logic for prioritizing certain filters.

Logic as follows;

  • Sort Priority: Any items with checked values, pinned filters, any primary key filters
  • Default Expanded Logic: Any items with checked values, any primary key filters
Screenshot 2025-09-05 at 8 51 18 AM

Fixes: HDX-2299, HDX-2302

Add accordion functionality to filter groups, changed how the system prioritizes which filters are open by default, added new sort logic for prioritizing certain filters.

Fixes: HDX-2299, HDX-2302
@changeset-bot
Copy link

changeset-bot bot commented Sep 5, 2025

🦋 Changeset detected

Latest commit: 6202ce9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@hyperdx/app Patch
@hyperdx/api Patch

Not sure what this means? Click here to learn what changesets are.

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

@vercel
Copy link

vercel bot commented Sep 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
hyperdx-v2-oss-app Ready Ready Preview Comment Sep 10, 2025 3:03pm

connectionId: chartConfig.connection,
});

const { data: source } = useSource({ id: sourceId });
Copy link
Member Author

Choose a reason for hiding this comment

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

Let me know your thoughts on this.. the parent does the same query (DBSearchPage) so we benefit from react query caching instead of passing props/storing in context

tableMetadata: TableMetadata | undefined,
key: string,
) {
return tableMetadata?.primary_key?.includes(key);
Copy link
Member Author

@brandon-pereira brandon-pereira Sep 5, 2025

Choose a reason for hiding this comment

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

Note that tableMetadata?.primary_key? is a string (like ID, Column2, Key3).. so this could actually have false positives. We do this elsewhere in the app, so I kept the convention. However, I could add a utility to attempt to clean up this object (ex .split(', ')) and update all references if we want.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2025

Stably Runner - Test Suite - 'Smoke Test'

Test Suite Run Result: 🟢 Success (4/4 tests passed) [dashboard]


This comment was generated from stably-runner-action

Copy link
Contributor

@pulpdrew pulpdrew left a comment

Choose a reason for hiding this comment

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

Looks super useful! There are two things I noticed:

  1. Previously, we did not show "Load more" until "Show more" is clicked. Now we show both. Is that intentional?
  2. If it is intentional and we keep it that way, would it make sense to automatically "Show more" if the "Load more" is clicked? It seems odd to have to click "Load more" and then "Show more" to see what was just loaded.
Screenshot 2025-09-05 at 5 07 19 PM

@brandon-pereira
Copy link
Member Author

Looks super useful! There are two things I noticed:

1. Previously, we did not show "Load more" until "Show more" is clicked. Now we show both. Is that intentional?

2. If it is intentional and we keep it that way, would it make sense to automatically "Show more" if the "Load more" is clicked? It seems odd to have to click "Load more" and then "Show more" to see what was just loaded.
Screenshot 2025-09-05 at 5 07 19 PM

Good idea, I made it so clicking "Show More" will automatically load more as well!

@brandon-pereira
Copy link
Member Author

Screenshot 2025-09-08 at 9 31 06 AM

@SpencerTorres @teeohhem I took a stab at the feedback from last week. Showing the count seemed too tight (not much room) so instead it will be slightly grayed out if no results exist. Also moved the search icon to the right and tightened up the spacing.

pulpdrew
pulpdrew previously approved these changes Sep 9, 2025
Copy link
Contributor

@pulpdrew pulpdrew left a comment

Choose a reason for hiding this comment

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

LGTM, looks like a great improvement

teeohhem
teeohhem previously approved these changes Sep 10, 2025
@teeohhem teeohhem self-requested a review September 10, 2025 01:53
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.

One final note: The chevron arrows aren't consistent with what we have on the search page.

">" is the default if there is content to expand

and

"V" is if content is expanded.

I realize this is inconsistent with "Load More" as well, bit it is confusing with the addition of the accordion event expansion with search tables now.

image

Copy link
Contributor

@elizabetdev elizabetdev left a comment

Choose a reason for hiding this comment

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

Hi @brandon-pereira,
I noticed a couple of things that could be improved:

  1. If there’s only one item (or just a few), the load more button shouldn’t be displayed since all items are already visible.
Screenshot 2025-09-09 at 12 58 42
  1. The search feels a bit confusing. My instinct was to click the search icon, but that closed the accordion. Having the search input inside the accordion title also felt odd, and sometimes the search icon overlaps with the title.
Screenshot 2025-09-10 at 10 04 17

Suggestion

To address these issues, here’s what I’d suggest. Totally fine if you prefer to handle this in a separate PR or if you’d like me to take it on.

image

@brandon-pereira
Copy link
Member Author

Hi @brandon-pereira, I noticed a couple of things that could be improved:

1. If there’s only one item (or just a few), the load more button shouldn’t be displayed since all items are already visible.
Screenshot 2025-09-09 at 12 58 42
2. The search feels a bit confusing. My instinct was to click the search icon, but that closed the accordion. Having the search input inside the accordion title also felt odd, and sometimes the search icon overlaps with the title.
Screenshot 2025-09-10 at 10 04 17 ### Suggestion

To address these issues, here’s what I’d suggest. Totally fine if you prefer to handle this in a separate PR or if you’d like me to take it on.
image

@elizabetdev Agreed! These all seem like good suggestions, thanks for taking the time to review this! Given timing, I have created another ticket (HDX-2366) to implement this feedback!

Thanks again for reviewing 🙏

@brandon-pereira brandon-pereira merged commit c48f418 into main Sep 10, 2025
8 checks passed
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.

5 participants