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

fix(filter-bar): enable sibling value dependent filters #3847

Merged
merged 15 commits into from
Jul 6, 2023

Conversation

HeartSquared
Copy link
Contributor

@HeartSquared HeartSquared commented Jul 5, 2023

What

Enable Select/MultiSelect filters to load items based on a sibling's selected value.

  • Selected values for dependent filters that are removed on items change are also removed from context values
  • Found issues with the types, so fixed them

Why

KDS-1475

Common use case for consumers.

@HeartSquared HeartSquared requested a review from a team as a code owner July 5, 2023 08:02
@changeset-bot
Copy link

changeset-bot bot commented Jul 5, 2023

🦋 Changeset detected

Latest commit: 338cc8c

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

This PR includes changesets to release 1 package
Name Type
@kaizen/components 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

@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2023

✨ Here is your branch preview! ✨

Last updated for commit 338cc8c: Merge branch 'main' into KDS-1475/filter-bar--example-async-dependent

@HeartSquared HeartSquared changed the title feat(filter-bar): enable sibling value dependent filters fix(filter-bar): enable sibling value dependent filters Jul 6, 2023
@HeartSquared HeartSquared force-pushed the KDS-1475/filter-bar--example-async-dependent branch from abd4f38 to 2301e92 Compare July 6, 2023 00:43
@HeartSquared HeartSquared force-pushed the KDS-1475/filter-bar--example-async-dependent branch from 2301e92 to eff562a Compare July 6, 2023 00:45
@HeartSquared HeartSquared requested review from gyfchong July 6, 2023 00:48
Copy link
Contributor

@mcwinter07 mcwinter07 left a comment

Choose a reason for hiding this comment

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

Looks 🦖 🐜

itemValues.includes(value)
)

if (!checkArraysMatch(filterState.value, filteredValues)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, no more engineers in the building! 😉

Translation: Nice, should be a less brittle way to update those values 🕺

@HeartSquared HeartSquared enabled auto-merge (squash) July 6, 2023 07:48
@HeartSquared HeartSquared merged commit 8d1b4ac into main Jul 6, 2023
@HeartSquared HeartSquared deleted the KDS-1475/filter-bar--example-async-dependent branch July 6, 2023 07: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.

3 participants