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

Implement Date Range Filtering with Zod and useZodSearchParams #2266

Closed
alonp99 opened this issue Mar 31, 2024 · 0 comments
Closed

Implement Date Range Filtering with Zod and useZodSearchParams #2266

alonp99 opened this issue Mar 31, 2024 · 0 comments

Comments

@alonp99
Copy link
Collaborator

alonp99 commented Mar 31, 2024

Task Definition
What?
Add a search query params schema for from and to dates to be used with useZodSearchParams.

Why?
To enable date range filtering on the Statistics page, allowing users to customize the data displayed within specified time frames.

How?

Define a Zod schema that validates from and to date parameters.
Integrate this schema with useZodSearchParams to parse and validate query parameters from the URL.
Acceptance Criteria:

Date range query parameters are correctly parsed and validated.
The Statistics page data updates based on the selected date range.
There are no errors in the devtools or terminal and no infinite redirects due to invalid search query params

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants