feat: add date range filter to PR analytics widget#2456
Open
Srishti-Gupta74 wants to merge 2 commits into
Open
feat: add date range filter to PR analytics widget#2456Srishti-Gupta74 wants to merge 2 commits into
Srishti-Gupta74 wants to merge 2 commits into
Conversation
GSSoC Label Checklist 🏷️@Umbrella-io — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
Contributor
Author
|
Hi @Priyanshu-byte-coder! I took a look at the failing checks and they seem to be coming from existing Playwright tests rather than the changes in this PR. The failures are currently in:
I also verified locally that the project builds successfully and passes:
Happy to investigate the Playwright failures as well if needed. |
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
Adds a date range filter (7d / 30d / 90d) to the PR Analytics widget and connects it to the backend metrics API. PR analytics data now updates dynamically based on the selected time range, providing a more consistent analytics experience across the dashboard.
Closes #2453
Type of Change
What Changed
How to Test
Expected result:
Screenshots / Recordings
Checklist
console.log, debug code, or commented-out blocksnpm run lintpasses locallynpm run type-check)Accessibility (UI changes only)
Additional Context
This implementation reuses the existing date-range filtering pattern already used elsewhere in the dashboard. The selected range is propagated through the frontend, API layer, caching logic, and analytics calculations to ensure all PR metrics remain consistent with the chosen time window.