app: render the panel with an injected clock so tests do not depend on the date #12

Merged
schmidt.florian merged 2 commits from 11-panel-clock into master 2026-10-17 09:28:16 +02:00
2 Commits
Author SHA1 Message Date
Florian Schmidt 0549e862c5 core: pin the history store clock in fixed-date tests
agent-review agent review: pass
Storage, rework and limit-analysis tests add Claude events with fixed
2026-10-14 timestamps to a HistoryStore on the system clock. The 60-day
Claude retention would drop them from mid-December 2026 on, so these
stores now use TestClock.

Refs #11
2026-10-17 09:24:52 +02:00
Florian Schmidt 312db4e0b8 app: render the panel with an injected clock
The headless forecast check failed after 2026-10-16 08:33 UTC because
the fixture fixes now while PanelWindow read DateTimeOffset.UtcNow.
PanelWindow now takes an optional TimeProvider (system by default) and
hands it to the pace bar, burn-up, peak and usage charts and every
forecast label. The tests pin it to fixture time and check the
"Forecast from" note before, at and after the forecast start.

App test fixtures now use fixed dates and pin HistoryStore's clock, so
the 60-day Claude retention cannot drop their samples later.

Refs #11
2026-10-17 09:24:51 +02:00