feat(repo-health): add interactive Repository Health Explorer#2201
Open
singhanurag0317-bit wants to merge 1 commit into
Open
feat(repo-health): add interactive Repository Health Explorer#2201singhanurag0317-bit wants to merge 1 commit into
singhanurag0317-bit wants to merge 1 commit into
Conversation
Closes Priyanshu-byte-coder#398 Problem: repo health scores were hidden in a tooltip. Users couldn't understand why a repo scored low or what signals to improve. Solution: RepoHealthExplorer.tsx — interactive modal with: - SVG radial gauge ring (score + letter grade A/B/C, animated) - Per-metric breakdown cards: commit freq, PR merge rate, PR turnaround, open issues, recency — with animated progress bars + actionable tips - Stacked score distribution bar - Colour-coded recommendations engine (ok / warn / critical) - Trend indicator (Improving / Stable / Declining) - Keyboard-accessible (Escape-to-close, aria-modal, aria-label) - Zero new API calls — uses existing scoring fns from repo-health.ts TopRepos.tsx: health badge click now opens RepoHealthExplorer modal.
|
Someone is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel. A member of the Team first needs to authorize it. |
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
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
Closes #398
Problem
DevTrack already calculates a Repository Health Score (commit frequency,
PR merge rate, PR turnaround, open issues, recency) but the results were
buried inside a tooltip on the health grade badge in
TopRepos.tsx.Users had no way to understand why a repo scored low or what specific
signals to improve.
Solution
New component:
src/components/RepoHealthExplorer.tsxAn interactive modal that surfaces every scoring dimension individually:
aria-modal,aria-label,role="dialog"Zero new dependencies or API calls — uses the same pure scoring functions from
src/lib/repo-health.tsthat were already in the codebase.Changes
src/components/RepoHealthExplorer.tsx(new, 248 lines): Full interactive health explorer modalsrc/components/TopRepos.tsx(+8 lines): AddedselectedExplorerstate; health-badge click opens the explorer modal alongside the existingRepoHealthPanelTesting