Scrum4Me/app/(app)/insights/components
Janpeter Visser a2c8bd41af
ST-1216: Insights sprint-widget — token KPI-kaartjes & per-job tabel (#114)
* feat(ST-vmc7vpps): lib/insights/token-stats.ts — sprint KPI + per-job query

SQL-queries voor totale tokens/kosten (KPI) en per-job tabel met
ModelPrice JOIN. Guard op lege sprintId. Tests voor empty guard,
KPI-mapping en null token-data.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(ST-vmc7vpps): TokenUsageCard — KPI-kaartjes + sorteerbare per-job tabel

Client-component met drie KPI-strips (totaal tokens, kosten USD, gem. per job)
en sorteerbare tabel op kosten of duur. Nulls als '—', MD3-tokens, geen
hardcoded kleuren.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

* feat(ST-vmc7vpps): insights page — TokenUsageCard integreren

Voeg getTokenStats + TokenUsageCard imports toe aan insights/page.tsx.
tokenStats apart awaiten na activeSprints (kan niet in dezelfde Promise.all).
TokenUsageCard-sectie toegevoegd na AgentThroughputCard.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-06 03:19:30 +02:00
..
agent-throughput.tsx Agent throughput: jobs per dag stacked bar + KPI-strip (#49) 2026-05-02 16:30:06 +02:00
alignment-trend.tsx feat(insights): port unique files from closed bundle-PRs (#41) 2026-05-01 16:44:53 +02:00
backlog-health.tsx fix(insights): integrate all 5 sections in /insights + add missing components (#50) 2026-05-02 17:23:03 +02:00
burndown-chart.tsx Component: BurndownChart (Recharts LineChart) (#35) 2026-05-01 16:41:15 +02:00
plan-quality.tsx Component: VerifyResultDonut + Top-5 tabellen (#39) 2026-05-01 16:41:25 +02:00
sprint-info-strip.tsx feat(insights): port unique files from closed bundle-PRs (#41) 2026-05-01 16:44:53 +02:00
sprint-status-donut.tsx Component: SprintStatusDonut (Recharts PieChart) (#36) 2026-05-01 16:41:18 +02:00
token-usage.tsx ST-1216: Insights sprint-widget — token KPI-kaartjes & per-job tabel (#114) 2026-05-06 03:19:30 +02:00
velocity-chart.tsx fix(insights): integrate all 5 sections in /insights + add missing components (#50) 2026-05-02 17:23:03 +02:00