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

Fix date filter behavior #94

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Fix date filter behavior #94

merged 3 commits into from
Dec 12, 2024

Conversation

TetraTsunami
Copy link
Member

@TetraTsunami TetraTsunami commented Dec 12, 2024

Fixes #91

Update the blank date filter to populate with earliest and latest incident dates by default and handle device language.

  • Modify src/components/filters/DateFilter.tsx to handle blank dates by populating them with the earliest and latest incident dates.

  • Change the "invalid date" message to be displayed in the device language.

  • Ensure the FilterDate component does not dispatch a filter immediately when it's added.

  • Modify src/components/graphs/IncidentsStats.tsx to export the logic to calculate the earliest and latest incident dates.


For more details, open the Copilot Workspace session.

Fixes #91

Update the blank date filter to populate with earliest and latest incident dates by default and handle device language.

* Modify `src/components/filters/DateFilter.tsx` to handle blank dates by populating them with the earliest and latest incident dates.
* Change the "invalid date" message to be displayed in the device language.
* Ensure the `FilterDate` component does not dispatch a filter immediately when it's added.

* Modify `src/components/graphs/IncidentsStats.tsx` to export the logic to calculate the earliest and latest incident dates.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/DSSD-Madison/Red-CORAL/issues/91?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

Visit the preview URL for this PR (updated for commit ba95c4a):

https://red-coral-map--pr94-tetratsunami-fix-dat-a0l2ggjt.web.app

(expires Thu, 19 Dec 2024 16:33:42 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 448fecd22aac1efe5f83b62a6963333ee67c448b

@TetraTsunami TetraTsunami merged commit f73c3bb into main Dec 12, 2024
2 checks passed
@TetraTsunami TetraTsunami deleted the TetraTsunami/fix-date-filter branch December 12, 2024 16:34
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.

Improve behavior of the blank date filter
1 participant