feat(dashboard): group analytics sections and rename headings#2140
Conversation
…yanshu-byte-coder#1397 - Top Repositories → Repo Analytics (TopRepos.tsx, dashboard-layout.ts) - PR Breakdown + PR Review Time Trend → PR Analytics — Breakdown/Review Trend (PRBreakdownChart.tsx, PRReviewTrendChart.tsx, dashboard-layout.ts) - PR Metrics → PR Analytics (PRMetrics.tsx, dashboard-layout.ts) - Commits by Time of Day → Activity Overview (CommitTimeChart.tsx, dashboard-layout.ts) - Issue Metrics → Issue Analytics (IssueMetrics.tsx, dashboard-layout.ts) Removes repetitive naming; groups related PR metrics under a unified "PR Analytics" umbrella; aligns widget labels in the customizable dashboard panel. Closes Priyanshu-byte-coder#1397
|
@singhanurag0317-bit 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 PR now has merge conflicts after recent changes to git fetch origin
git rebase origin/main |
|
Hi! This PR has merge conflicts with the git fetch upstream
git rebase upstream/main
# resolve any conflicts
git push --force-with-leaseIf you're no longer working on this, let us know and we can close it. Thanks! |
|
This PR has merge conflicts with the main branch. Please rebase your branch on latest main and resolve the conflicts so it can be reviewed and merged. |
Summary
Closes #1397
Problem
The dashboard had repetitive and overlapping section names:
These naming issues made the dashboard feel cluttered and hard to scan.
Solution
Renamed all affected widget headings and the
DASHBOARD_WIDGET_LABELSregistry to group related metrics under clear analytic umbrella terms, exactly matching the acceptance criteria in #1397:The "PR Analytics" prefix on Breakdown and Review Trend cards makes the grouping relationship immediately obvious without requiring users to rearrange widgets.
Changes
src/lib/dashboard-layout.ts: UpdatedDASHBOARD_WIDGET_LABELSfor 6 widget IDs so the customizable dashboard panel shows updated names in its sidebar/settingssrc/components/PRMetrics.tsx: SectionHeader title"PR Metrics"→"PR Analytics"src/components/PRBreakdownChart.tsx:<h2>text"PR Breakdown"→"PR Analytics — Breakdown"src/components/PRReviewTrendChart.tsx:<h2>text"PR Review Time Trend"→"PR Analytics — Review Trend"src/components/TopRepos.tsx: SectionHeader title →"Repo Analytics"src/components/CommitTimeChart.tsx:<h2>text →"Activity Overview"src/components/IssueMetrics.tsx: any heading/label"Issue Metrics"→"Issue Analytics"Testing
DASHBOARD_WIDGET_LABELS)."PR Breakdown"/"PR Review Time Trend"/"Top Repositories"/"Commit Time"/"Issue Metrics"in the UI — none should appear).