Commit Graph
4 Commits
Author SHA1 Message Date
inference-admin 4a7a4be1a7 greenpt: default model serves the 1017 snapshot at the new rates 2026-11-16 15:53:14 +00:00
inference-admin 3008a02553 coop_chart: one concise chart vocabulary for both apps
Members · Requests · Spend · Money · Energy · Carbon. The titles were carrying
the unit ('Requests per day', 'Token spend per day') while the axis already
labels the unit, so the menus read long and the two apps said different things
in different places. The aria label still reads '<title> over time'.
2026-11-13 21:26:27 +00:00
inference-admin 8557f636f8 woodpecker-ci: the shared chart module also owns the definitions now 2026-11-13 21:02:05 +00:00
inference-admin e6d27b3775 chart module: add the definition layer — one description of every chart
The two UIs shared only the drawing primitives, so the same five metrics shipped
with different titles AND different kinds (the panel's "Spend per day" was the
dashboard's "What the co-op spent (members + the co-op's own accounts)"), and
Money was a whole separate tab with four renderers of its own.

CHART_METRICS is now the one place a chart is described — id, title, kind
(line|bar|multi), axis rule, value formatter, series — and renderChart() draws any
of them, registering the exact tooltip values and breaking lines at NULLs as
before. Money is a metric like the others (a "multi" chart: cumulative revenue,
cumulative token spend, and the OC balance as a gap before snapshots began).
fmtMoney/fmtMetric/fmtMoneyTick are shared so labels cannot drift.

Each app keeps what legitimately differs: its data source, its toggle classes, its
empty-state markup, its DOM. Nothing identifying belongs in this list.
2026-11-13 20:55:52 +00:00