Skip to content

Add GitHub-style study consistency heatmap (fixes #1175)#1187

Open
anushkagupta200615-jpg wants to merge 1 commit into
Charushi06:mainfrom
anushkagupta200615-jpg:feat/issue-1175-heatmap
Open

Add GitHub-style study consistency heatmap (fixes #1175)#1187
anushkagupta200615-jpg wants to merge 1 commit into
Charushi06:mainfrom
anushkagupta200615-jpg:feat/issue-1175-heatmap

Conversation

@anushkagupta200615-jpg

Copy link
Copy Markdown

Related Issue

Closes #ISSUE_NUMBER

Summary

Brief explanation of the contribution.

Changes Made

  • Bullet list of implemented changes.
  • ...

Testing

Explain how the changes were tested.

Screenshots

Add screenshots if UI changes exist.

Checklist

  • Code follows project style
  • Tested locally
  • No unrelated changes included
  • Documentation updated (if applicable)

Description

This PR resolves #1175 by adding a new GitHub-style Contribution Heatmap to visualize long-term user consistency.

Resolves: #1175

Changes Made

  • Added a new Statistics tab to the sidebar navigation to house the new feature.
  • Built a lightweight, Vanilla JS/CSS implementation of a 365-day Contribution Heatmap (renderHeatmap).
  • Created a getStudyActivityByDate function to aggregate the user's completed tasks dynamically.
  • Added interactive tooltips to each heatmap cell displaying the date and exact count of completed tasks.
  • Included varying shading intensity CSS matching GitHub's color scheme based on task frequency.
  • Wired the heatmap to the global store to instantly reflect completions without requiring a refresh.

Visuals

Users can now navigate to the Statistics section and view their consistency for the trailing year at a glance:

(Drag and drop the heatmap image here)
Screenshot 2026-06-24 031342

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Study Consistency Heatmap

1 participant