singularity-forge/web/lib/__tests__
NilsR0711 7c5dae0298 fix(web): fall back to project totals when dashboard metrics are zero (#2847)
The dashboard reads elapsed time, total cost, and tokens used
exclusively from AutoDashboardData. When auto-mode is not active
(e.g. manual /gsd next), auto is null and all three metrics show 0
— even though the status bar displays real values via /api/visualizer.

Add the same projectTotals polling pattern (30s interval via
/api/visualizer) that status-bar.tsx already uses, and wire it into
the fallback chain: projectTotals ?? auto ?? 0.

Closes #2709
2026-03-27 18:09:55 -06:00
..
dashboard-metrics-fallback.test.ts fix(web): fall back to project totals when dashboard metrics are zero (#2847) 2026-03-27 18:09:55 -06:00
shutdown-gate.test.ts fix(web): skip shutdown in daemon mode so server survives tab close (#2842) 2026-03-27 18:07:44 -06:00