'use client'; import { Donut, BarChart } from '@bytelyst/charts'; import { Card, CardHeader, CardTitle } from '@/components/ui/Primitives'; import { statusSlices, typeSlices, priorityBars } from '@/lib/overview-charts'; import type { TrackerStats } from '@/lib/tracker-client'; /** * Heavy chart surface for the dashboard overview (UX-4.2). Imported via * next/dynamic from the overview page so the SVG chart code stays out of the * initial route bundle. */ export default function OverviewCharts({ stats }: { stats: TrackerStats }) { const statuses = statusSlices(stats); const types = typeSlices(stats); const priorities = priorityBars(stats); return (
By Status {stats.total}
} /> By Type By Priority ); } function ChartLegend({ slices }: { slices: { id: string; label?: string; color?: string }[] }) { return ( ); }