Skip to content

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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

adhityamamallan
Copy link
Member

@adhityamamallan adhityamamallan commented May 12, 2025

Summary

  • Create updated DateFilterV2 component that supports dynamic quick ranges and has improved UX
  • Use new date filter in Basic Visibility workflow listing

Misc

  • Fix type for UseMergedInfiniteQueries query key
  • Fix unit tests to run in UTC
  • Fix unit tests for Basic Visibility table (they were broken ever since we updated the page size to 20)

Test plan

Added + updated unit tests, and ran locally.

Screenshot 2025-05-12 at 5 33 09 PM Screenshot 2025-05-12 at 5 33 19 PM Screenshot 2025-05-12 at 5 33 48 PM Screenshot 2025-05-12 at 5 33 51 PM Screenshot 2025-05-12 at 5 33 58 PM Screenshot 2025-05-12 at 5 50 32 PM

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

@adhityamamallan adhityamamallan changed the title Date filter v2 Create improved DateFilterV2 component and update Basic Visibility filters May 12, 2025
@adhityamamallan adhityamamallan marked this pull request as ready for review May 12, 2025 15:35
@adhityamamallan adhityamamallan requested a review from Copilot May 12, 2025 15:50
Copy link

@Copilot Copilot AI left a 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

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.

1 participant