feat: date range filter and CSV export for dashboard#6
Merged
Conversation
Two practical dashboard improvements in one cohesive change:
1. Date range filter (7 / 30 / 90 days / All time)
- Defaults to Last 30 days to show recent data first
- Applied before the existing region filter (composable)
- Empty-state UI when filters produce no results, with a
'Clear Filters' button to reset both dropdowns at once
2. CSV export
- 'Export CSV' button appears only when filtered results exist
- Exports the current filtered view (date + region) so users
get exactly what they see on screen
- RFC 4180-compliant quoting (commas and quotes in fields escaped)
- Filename includes today's date (pingdiff-results-YYYY-MM-DD.csv)
- Columns: Date, Server, Region, Avg/Min/Max Ping, Jitter,
Packet Loss, ISP, Country, City
Also: moved the Refresh button into the filter bar (consistent toolbar),
added a result count label to the Recent Tests table header, and
improved the header layout to stack cleanly on mobile (flex-col → sm:flex-row).
No new dependencies. No API changes. Pure frontend.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two practical improvements to the dashboard, shipped together:
Date Range Filter
CSV Export
pingdiff-results-YYYY-MM-DD.csvOther polish
Technical notes