diff --git a/app/(app)/insights/components/backlog-health.tsx b/app/(app)/insights/components/backlog-health.tsx new file mode 100644 index 0000000..fbf23c9 --- /dev/null +++ b/app/(app)/insights/components/backlog-health.tsx @@ -0,0 +1,90 @@ +'use client' + +import { useRouter } from 'next/navigation' +import { CheckCircle, AlertTriangle, XCircle } from 'lucide-react' +import type { BacklogHealth, StuckTask } from '@/lib/insights/backlog-health' + +interface Props { + data: BacklogHealth +} + +function Counter({ label, count }: { label: string; count: number }) { + const healthy = count === 0 + return ( +
Geen stuck tasks 🎉
+ ) + } + + return ( +| Taak | +Product | +Days | +Sprint | +
|---|---|---|---|
| {t.title} | +{t.productName} | ++ {t.daysStuck}d + | ++ {t.sprintGoal ?? '—'} + | +
+ Stuck tasks +
+