Feat: Added commit diff size trend [ISSUE: #174]#322
Conversation
|
@abdullahxyz85 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. |
|
Hi @Priyanshu-byte-coder , |
|
This PR conflicts with recently merged changes. Please rebase onto main: Resolve any conflicts, push, and I'll review. |
|
Hi @abdullahxyz85 — this PR has a merge conflict with git fetch upstream
git rebase upstream/main
# resolve conflicts, then:
git push --force-with-leaseOnce rebased, we'll review and merge. |
|
Sure, i am doing! |
|
@Priyanshu-byte-coder I resolved the conflicts , please review and add label: gssoc:approved and level. |
|
Closing to reopen as separate, isolated feature PRs for proper review |
Priyanshu-byte-coder
left a comment
There was a problem hiding this comment.
Same bundling problem as #321 — please clean up before merge:
1. Remove already-merged files after rebasing
The following files are already in main (merged via #336 and earlier PRs). After rebasing, delete them from this branch:
src/app/api/leaderboard/route.tssupabase/migrations/20260519000000_add_leaderboard_opt_in.sqlsrc/app/leaderboard/page.tsx
2. Scope this PR to DiffTrendChart only
This PR touches prs/route.ts, issues/route.ts, settings/page.tsx, BadgeSection.tsx, TopRepos.tsx, supabase.ts, tsconfig.json — none of these are related to the diff size trend feature. Revert any changes not specifically needed for DiffTrendChart.
The files that belong in this PR:
src/components/DiffTrendChart.tsx✓src/app/api/metrics/diff-trend/route.ts✓src/app/globals.css(adding--success/--destructivetokens) ✓src/app/dashboard/page.tsx(registering the widget) ✓e2e/dashboard-widgets.spec.js(mocking the new route) ✓
The chart component itself looks good: CSS vars throughout, proper loading/error/computing/empty states, clean recharts usage. Just needs the cleanup above.
|
I closed these PR's and opened new PR
I closed these PR's and opened new PR |
Summary [ISSUE: #174 ]
Adds a stacked bar chart showing lines added vs. removed per week over the last 12 weeks, giving insight into codebase growth patterns.
What's Changed
DiffTrendChartcomponent in dashboardImplementation Details
/repos/{owner}/{repo}/stats/code_frequencyAcceptance Criteria Met: ISSUE: #174
Visual Overview:
Code Change Trend: