app: render the panel with an injected clock so tests do not depend on the date (#12)
The headless forecast test failed from 2026-10-16 on because the panel read the real clock while its fixture fixes the time. - App: PanelWindow takes an optional TimeProvider (the system clock by default) and passes it to the pace bar, burn-up, peak and usage charts and every forecast label. The burn-up chart uses the panel's render time as now. - Tests: headless panels run on a fixed clock at fixture time, with a check before, at and after the forecast start. App and Core tests with fixed-date Claude events pin HistoryStore's clock, so the 60-day retention cannot drop them later. Closes #11
This commit was merged in pull request #12.
This commit is contained in:
@@ -4,6 +4,7 @@ properties use CommunityToolkit.Mvvm source generators. Custom charts use Drawin
|
||||
Program owns StoreLock for the engine lifetime. DesktopApp marshals Core events to the UI;
|
||||
Program passes its executable path to RefreshEngine for desktop activation through D9 snapshots.
|
||||
history queries run on worker threads and discard superseded results. Keep all writes atomic (D5).
|
||||
Panel rendering and child views take time from the panel's TimeProvider; never read the system clock directly.
|
||||
Daily charts use local calendar boundaries; never assume a day lasts 24 hours.
|
||||
Stream Deck policy and the real installer come through IPluginInstaller (D11).
|
||||
UsePlatformDetect selects X11 on Linux in the pinned Avalonia version. Keep XWayland support.
|
||||
|
||||
Reference in New Issue
Block a user