* feat: GitHub contribution grid in the notch
Data layer:
- GitHubActivity.swift: ContributionDay (date, count, level 0–4, weekday),
GitHubActivity (total, weeks, fetchedAt), parse(), lastWeeks(), lastDays().
- GithubPoller: separate activity chain (activityInFlight, nextActivity),
fetchActivity() with same tokenGeneration guard as pulse, 30 min cadence
starting 15 s after launch, refreshActivityIfStale(maxAge:300).
- AppState.githubActivity: cleared on integration disable and token change.
UI:
- GitHubPulseCardView header: "★ N.Nk" + 7-day mini-row (7pt squares,
spacing 2pt) when activity loaded; tapping opens Activity detail.
"· N repos" removed from header (shown in detail instead).
- GitHubDetailSection.activity + GitHubDetailView routes to
GitHubActivityDetailContent.
- GitHubActivityDetailContent: ~20-week grid (8pt squares, spacing 2pt,
Sun at top); hover/tap shows "Oct 3 · 12 contributions" in header;
header right opens github.com/<login>; refreshActivityIfStale on appear.
Tests: 31 cases in tests/GitHubActivityTests.swift + test script added to
scripts/ and CI (build.yml). Docs: INTEGRATIONS.md, SPEC.md, privacy.html.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix: activity grid fit, mini-row without stats, token reload, past year label
- Contribution grid: squareSize 8→7pt, spacing 2→1.5pt, numWeeks computed
from available width (~23) instead of hardcoded 20; header-to-grid gap 5pt
- GitHubPulseCardView header: show 7-square mini-row even when githubStats is
nil but githubActivity is loaded ("Overview" only when both nil)
- SettingsView.saveIntegrations: also call refreshActivityIfStale() alongside
triggerPulseNow() when a new GitHub token is saved
- Replace "this year" with "past year" in headerRight and SPEC.md
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>