Frontend: Token usage and cost dashboard #375
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?
Summary
Add a telemetry dashboard page to the Mosaic Stack web UI that displays aggregated token usage, costs, and prediction accuracy over time. This gives users visibility into their AI spending and helps identify optimization opportunities.
Requirements
Data Source
The telemetry API provides aggregated data. The frontend should query the Mosaic Telemetry API (or proxy through the Stack API) for:
Dashboard Components
Usage Summary Cards
Token Usage Chart
Cost Chart
Task Outcomes
Prediction Accuracy (if data available)
Navigation
Time Range Selector
Design Notes
docs/research/mosaic-stack-ui/for UI inspirationAcceptance Criteria
Completed in commit
96ca58eon feature/m10-telemetry. Recharts dashboard with summary cards, token usage line chart, cost bar chart, task outcome pie chart, time range selector, loading/empty/error states. PDA-friendly. 14 unit tests.