feat: add date range filter to PR analytics widget#2456
feat: add date range filter to PR analytics widget#2456Srishti-Gupta74 wants to merge 4 commits into
Conversation
GSSoC Label Checklist 🏷️@Umbrella-io — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
|
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 PR has merge conflicts with the current git fetch origin main
git merge origin/main
# resolve conflicts
git push |
|
Thanks for the review @Priyanshu-byte-coder! I have resolved merge conflicts with main and pushed the updated branch. The date range filter changes are preserved. CI/build/type checks are now passing. Kindly re-review it when convenient. Thank you! |
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.