Analytics Charts — time range selector, sparklines, inline decision trace, circuit badges

2026-03-21

dashboardobservability

What We Built

Enhanced analytics and observability dashboard:

  • Time range selector: 24h/7d/30d buttons on home page, persisted in sessionStorage, all data fetches respect selected range
  • Stat card sparklines: Already wired from Phase 036 — spend and request sparklines render from daily data
  • Provider health: Circuit breaker status badges showing closed/total circuit counts per provider
  • Log inline expansion: Click any log row to expand inline decision trace (model, provider, strategy, alternatives, reason, cost, latency, cache) — no side panel needed for quick inspection
  • Time range persistence: Selection stored in sessionStorage, survives page navigation

Why It Matters

Time-range control is table stakes for observability dashboards. Inline decision trace expansion lets operators debug routing decisions without leaving the log table — faster triage, fewer clicks.

Lockstep Checklist

  • [x] API Routes: N/A
  • [x] TS SDK: N/A
  • [x] Python SDK: N/A
  • [x] MCP Schemas: N/A
  • [x] Master Record: N/A — UI enhancement only