feat(visualizations): Add GitHub Punch Card Heatmap for Enhanced Activity Analysis#8265
Conversation
|
@kanishka-2007-tech is attempting to deploy a commit to the jhasourav07's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
This PR adds a valuable new visualization feature that complements existing tools by providing insights into user activity patterns. It encourages developers to reflect on their coding habits and optimize their routines. Additionally, please note that there have been recent decisions regarding code quality improvements, such as fixing dead code in the calculateStreak function, which may be relevant for maintaining overall code integrity. Looking forward to your thoughts on this enhancement! |
📦 Next.js Bundle Size Report (Gzipped Sizes)
📊 Summary of Totals
|
Aamod007
left a comment
There was a problem hiding this comment.
This is an incredible addition to the visualizations! An isometric GitHub punch card provides amazing insights into commit patterns by day and hour. The SVG generation logic in \lib/svg/punchcard.ts\ is particularly well done.
Everything looks solid and the tests are passing. Great work!
Label Justification:
- \level:critical: Assigned based on 5 files changed across API routing, data fetching, validation, and SVG generation.
- \quality:clean: Excellent use of caching, concurrency limits, and clean SVG composition.
- \ ype:feature: Adds a major new visual layout (\punchcard) for users to generate.
- \mentor:Aamod007: Assigned as required.
|
🎉 Congratulations @kanishka-2007-tech! Your PR has been successfully merged. 🚀 Thank you for contributing to CommitPulse. Your work helps us build a better tool for the community.
Keep building! 💻✨ |
Description
This PR introduces a new Punch Card Heatmap (Circadian Rhythm View) visualization to CommitPulse, allowing developers to analyze when they are most active throughout the week.
Unlike the existing Skyline view, which focuses on daily contribution history, the Punch Card view visualizes commit activity across days of the week and hours of the day, helping users identify their peak coding hours and weekly productivity patterns.
Helps developers understand their coding habits and peak productivity hours.
Complements existing Skyline and Heatmap visualizations with time-based insights.
Provides an engaging and unique way to explore GitHub contribution activity.
Encourages users to analyze and improve their coding routines.
Fixes #8263
Pillar
Checklist before requesting a review:
CONTRIBUTING.mdfile.localhost:3000/api/streak?user=YOUR_USERNAME).npm run formatandnpm run lintlocally and resolved all errors (CI will fail otherwise).feat(themes): ...,fix(calculate): ...).README.mdif I added a new theme or URL parameter.