Skip to content

feat: implement GitHub contributions heatmap timestamps (#203)#327

Open
Adi-Marathe wants to merge 1 commit into
indresh404:mainfrom
Adi-Marathe:feature/issue-203
Open

feat: implement GitHub contributions heatmap timestamps (#203)#327
Adi-Marathe wants to merge 1 commit into
indresh404:mainfrom
Adi-Marathe:feature/issue-203

Conversation

@Adi-Marathe
Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes #203 by properly implementing precise timestamps for the GitHub Contributions heatmap grid on the user's profile page.

Description

  • Real Dates Over Relative Dates: Updated the grid data population logic to parse exact GitHub contribution dates, replacing the fallback "days ago" relative strings.
  • Fixed Grid Padding References: Repaired a bug that occurred for users with fewer than 16 weeks of data, where padded weeks were inadvertently sharing array references.
  • Performance Optimizations: Heavily refactored the date and timestamp calculation mechanisms inside the grid generators (for both GitHub and Platform heatmaps) to instantiate Intl.DateTimeFormat outside of the nested loops. We're now generating strings strictly from performant millisecond timestamp arithmetic, bypassing hundreds of costly new Date() calls.
  • Visual Accuracy: Maintained standard GitHub UI metrics where hovering over grid spots yields the precise commit count explicitly matched to their calendar dates (e.g. 5 commits on Oct 14, 2023).

Acceptance Criteria met:

  • Renders a dedicated green GitHub Contributions grid with accurate data mapping
  • Resolves previous mock data placeholder behaviors
  • Hovering over a square now outputs precise commit counts mapped directly to their chronological timestamp.

Media

RankerHub-.-Gamified-Developer-Leaderboard.3.mp4

Closes: #203

@Adi-Marathe Adi-Marathe requested a review from indresh404 as a code owner June 4, 2026 13:27
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ranker-hub Ready Ready Preview, Comment Jun 4, 2026 1:34pm

@github-actions github-actions Bot added bug Something isn't working enhancement New feature or request frontend Frontend related changes (HTML/CSS/JS/React) gssoc GirlScript Summer of Code gssoc26 GirlScript Summer of Code 2026 nsoc NSoC NSoC'26 NSoC 2026 pending-review PR is pending review labels Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request frontend Frontend related changes (HTML/CSS/JS/React) gssoc GirlScript Summer of Code gssoc26 GirlScript Summer of Code 2026 nsoc NSoC NSoC'26 NSoC 2026 pending-review PR is pending review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: GitHub Contributions Heatmap on Profile

1 participant