From 7459276ec09fc9fec673e4c9ac1173d3a68ee3ec Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Sat, 27 Jun 2026 19:15:37 -0700 Subject: [PATCH] Activity Chart Intensity Logic Nucleic-Session: 76D64900-B16F-45BE-A6CB-E3D2EBC7C73A Co-authored-by: Nucleic --- NucleicRemote/NucleicRemote/Models/RemoteStore.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift index f00e426..c76669e 100644 --- a/NucleicRemote/NucleicRemote/Models/RemoteStore.swift +++ b/NucleicRemote/NucleicRemote/Models/RemoteStore.swift @@ -128,10 +128,14 @@ final class RemoteStore: ObservableObject { let cal = Calendar.current let today = cal.startOfDay(for: Date()) let activity = (0..<40).map { i -> ActivityDay in - ActivityDay(day: cal.date(byAdding: .day, value: -i, to: today)!, count: (i * 7) % 6) + let count = (i * 7) % 6 + // Sample tokens roughly track messages so the preview grid shades by usage. + ActivityDay(day: cal.date(byAdding: .day, value: -i, to: today)!, + count: count, tokens: count * 8_500 + (i * 137) % 4_000) } dashboard = DashboardSnapshot( - counts: DashboardCounts(projects: 2, chats: 5, activeChats: 2, messages: 142, activeDays: 9), + counts: DashboardCounts( + projects: 2, chats: 5, activeChats: 2, messages: 142, activeDays: 9, tokens: 1_284_000), activity: activity, projects: [ WireProject(id: p1, name: "nucleic", defaultBranch: "main", sessionCount: 3, activeCount: 2),