Fix dashboard KPI tiles rendering blank values #545

Closed
opened 2026-10-27 13:36:45 +00:00 by sam · 0 comments
Owner

Authenticated runtime inspection of the supplied dashboard URL showed the first three dashboard stat tiles visually rendered with empty headline values while their comparison text was present; the Tokens used tile rendered 0. Trace the stat tile/render/update path and make every KPI display a stable value during initial load, loading, zero-data, and API-error states. Add focused regression coverage and verify against the live dashboard.

Notes

The Tokens-used/Token-outlook portion of this is now tracked in far more depth by archie-core-1786748942590-20-c21c728b (Dashboard: Token outlook is blank because token usage is not reaching daily accounting), which traces the root cause to missing agent_finish event rows (internal/store/events.go:231-251) rather than a rendering bug. If you pick this up, check whether the other KPI tiles (non-token) are still blank independently of that root cause before assuming this issue is just a duplicate of #20 -- the original report named 'the first three dashboard stat tiles', which may be broader than tokens alone.

Close reason

Already fixed by 170fe02 (2026-08-05), predating this bead's 2026-08-08 runtime inspection -- the inspected deployment was serving a stale build. el() in ui/src/base/dom.js was treating a falsy scalar first child (0, '', false) as a missing attrs object and dropping it, so any stat tile whose value was 0 (Working now, Needs you, Tokens used before any usage) rendered a blank headline. Fixed with dedicated regression coverage in ui/test/dom.test.js (el renders a falsy numeric value instead of dropping it, statTile renders a zero headline value, etc.) -- all 9 tests pass. Verified ui/dist rebuilds byte-identical to the committed tree, so the fix ships in the current binary. The token-outlook-specific root cause (missing agent_finish event rows) is tracked separately in archie-core-1786748942590-20-c21c728b per this bead's own notes and is out of scope here.


Imported from beads archie-core-1786637490248-18-17079a75 · GitHub #39 · type bug · priority P2 · created 2026-08-08 · closed 2026-08-17

Authenticated runtime inspection of the supplied dashboard URL showed the first three dashboard stat tiles visually rendered with empty headline values while their comparison text was present; the Tokens used tile rendered 0. Trace the stat tile/render/update path and make every KPI display a stable value during initial load, loading, zero-data, and API-error states. Add focused regression coverage and verify against the live dashboard. ### Notes The Tokens-used/Token-outlook portion of this is now tracked in far more depth by archie-core-1786748942590-20-c21c728b (Dashboard: Token outlook is blank because token usage is not reaching daily accounting), which traces the root cause to missing agent_finish event rows (internal/store/events.go:231-251) rather than a rendering bug. If you pick this up, check whether the other KPI tiles (non-token) are still blank independently of that root cause before assuming this issue is just a duplicate of #20 -- the original report named 'the first three dashboard stat tiles', which may be broader than tokens alone. ### Close reason Already fixed by 170fe02 (2026-08-05), predating this bead's 2026-08-08 runtime inspection -- the inspected deployment was serving a stale build. el() in ui/src/base/dom.js was treating a falsy scalar first child (0, '', false) as a missing attrs object and dropping it, so any stat tile whose value was 0 (Working now, Needs you, Tokens used before any usage) rendered a blank headline. Fixed with dedicated regression coverage in ui/test/dom.test.js (el renders a falsy numeric value instead of dropping it, statTile renders a zero headline value, etc.) -- all 9 tests pass. Verified ui/dist rebuilds byte-identical to the committed tree, so the fix ships in the current binary. The token-outlook-specific root cause (missing agent_finish event rows) is tracked separately in archie-core-1786748942590-20-c21c728b per this bead's own notes and is out of scope here. --- _Imported from beads `archie-core-1786637490248-18-17079a75` · GitHub #39 · type bug · priority P2 · created 2026-08-08 · closed 2026-08-17_
sam added the mediumbug labels 2026-10-27 13:36:45 +00:00
sam self-assigned this 2026-10-27 13:36:45 +00:00
sam closed this issue 2026-10-27 13:36:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#545