From 8786e0e02e98f082a2cc23f13ceec38ede214922 Mon Sep 17 00:00:00 2001 From: Jordan Jones Date: Mon, 5 Oct 2026 13:35:50 -0700 Subject: [PATCH 1/2] feat(github): contribution heatmap, monthly deltas and language mix 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 Signed-off-by: Jordan Jones --- README.md | 4 +- app/components/Github/BgComment.vue | 587 ------------- app/components/Github/BgIssue.vue | 288 ------- app/components/Github/BgPullRequest.vue | 163 ---- app/components/Github/BgReaction.vue | 1011 ----------------------- app/components/Github/Stats.vue | 81 +- nuxt.config.ts | 2 +- server/api/github.get.ts | 143 +++- 8 files changed, 164 insertions(+), 2115 deletions(-) delete mode 100644 app/components/Github/BgComment.vue delete mode 100644 app/components/Github/BgIssue.vue delete mode 100644 app/components/Github/BgPullRequest.vue delete mode 100644 app/components/Github/BgReaction.vue diff --git a/README.md b/README.md index 8d268f5..3bfac44 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,11 @@ bun install bun run dev ``` -Optional environment variables: +Environment variables: | Variable | Purpose | | ---------------------------- | -------------------------------------------------------- | -| `NUXT_GITHUB_TOKEN` | Raises the GitHub API rate limit for `/api/github` | +| `NUXT_GITHUB_TOKEN` | Required for `/api/github` (GitHub GraphQL API) | | `NUXT_RESEND_API_KEY` | Enables sending mail from the contact form | | `NUXT_TURNSTILE_SITE_KEY` | Turnstile site key (dev uses the always-pass test keys) | | `NUXT_TURNSTILE_SECRET_KEY` | Turnstile secret for server-side verification | diff --git a/app/components/Github/BgComment.vue b/app/components/Github/BgComment.vue deleted file mode 100644 index 025296f..0000000 --- a/app/components/Github/BgComment.vue +++ /dev/null @@ -1,587 +0,0 @@ - diff --git a/app/components/Github/BgIssue.vue b/app/components/Github/BgIssue.vue deleted file mode 100644 index 9d08107..0000000 --- a/app/components/Github/BgIssue.vue +++ /dev/null @@ -1,288 +0,0 @@ - diff --git a/app/components/Github/BgPullRequest.vue b/app/components/Github/BgPullRequest.vue deleted file mode 100644 index ed4ff09..0000000 --- a/app/components/Github/BgPullRequest.vue +++ /dev/null @@ -1,163 +0,0 @@ - diff --git a/app/components/Github/BgReaction.vue b/app/components/Github/BgReaction.vue deleted file mode 100644 index 19c61e6..0000000 --- a/app/components/Github/BgReaction.vue +++ /dev/null @@ -1,1011 +0,0 @@ - diff --git a/app/components/Github/Stats.vue b/app/components/Github/Stats.vue index 2d9ef02..aaac6a3 100644 --- a/app/components/Github/Stats.vue +++ b/app/components/Github/Stats.vue @@ -1,39 +1,76 @@