Feat: replace horizontal language breakdown bar with Recharts donut chart#1480
Feat: replace horizontal language breakdown bar with Recharts donut chart#1480diksha78dev wants to merge 1 commit into
Conversation
|
@diksha78dev 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):
|
e7b6cd1 to
a45c663
Compare
Priyanshu-byte-coder
left a comment
There was a problem hiding this comment.
PR modifies src/app/dashboard/page.tsx which conflicts with recent main changes (3 merge conflicts). Please rebase on main — the dashboard page was restructured in a recent commit. The LanguageBreakdown.tsx recharts refactor itself looks good; only the dashboard/page.tsx conflict needs resolving.
84f6dd6 to
f488cb0
Compare
|
@Priyanshu-byte-coder I have updated the PR Kindly review and let me know anything changes required....I'd be happy to resolve them. |
f488cb0 to
a0572fe
Compare
Summary
Replaces the legacy horizontal
LanguageBreakdownwidget with a new client-sideLanguagesCardwidget rendering a Recharts-based donut chart on the dashboard.Closes #938
Type of Change
Changes Made
LanguagesCard.tsximplementing a RechartsPieChartdonut layout with custom tooltips (formatting byte size into KB/MB and percentages) and exact GitHub programming language color mappings.LanguageBreakdownwith the new donut chart on the dashboard page.LanguageBreakdown.tsxcomponent./api/metrics/languagesdata payloads ine2e/dashboard-widgets.spec.jsto prevent visual test discrepancies.LanguagesCard.tsxinsideDEVELOPMENT.md.How to Test
Steps for the reviewer to verify this works:
npm run dev.http://localhost:3000/dashboardand log in.npx playwright testand TypeScript check usingnpm run type-checkto confirm all validation checks pass.Screenshots (if UI change)
Checklist
npm run lintpasses locallynpm run type-check)Accessibility Checklist
Additional Notes
The widget degrades gracefully to a fallback text display if no repository data is returned from the GitHub API.