From 804b7637e7253a57fa55e5c1ebec2b278f4c6700 Mon Sep 17 00:00:00 2001 From: DeeCee03 Date: Wed, 3 Jun 2026 17:03:30 +0200 Subject: [PATCH] =?UTF-8?q?Dashboard:=20dynamische=20Locked-in-=C3=9Cbersc?= =?UTF-8?q?hrift=20im=20Team-Bereich?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Statt fester "Heute im Team"-Überschrift jetzt zählerabhängiger Satz: 0 / 1 Person / mehrere Personen. Co-Authored-By: Claude Opus 4.8 (1M context) --- apps/web/src/routes/dashboard.tsx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/apps/web/src/routes/dashboard.tsx b/apps/web/src/routes/dashboard.tsx index efe896b..3461c89 100644 --- a/apps/web/src/routes/dashboard.tsx +++ b/apps/web/src/routes/dashboard.tsx @@ -215,23 +215,22 @@ function TeamHeuteSection() { if (team.isPending) return null; const data = team.data ?? []; const userMap = new Map((users.data ?? []).map((u) => [u.id, u.name])); + const lockedInLabel = + data.length === 0 + ? 'Heute ist noch niemand locked in.' + : data.length === 1 + ? 'Heute ist 1 Person locked in.' + : `Heute sind ${data.length} Personen locked in.`; if (data.length === 0) { return (
-

Heute im Team

- - -

- Heute hat sich noch niemand locked in. -

-
-
+

{lockedInLabel}

); } return (
-

Heute im Team

+

{lockedInLabel}

{data.map((u) => (