Files
admin-panel/app
inference-bot 90294df4c6 money chart: cumulative OC revenue, token spend, and OC balance
New Money tab beside Trends, fed by the portal's /admin/money-series
(hourly-cached server-side). One fetch at full range; period (30/90/all)
and spend-mode (cumulative/daily) toggles re-render client-side.

- Cumulative mode: three lines — Revenue (OC contributions, green),
  Token spend (blue), OC balance (amber). NULL balance days render as a
  gap (the OC API exposes only the CURRENT balance; history accrues from
  daily snapshots from the deploy date onward — stated in the caption
  and in the balance legend key).
- Daily mode: token spend per day as bars (spend-only; the other series
  are cumulative and would need a second axis).
- Money ticks use the 1/2/5 x 10^k rule; tooltips reuse the shared
  chart-tip helper (all three series listed per day).
- The caption is a deliberate exception to the no-caption chart rule:
  the operator asked for the honest data-history limits in the UI.
- Harness: tests/money-chart-harness.js (axis invariants, gap handling,
  daily bars, period slice, single-point balance).
2026-11-08 01:50:26 +00:00
..