From 04c9d08f582e6eacc40869326b7b812f797cf415 Mon Sep 17 00:00:00 2001 From: Andrew Blakeslee Moore Date: Thu, 2 Jul 2026 19:37:20 -0700 Subject: [PATCH] Adjust Stat Card Layout Nucleic-Session: 0112C718-2A09-4547-9C71-C6C8A08BA385 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 9dd27f5..8cf1d23 100644 --- a/NucleicRemote/NucleicRemote/Views/HomeView.swift +++ b/NucleicRemote/NucleicRemote/Views/HomeView.swift @@ -14,6 +14,9 @@ struct HomeView: View { private var running: [WireSessionSummary] { store.liveSessions.filter { $0.status == .running }.sorted { $0.updatedAt > $1.updatedAt } } + /// Outstanding to-dos — everything not yet done (open + dispatched), matching the count the + /// To-dos tab lists. The Mac surfaces this elsewhere on its home; the phone gets a stat card. + private var openTodoCount: Int { store.dashboard.todos.filter { $0.status != .done }.count } private var activityByDay: [Date: Int] { Dictionary(store.dashboard.activity.map { (Calendar.current.startOfDay(for: $0.day), $0.count) }, uniquingKeysWith: +)