Home

boring / v2

publicBoring-Software-Inc/v2
Overview Code History Branches Pull requestsIssuesInsights Campfire Docs
main
HomeOverview Code PRsIssues

feat(economics): admin economics page (slice 7)

3 months ago

1fe89b8
Authored
grim7/23/2026, 1:04:41 AM
New /admin/economics behind the existing platformAdminMiddleware staff gate.
Three staff-classified server fns (overview, series, cost-by-org) wrap
economics_daily reads. Thin route + page + skeleton per the frontend rules.
Four metric cards (cost per run vs ceiling, metered vs accrued, drift, runs),
credit burn-down and OpenRouter daily spend as dither-kit charts, a Railway
floor progress bar, and a cost-by-org table with an explicit unattributed row.
Registered the fns in the server-fn classification registry.

Parent13d5841

9 files changed
  • apps/web/src/components/admin/admin-home-page.tsx+9−0
  • apps/web/src/components/admin/economics-page-skeleton.tsx+31−0
  • apps/web/src/components/admin/economics-page.tsx+211−0
  • apps/web/src/lib/admin-economics.functions.ts+54−0
  • apps/web/src/lib/admin-economics.query.ts+34−0
  • apps/web/src/lib/server-fn-classification.ts+3−0
  • apps/web/src/routes/admin.economics.tsx+16−0
  • packages/db/src/index.ts+3
−0
  • packages/db/src/services/economics.ts+154−1