Adjust Stat Card Layout
Nucleic-Session: 0112C718-2A09-4547-9C71-C6C8A08BA385 Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -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: +)
|
||||
|
||||
Reference in New Issue
Block a user