-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: reset filters button #3085
Conversation
* refactor: moar abstraction * tiny nits, update tests * fix test --------- Co-authored-by: angelathe <[email protected]>
Co-authored-by: Mary McGrath <[email protected]>
Co-authored-by: [email protected]
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3085 +/- ##
==========================================
+ Coverage 86.82% 89.19% +2.37%
==========================================
Files 219 82 -137
Lines 13612 4222 -9390
Branches 705 716 +11
==========================================
- Hits 11818 3766 -8052
+ Misses 1785 436 -1349
- Partials 9 20 +11
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 🎉 Just two small questions
PULL REQUEST
Summary
Add a
Reset
button when the filters are not in their default states. Make sure the reset button updates both the URL and the UI.This ended up being a tiny bit finnicky and is a "two step" process. 1. Update the URL. 2. Listen for URL updates to reset the UI. Suggestions for streamlining very welcome.
Related Issue
Fixes #2992
Acceptance Criteria
Reset
button should be visible in the filter barReset
button is clicked.Reset
button is clicked, then the filter box should close automatically.Reset
button should NOT appear in the filter barAdditional Information