// Insights — usage charts and breakdowns. function Insights() { return (
} actions={Export CSV} />
Token usage
Input Output
By model
By tool kind
); } function BarChart() { // 14 days of data, hand-tuned const data = [ [120, 40], [80, 32], [180, 60], [240, 90], [200, 75], [60, 22], [40, 15], [110, 38], [170, 56], [220, 82], [280, 98], [310, 110], [240, 78], [190, 64], ]; const max = 420; const chartH = 160; // px area for bars return (
{data.map(([inp, outp], i) => { const inpH = Math.round(inp / max * chartH); const outpH = Math.round(outp / max * chartH); return (
{i % 2 === 0 ? `04/${12 + i}` : ''}
); })}
); } function BreakdownRow({ label, value, bar, sub, last }) { return (
{label}
{value}
{sub}
); } window.Insights = Insights;