From fcdb5a09c6f3b45266aaa117488b9742b7de1b84 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sat, 27 Jun 2026 19:15:07 -0700 Subject: [PATCH] Activity Chart Intensity Logic Nucleic-Session: 76D64900-B16F-45BE-A6CB-E3D2EBC7C73A Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Views/HomeView.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/NucleicRemote/NucleicRemote/Views/HomeView.swift b/NucleicRemote/NucleicRemote/Views/HomeView.swift index ac92f82..dcb3427 100644 --- a/NucleicRemote/NucleicRemote/Views/HomeView.swift +++ b/NucleicRemote/NucleicRemote/Views/HomeView.swift @@ -194,6 +194,9 @@ struct StreakBadge: View { /// GitHub-style activity grid: columns = weeks (old→new), rows = Sun…Sat. struct ActivityGrid: View { let activityByDay: [Date: Int] + /// Tokens used per day — the primary intensity signal; days absent here fall back to their + /// message count (mirrors the Mac grid via `ActivityShading`). + var tokensByDay: [Date: Int] = [:] /// Missed days a streak freeze kept alive — drawn in the frozen blue rather than the /// empty-day gray (mirrors the Mac grid). var frozenDays: Set = []