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

[WNMGDS-2921] Implement Filter Chip Web Component #3270

Merged
merged 12 commits into from
Oct 15, 2024

Conversation

JackRyan1989
Copy link
Contributor

Summary

  • Ticket
  • Addition of ds-filter-chip web component
  • Stories and Unit tests added

How to test

  1. Pull down this branch locally
  2. Run yarn build
  3. Run yarn test:unit:wc to confirm that unit tests pass
  4. Run yarn storybook & confirm that all attributes are editable in the single filter chip example. I've disabled the props table in the multichip example because the controls didn't do anything.
  5. Also in Storybook confirm that a ds-delete custom event is fired when clicking the chip
  6. I've not added an example in Astro, but have in the CDN Web Components. You can confirm the functionality there.

Checklist

  • Prefixed the PR title with the Jira ticket number as [WNMGDS-####] Title or [NO-TICKET] if this is unticketed work.
  • Selected appropriate Type (only one) label for this PR, if it is a breaking change, label should only be Type: Breaking
  • Selected appropriate Impacts, multiple can be selected.
  • Selected appropriate release milestone

@jack-ryan-nava-pbc
Copy link
Collaborator

Ugh. I created this while logged into my old Github account. Apparently that one still has write access?

@jack-ryan-nava-pbc jack-ryan-nava-pbc self-assigned this Oct 10, 2024
@jack-ryan-nava-pbc jack-ryan-nava-pbc added Impacts: Core Impacts the core DS primarily, changes may occur in other themes as well. Type: Added Indicates a new feature. labels Oct 10, 2024
@jack-ryan-nava-pbc jack-ryan-nava-pbc added this to the 12.0.0-beta.0 milestone Oct 10, 2024
Copy link
Collaborator

@tamara-corbalt tamara-corbalt left a comment

Choose a reason for hiding this comment

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

Looks great so far!
Noticing a lot of updated snapshots here. Are they the same ones as in pr-3271? If so, would it be cleaner to revert these changes and merge with main once 3271 is merged?"

Copy link
Collaborator

@kim-cmsds kim-cmsds left a comment

Choose a reason for hiding this comment

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

The filter chip work looks good to me! I would spend a little of time verifying that the snapshot changes are all relevant to work done here to @tamara-corbalt's point.

Copy link
Collaborator

@tamara-corbalt tamara-corbalt left a comment

Choose a reason for hiding this comment

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

Aside from merge conflicts that need to be resolved, looks great to me!

@jack-ryan-nava-pbc jack-ryan-nava-pbc force-pushed the jryan/wnmgds-2921-ds-filter-chip branch from 38afbaf to 7a4e118 Compare October 15, 2024 18:16
@jack-ryan-nava-pbc jack-ryan-nava-pbc merged commit 7822fb0 into main Oct 15, 2024
1 check passed
@jack-ryan-nava-pbc jack-ryan-nava-pbc deleted the jryan/wnmgds-2921-ds-filter-chip branch October 15, 2024 19:27
kim-cmsds pushed a commit that referenced this pull request Oct 17, 2024
* Initial filter chip code

* Initial filter chip tests

* Add initial stories

* Fix typo and update snapshot

* Unit tests are passing

* Import tooltip and filter chip

* Add small filter chip example to astro

* Update cdn-webcomponents example

* Hiding controls on multi chip story since they don't seem to work

* Revert "Add small filter chip example to astro"

This reverts commit 4e4446f.

* Change aria-clear-label to clear-label to avoid adding a nonexistent aria label

* Whole lotta snapshot updates

---------

Co-authored-by: jack-ryan-nava-pbc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Impacts: Core Impacts the core DS primarily, changes may occur in other themes as well. Type: Added Indicates a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants