Scrum4Me/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.ts Agent throughput: jobs per dag stacked bar + KPI-strip (#49) 2026-05-02 16:30:06 +02:00
backlog-health.ts feat(insights): add getBacklogHealth helper — stuck tasks + missing AC/plan counts (#48) 2026-05-02 16:17:03 +02:00
burndown.ts feat: getBurndownData helper + computeBurndownDays (lib/insights/burndown.ts) (#34) 2026-05-01 16:41:12 +02:00
sprint-status.ts Component: SprintStatusDonut (Recharts PieChart) (#36) 2026-05-01 16:41:18 +02:00
velocity.ts feat(insights): add getVelocity helper — DONE-tasks per completed sprint (#47) 2026-05-02 16:07:57 +02:00
verify-stats.ts feat(insights): port unique files from closed bundle-PRs (#41) 2026-05-01 16:44:53 +02:00