Feat/repo contribution distribution chart#367
Conversation
|
@prashant2007-wq 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. |
There was a problem hiding this comment.
Thanks for your first PR on DevTrack! 🎉
A maintainer will review it within 48 hours. While you wait:
- Make sure CI is passing (type-check + lint)
- Double-check the PR description is filled out and the issue is linked
- Feel free to ask questions in Discussions if you need help
|
Two critical fixes needed before merge: 1. Remove committed env file (critical)
git rm ".env.localø"
git pushAlso add 2. Hardcoded Tailwind colors break dark mode The component uses Tailwind utility classes that assume a dark background and break in light mode: // Current (broken in light mode):
"border-white/10 bg-white/5" → border-[var(--border)] bg-[var(--card)]
"bg-black/10" → bg-[var(--control)]
"text-muted-foreground" → text-[var(--muted-foreground)]
"bg-primary text-primary-foreground" → bg-[var(--accent)] text-[var(--accent-foreground)]Also, the first chart color Fix these two and the PR is mergeable. |
Repository Contribution Distribution Chart
The dashboard includes a Repository Contribution Distribution Chart that helps users understand which repositories they contribute to the most.
This feature shows repository-wise commit distribution using real GitHub contribution data fetched from the backend.
✦ What It Shows
✦ API Used
The chart uses the existing backend endpoint:
This ensures the chart displays real repository contribution data for the logged-in GitHub user instead of static or sample data.
✦ Dashboard Placement
The chart is displayed below the Contribution Heatmap section on the dashboard.
✦ Features
✦ How to Test Locally
.env.local:Log in using GitHub.
Scroll below the Contribution Heatmap section.
Verify that the Repository Contribution Distribution Chart is visible.
Test both chart modes:
✦ UI States
The component handles all major dashboard states: