-
Notifications
You must be signed in to change notification settings - Fork 112
Create improved DateFilterV2 component and update Basic Visibility filters #896
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
base: master
Are you sure you want to change the base?
Create improved DateFilterV2 component and update Basic Visibility filters #896
Conversation
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.
Pull Request Overview
This PR updates the date filtering functionality by replacing the legacy DateFilter component with the improved DateFilterV2, updating types and defaults to support dynamic quick ranges and a better UX. Additionally, changes include updates to query parameter configurations, infinite query type definitions, and corresponding test adjustments.
- Replace the legacy DateFilter with DateFilterV2 in basic workflows filters
- Update query parameter types and defaults in domain-page configuration
- Revise infinite query types and adjust associated tests
Reviewed Changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
src/views/domain-workflows-basic/config/domain-workflows-basic-filters.config.ts | Refactors date filter usage and types to use DateFilterV2 with new stringification helpers |
src/views/domain-page/config/domain-page-query-params.config.ts | Updates date query parameter types and default values to use string-based relative values |
src/views/domain-page/fixtures/domain-page-query-params.ts | Modifies fixture values to align with the new DateFilterValue type |
src/hooks/use-merged-infinite-queries/* | Adjusts type definitions and generic parameters for infinite queries |
src/components/date-filter-v2/* | Introduces new DateFilterV2 component, helper functions, constants, and test suites with updated UX and formatting logic |
package.json | Adds TZ=UTC to test commands to ensure tests run in UTC |
a13c6b1
to
d2adaf2
Compare
Summary
Misc
Test plan
Added + updated unit tests, and ran locally.
Starting a new workflow off-screen and navigating back to the workflow list, to demonstrate fresh data being loaded:
Screen.Recording.2025-05-12.at.11.53.03.AM.mov