Scrum4Me/app/(app)/insights/components
janpeter visser 2f7c62f2ea fix(insights): integrate all 5 sections in /insights + add missing components
The /insights page was rendering only Sprint Health (2 charts).
PRs #47/#48/#49 delivered helpers + tests for Velocity, Backlog health
and Agent throughput, but Velocity and Backlog never produced their
UI components, and none of the four new sections were wired into
page.tsx. Result: user sees 2 charts where 5 sections were promised.

This PR fills the gaps:

- New `app/(app)/insights/components/velocity-chart.tsx` — Recharts
  grouped BarChart with optional ReferenceLine for the average. Empty
  state when <2 completed sprints.
- New `app/(app)/insights/components/backlog-health.tsx` — counters
  (stories sans AC / tasks sans plan / stuck>7d) + stuck-tasks table
  with severity-coded days-stuck cell.
- `app/(app)/insights/page.tsx` rewritten as 5 sections:
  Sprint Health, Plan-quality (donut + alignment-trend), Agent
  throughput, Velocity, Backlog health. Helpers run in one
  Promise.all so the page renders in a single tick.

Tests: 314/314 green, tsc clean, lint 0 errors.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 16:46:25 +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 2026-05-02 16:46:25 +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
velocity-chart.tsx fix(insights): integrate all 5 sections in /insights + add missing components 2026-05-02 16:46:25 +02:00