Scrum4Me/__tests__/lib/insights
Janpeter Visser 739037a60b
Agent throughput: jobs per dag stacked bar + KPI-strip (#49)
* feat(insights): add getJobsPerDay helper — agent throughput per day + KPIs

Raw SQL aggregation of claude_jobs by day and status over 14 days with
zero-fill for missing days. KPIs: todayCount, successRate7d, avgDurationSeconds7d.
Optional productId filter.

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

* feat(insights): add AgentThroughputCard — stacked BarChart + KPI-strip + product filter

KPI strip (jobs today, 7d success rate, 7d avg duration), 14-day stacked
BarChart with JOB_STATUS_COLORS, and URL-bookmarkable product dropdown via
useTransition + router.replace. Empty-state when no activity.

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 16:30:06 +02:00
..
agent-throughput.test.ts Agent throughput: jobs per dag stacked bar + KPI-strip (#49) 2026-05-02 16:30:06 +02:00
backlog-health.test.ts feat(insights): add getBacklogHealth helper — stuck tasks + missing AC/plan counts (#48) 2026-05-02 16:17:03 +02:00
burndown.test.ts feat: getBurndownData helper + computeBurndownDays (lib/insights/burndown.ts) (#34) 2026-05-01 16:41:12 +02:00
velocity.test.ts feat(insights): add getVelocity helper — DONE-tasks per completed sprint (#47) 2026-05-02 16:07:57 +02:00
verify-stats.test.ts feat: getVerifyResultStats helper + 5 Vitest-tests (lib/insights/verify-stats.ts) (#38) 2026-05-01 16:41:22 +02:00