Skip to content

https://github.com/Shiva210Jyoti/devtrack/pull/new/feat/consistency-score-widget#2200

Open
Shiva210Jyoti wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
Shiva210Jyoti:feat/consistency-score-widget
Open

https://github.com/Shiva210Jyoti/devtrack/pull/new/feat/consistency-score-widget#2200
Shiva210Jyoti wants to merge 1 commit into
Priyanshu-byte-coder:mainfrom
Shiva210Jyoti:feat/consistency-score-widget

Conversation

@Shiva210Jyoti
Copy link
Copy Markdown

Description

Adds a Smart Developer Consistency Score & Coding Streak Intelligence System that analyzes coding activity patterns and provides meaningful insights beyond raw streak numbers.

Related Issue

Closes #1769

What's Changed

  • src/lib/consistency-score.ts — scoring engine with 4-category model:
    • Weekly consistency (40pts) — % of last 12 weeks with ≥1 active day
    • Streak quality (30pts) — current/longest streak ratio
    • Gap penalty (20pts) — penalizes long gaps between sessions
    • Recent activity (10pts) — rewards activity in last 7/14 days
  • Grade thresholds: S(90+) / A(75+) / B(60+) / C(40+) / D(below 40)
  • Personalized improvement tips based on score
  • src/app/api/metrics/consistency-score/route.ts — mirrors streak API pattern, reuses streak cache key to avoid duplicate GitHub API calls
  • src/components/ConsistencyScoreWidget.tsx — SVG circular progress, grade badge, 2×2 stat grid, 6-month Recharts bar chart, improvement tip callout
  • Registered in dashboard-layout.ts and CustomizableDashboard.tsx in Activity section

Type of Change

  • New feature

Checklist

  • Follows existing code style and patterns
  • No new dependencies added
  • Self-reviewed my code
  • Only specified files modified

…nce System

- Added calculateConsistencyScore() in src/lib/consistency-score.ts
- Scoring: weekly consistency (40pts), streak quality (30pts), gap penalty (20pts), recent activity (10pts)
- Grade thresholds S/A/B/C/D with personalized improvement tips
- New API endpoint src/app/api/metrics/consistency-score/route.ts
- ConsistencyScoreWidget with SVG progress, grade badge, 6-month trend chart
- Registered in dashboard-layout.ts and CustomizableDashboard.tsx

Closes Priyanshu-byte-coder#1769
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 8, 2026

@Shiva210Jyoti 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.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 8, 2026

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

If you find DevTrack useful, a ⭐ star on the repo is always appreciated — it helps the project grow and attract more contributors!

@github-actions github-actions Bot added the gssoc26 GSSoC 2026 contribution label Jun 8, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 8, 2026

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@Shiva210Jyoti
Copy link
Copy Markdown
Author

@Priyanshu-byte-coder PR submitted for issue #1769. Ready for your review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Smart Developer Consistency Score & Coding Streak Intelligence System

1 participant