KPI / stat tile widget type (non-chart widget) #26
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Every widget on the dashboard is a chart. There is no way to show a single number — total revenue, count of open items, delta versus the previous period — which is normally the first thing a dashboard shows and the cheapest to read.
Proposal
Add a KPI tile widget:
sparkline.enabledwith chrome stripped).--dialect-*token layer instyles.css, same as.dialect-card— no new hardcoded colours. Delta up/down colours should come from the token layer, not literals.Acceptance criteria
Depends on
#20 (values come from the data service), #21 (registration).
Scope
Small. High visual payoff per line of code.
claude-bot referenced this issue2026-07-28 16:54:39 +00:00
PR: #33
KpiTile+SparklineChartare in, four tiles wired intoDashboardViewat3x1,./mvnw testgreen (13 tests, two new browserless ones for value/delta/size). Verified in a real browser ath=1in both themes — no overflow.One acceptance criterion is not met: "addable from the widget picker". #21 is
ai-blocked, so there is no registry or picker to register with. The tiles are added to the dashboard directly, the same way the chart widgets are; registering them is a few lines once #21 lands.Also, the displayed values live in the translation bundle rather than a data service — they carry locale-specific formatting. They move to the service in #20, together with the chart literals already sitting in the view.