Repository navigation
feat(github): contribution heatmap, monthly deltas and language mix - #249
Merged
Merged
Conversation
Replace the four lifetime-total tiles with an 18-week contribution heatmap and streak, two wider PR/issue cards with "this month" deltas, and a language breakdown bar. All data now comes from a single GraphQL request (1 rate-limit point), so the server cache drops from 1 hour to 60 seconds and the panel refreshes itself every minute. NUXT_GITHUB_TOKEN is now required. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jordan Jones <git@svcs.ok8.sh>
Swap the Issues card for lifetime commits (REST commit search, which GraphQL search can't do) and show each heatmap day's contribution count and date on hover via a single shared tooltip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jordan Jones <git@svcs.ok8.sh>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/api/githubto one GraphQL request (1 rate-limit point) for PR counts, the calendar and languages, plus two REST commit searches (GraphQL search can't query commits). Counts still come from search queries, so PR numbers match what the panel showed before.Freshness
maxAgedrops from 1 hour to 60s with SWR. Failed fetches still aren't cached, and the last good value is served for up to an hour if GitHub is down.Notes
NUXT_GITHUB_TOKENis now required (GraphQL rejects anonymous requests). Production already gets it from theok8-shExternalSecret.Bg*.vuetile backgrounds, which nothing uses anymore.Test plan
bun run buildsucceeds/api/githubreturns real counts, an 18-week calendar, the streak and languages in local devfetchedAtadvances)馃 Generated with Claude Code