Activity Chart Intensity Logic
Nucleic-Session: 76D64900-B16F-45BE-A6CB-E3D2EBC7C73A Co-authored-by: Nucleic <[email protected]>
This commit is contained in:
@@ -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<Date> = []
|
||||
|
||||
Reference in New Issue
Block a user