Add last updated timestamp tracking to dashboard widgets - #2803
tayyibah07 wants to merge 3 commits into
Conversation
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
|
New UI/feature PRs are on hold during the code quality sprint — see discussion #2651. PRs for tests, refactoring, bug fixes, docs, and performance are welcome. |
|
New feature/UI PRs are on hold during the code-quality sprint — see discussion #2651. We'll revisit after the sprint; tests, refactors, and bug-fix PRs are the priority right now. |
|
Thank you for the update! I'll keep the PR open and am happy to make any requested changes once feature reviews resume. Looking forward to your feedback. |
|
This imports @/hooks/useLastUpdated and @/components/LastUpdatedTimestamp, but neither file exists on main nor is added by this PR — the build fails. Looks like the new files were never committed. Please push them and re-request review; the shared-hook refactor itself is a good direction. |
|
Thanks for catching that! I had accidentally missed committing the shared |
Summary
This PR enhances dashboard contribution analytics by introducing consistent last-updated timestamp tracking across key metrics components and improving contribution insight visibility for users.
Closes #2670
Type of Change
What Changed
ContributionHeatmap,GoalTracker,PRMetrics,StreakTracker, andTopReposto use a unified timestamp management approach.How to Test
npm run dev.Expected result:
All dashboard analytics components display correctly, contribution data loads successfully, and last updated timestamps refresh accurately after data updates.
Screenshots / Recordings
Checklist
console.log, debug code, or commented-out blocksnpm run lintpasses locally (existing repository warnings remain unrelated to this PR)npm run type-check)Accessibility (UI changes only)
Additional Context
This PR focuses on improving the user experience by providing clearer visibility into when dashboard metrics were last refreshed. The changes are limited to analytics-related components and do not introduce any breaking changes.