mirror of
https://gitcode.com/JianFeeeee/ModelRouter.git
synced 2026-09-20 00:48:00 +00:00
Redo the KPI row properly: five identical cards each with title row, large metric value, subtitle, and an 86px canvas chart. Replaces the previous gray-box canvas placeholders (which dropped the numbers — a regression). - Active requests: line sparkline (real-time refresh) + live count - Total requests: 7-day vertical bar chart + current total - Tokens: stacked bar of per-model token share + big total - Avg latency: line sparkline (real-time refresh) + avg ms - Status codes: stacked bar by code + chip subtitle (code/reqs/percent) All charts drawn with plain Canvas 2D (sparkline/dailyBars helpers), no third-party lib. DPR-aware for crispness. Deployed (bak .bak.20260811l), server active.