feat: add informational tooltips for streak stats cards#3216
Open
shakshi127 wants to merge 4 commits into
Open
feat: add informational tooltips for streak stats cards#3216shakshi127 wants to merge 4 commits into
shakshi127 wants to merge 4 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):
|
Owner
|
CI is red — Type check fails with duplicate identifiers in Looks like the font import line got duplicated (likely a bad merge). Remove the duplicate |
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 hover/tap tooltips to the dashboard's streak stats cards (Current Streak, Longest Streak, Active Days, Last Commit) so users understand what each metric means.
Closes #2329
Type of Change
What Changed
StreakTracker.tsxwith a working hover/tap tooltip, using the same pattern already implemented in the Streak Freeze section.src/app/page.tsxwhereSyne,DM_Sans, andJetBrains_Monowere imported twice fromnext/font/google, which was causing a build error.How to Test
Expected result: A tooltip appears showing a short explanation of that metric. On mobile/tap devices, tapping the icon should also show the tooltip.
Screenshots / Recordings
(Add a screenshot here if you have one — optional)
Checklist
console.log, debug code, or commented-out blocksnpm run lintpasses locallynpm run type-check)Accessibility (UI changes only)
Additional Context
This PR addresses only the four "Commit Streaks" stat cards from the acceptance criteria in #2329. I'm happy to extend the same tooltip pattern to the PR Analytics metrics (Merge Rate, Avg Review Time, etc.) in a follow-up commit if needed.