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

MultiSelect component used in Event Type filter #1806

Merged
merged 4 commits into from
Jan 19, 2024
Merged

Conversation

Alex-Tideman
Copy link
Contributor

@Alex-Tideman Alex-Tideman commented Jan 18, 2024

Description & motivation 💭

To support multi-select filtering of event types in the event history, such as filtering out signals and showing the rest.

You can also Select All or Clear All.

This changes the $eventCategoryFilter from a string to string[].

Screenshots (if applicable) 📸

MultiSelectEventFilter.mov

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

Copy link

vercel bot commented Jan 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
holocene ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 19, 2024 4:39pm

Copy link
Contributor

@rossedfort rossedfort left a comment

Choose a reason for hiding this comment

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

Looks pretty good so far, just some small suggestions

Comment on lines +79 to +85
<Checkbox
on:click={() => onOptionClick(option)}
slot="leading"
{checked}
label={option.label}
labelHidden
/>
Copy link
Contributor

Choose a reason for hiding this comment

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

check out bind:group 👀

Copy link
Member

Choose a reason for hiding this comment

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

Good catch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Normally would agree, but we need to call onChange as well

src/lib/holocene/select/multi-select.svelte Outdated Show resolved Hide resolved
src/lib/holocene/select/multi-select.svelte Outdated Show resolved Hide resolved
@Alex-Tideman Alex-Tideman merged commit 35cc716 into main Jan 19, 2024
11 checks passed
@Alex-Tideman Alex-Tideman deleted the multi-select-filter branch January 19, 2024 17:02
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.

3 participants