Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for sections in searchable filters #3778

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

AdityaHegde
Copy link
Collaborator

In preparation of adding measure filters we need measures and dimensions sections in the add filter drop down.

This PR only adds this grouping feature to our searchable filter component. Visit http://localhost:3000/dev/grouped-searchable-filter to check how it will look.

@AdityaHegde AdityaHegde self-assigned this Jan 4, 2024
Copy link
Contributor

@ericpgreen2 ericpgreen2 left a comment

Choose a reason for hiding this comment

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

Looks good 👍

Nit: in the multiselect, I noticed the checkmarks are a different color when one item is selected...

image

... versus when two items are selected...

image

@@ -127,6 +127,8 @@
$: bgColor = dark
? `${hovered ? "bg-gray-600" : ""}`
: `${hovered ? "bg-gray-200" : ""}`;

$: console.log(icon, selected);
Copy link
Contributor

Choose a reason for hiding this comment

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

Leftover console log

Copy link
Contributor

Choose a reason for hiding this comment

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

In the future, it'd be better to use Storybook rather than a /dev route, so these showcases aren't included in the production build.

@AdityaHegde
Copy link
Collaborator Author

I havent changed the color scheme. I believe that is to indicate that once selected, there should atleast be a single value. Either way it is a design concern and out of scope of this PR.

@AdityaHegde AdityaHegde merged commit cd2a4fd into main Jan 5, 2024
4 checks passed
@AdityaHegde AdityaHegde deleted the adityahegde/grouped-search-menu branch January 5, 2024 04:54
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.

2 participants