feat: add coding time by hour heatmap widget(most productive hours)#1677
feat: add coding time by hour heatmap widget(most productive hours)#1677MaitrayeeK wants to merge 4 commits into
Conversation
|
@MaitrayeeK 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 has merge conflicts with |
|
This PR has developed merge conflicts after recent merges to |
|
Conflict resolved. Please review and merge. Thanks! |

Summary
Adds a new Most Productive Hours widget to the dashboard — a 24×7 heatmap
grid showing commit density by hour of day and day of week
Closes #1064
Type of Change
Changes Made
src/app/api/metrics/productive-hours/route.ts— New API route. Fetches GitHub PushEvents for the last 90 days, groups commits by (dayOfWeek, hour) using the user's local timezone (passed astzquery param), and returns a flat 7×24 grid of{ day, hour, avg }objects plus apeakcell.src/components/ProductiveHoursWidget.tsx— New widget. Renders the grid with color-intensity cells, hover tooltip, 🔥 peak label, legend, and info tooltip on the title.src/app/dashboard/page.tsx— Imports and places the new widget.Screenshots (if UI change)
Checklist
npm run lintpasses locallynpm run type-check)Accessibility Checklist