fix(dashboard): fetch real commit activity from weekly-summary API instead of hardcoded data - #3362
fix(dashboard): fetch real commit activity from weekly-summary API instead of hardcoded data#3362nyxsky404 wants to merge 7 commits into
Conversation
…stead of hardcoded data
GSSoC Label Checklist 🏷️@Priyanshu-byte-coder — please apply the appropriate labels before merging: Difficulty (pick one):
Quality (optional):
Validation (required to score):
|
|
@Priyanshu-byte-coder Please review, repo is already stared by me |
|
Hi @Priyanshu-byte-coder — gentle nudge. This PR is ready for review from my side. I've rebased/kept it current where possible. If CI is red due to unrelated upstream/main issues or deploy previews, the code change itself should still be reviewable. Please review and merge when you can — and add Thank you! |
|
The headline change is a real fix and I want it: Some overlap has happened since you opened this on 15 Aug, so it needs a rebase. Three separate things: 1. The designs differ: One piece of yours is better than what shipped and I'd like it kept: previousOverflowRef.current = document.body.style.overflow;
// ...
document.body.style.overflow = previousOverflowRef.current;
2. Drop the 3. The failing Rebase on current |
Keep the weekly-summary CommitActivityWidget wiring and drop the workflow and modal changes that already landed on main.
🤖 CodeAnt AI — Review Status
|
|
Merged current
This PR now only wires I'll open a small follow-up for the overflow restore ( |
Pass accountId so the widget refetches on account switch, and omit additions/deletions from the tooltip since weekly-summary does not provide them.
User descriptionSummaryReplaced the hardcoded Changes
Fixes #3351 CodeAnt-AI DescriptionShow account-specific commit activity from live weekly summaries What Changed
Impact
💡 Usage GuideChecking Your Pull RequestEvery time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later. Talking to CodeAnt AIGot a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask: This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code. ExamplePreserve Org Learnings with CodeAntYou can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input: This helps CodeAnt AI learn and adapt to your team's coding style and standards. ExampleRetrigger reviewAsk CodeAnt AI to review the PR again, by typing: Check Your Repository HealthTo analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health. |
User description
Summary
Replaced the hardcoded
MOCK_TELEMETRY_DATAarray inCommitActivityWidgetwith auseEffectfetch to/api/metrics/weekly-summary, which already returns real per-day commit counts (dailyCommits) for the authenticated user.Changes
MOCK_TELEMETRY_DATAconstant.useEffectto fetch/api/metrics/weekly-summaryand map thedailyCommitsresponse into the chart data format.0since the weekly-summary endpoint does not return per-day diff stats; this is honest rather than fabricated.Fixes #3351
CodeAnt-AI Description
Show real commit activity in the dashboard
What Changed
Impact
✅ Accurate commit activity✅ Clearer loading and failure messages✅ No fabricated repository metrics💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.