Scrum4Me/app/(app)
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
..
admin feat: admin jobs en products pagina's 2026-05-05 20:46:27 +02:00
dashboard ProductDialog: create + edit met alle velden (#68) 2026-05-03 17:56:33 +02:00
ideas feat(ideas): secondary_products meeladen in IdeaDto en alle queries 2026-05-06 02:20:34 +02:00
insights ST-1216: Insights sprint-widget — token KPI-kaartjes & per-job tabel (#114) 2026-05-06 03:19:30 +02:00
products feat(sprint): edit-icoon op PBI (Product Backlog) en story (Sprint Backlog) 2026-05-04 09:19:49 +02:00
settings M12 / ST-1110: Demo gebruiker read-only (#17) 2026-04-29 18:44:14 +02:00
solo feat(M9): active product backlog — persistent active PB, NavBar splits, sprint card styling (#10) 2026-04-27 20:25:13 +02:00
todos feat(ST-509): add description textarea to Todo create and edit cards 2026-04-26 19:59:55 +02:00
error.tsx feat: ST-601-ST-612 M6 polish, beveiliging en launch-ready 2026-04-24 12:36:23 +02:00
layout.tsx feat(ST-1134): (mobile) route group + auth-guard helper + manifest (T-321) 2026-05-04 09:55:18 +02:00