diff --git a/apps/web/src/routes/dashboard.tsx b/apps/web/src/routes/dashboard.tsx index 61e146d..8533874 100644 --- a/apps/web/src/routes/dashboard.tsx +++ b/apps/web/src/routes/dashboard.tsx @@ -9,8 +9,6 @@ import { MODUS_META, type ProjectModus } from '../lib/project-meta'; import { AlertTriangle } from 'lucide-react'; import { clsx } from 'clsx'; -type Ampel = 'green' | 'amber' | 'red' | 'grey'; - export function DashboardRoute() { const q = trpc.dashboard.overview.useQuery(); const today = trpc.dayEntry.today.useQuery(); @@ -48,32 +46,6 @@ export function DashboardRoute() { )} - - - Bereiche - - - {q.data.areas.map((a) => ( - - - - - {a.name} - - - - {a.counts.green} grĂ¼n - {a.counts.amber} gelb - {a.counts.red} rot - {a.counts.grey > 0 && {a.counts.grey} ohne Status} - - - - - ))} - - - {q.data.showstoppers.length > 0 && ( @@ -283,16 +255,6 @@ export function DashboardRoute() { ); } -function AmpelDot({ ampel }: { ampel: Ampel }) { - const colorClass = { - green: 'bg-[var(--color-ampel-green-fg)]', - amber: 'bg-[var(--color-ampel-amber-fg)]', - red: 'bg-[var(--color-ampel-red-fg)]', - grey: 'bg-[var(--color-ink-faint)]', - }[ampel]; - return ; -} - function AmpelBadge({ ampel }: { ampel: 'green' | 'amber' | 'red' }) { const cls = { green: 'bg-[var(--color-ampel-green-bg)] text-[var(--color-ampel-green-fg)]',