fix: restore dashboard history and complete activity calendar

Combine retained daily aggregates with recent usage without replaying historical records or changing the activation boundary. Complete activation-day metrics and expose the UTC calendar used by legacy history.

Render all 365 calendar dates, size heatmap cells responsively, and soften cell corners. Add regression coverage for history cutoffs, retention, sparse dates, and timezone boundaries.
This commit is contained in:
elky
2026-10-05 19:03:33 +08:00
parent 2539439656
commit 082348a5d1
15 changed files with 746 additions and 28 deletions
@@ -42,6 +42,9 @@ pub struct StoredDashboardSummary {
pub stats_since: String,
pub generated_at: String,
pub timezone: String,
/// Historical daily imports retain their original UTC calendar boundaries.
#[serde(default)]
pub activity_timezone: String,
pub today_from: String,
pub window_seconds: f64,
pub today: DashboardSummaryMetrics,