From 67d62a6df06f0e99a734a6642770342c615eee24 Mon Sep 17 00:00:00 2001 From: BOHA Date: Sun, 7 Jun 2026 22:25:35 +0200 Subject: [PATCH] =?UTF-8?q?fix(dashboard):=20rename=20today-plan=20card=20?= =?UTF-8?q?to=20"Va=C5=A1e=20dne=C5=A1n=C3=AD=20za=C5=99azen=C3=AD"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clearer, formal (matches the app's Vy/Vaše tone) and category-agnostic (reads fine for work and absence days) so the employee plainly sees what they're assigned to. Was "Můj plán na dnešek". Co-Authored-By: Claude Opus 4.8 (1M context) --- src/admin/components/dashboard/DashTodayPlan.tsx | 4 ++-- src/routes/admin/dashboard.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/admin/components/dashboard/DashTodayPlan.tsx b/src/admin/components/dashboard/DashTodayPlan.tsx index 25e7d19..da0a464 100644 --- a/src/admin/components/dashboard/DashTodayPlan.tsx +++ b/src/admin/components/dashboard/DashTodayPlan.tsx @@ -24,7 +24,7 @@ function projectLabel(p: TodayPlan): string { } /** - * "Můj plán na dnešek" — shows the logged-in user's work-plan entry for today + * "Vaše dnešní zařazení" — shows the logged-in user's work-plan entry for today * (category + project/site + note, with a range badge when the day is part of a * multi-day range). `plan === null` = the user has plan access but nothing is * scheduled today (muted empty state). Rendered near the clock-in on the @@ -38,7 +38,7 @@ export default function DashTodayPlan({ plan }: { plan: TodayPlan | null }) { variant="subtitle2" sx={{ mb: 1.5, fontWeight: 600, color: "text.secondary" }} > - Můj plán na dnešek + Vaše dnešní zařazení {plan ? ( diff --git a/src/routes/admin/dashboard.ts b/src/routes/admin/dashboard.ts index 72692a2..a4135e8 100644 --- a/src/routes/admin/dashboard.ts +++ b/src/routes/admin/dashboard.ts @@ -43,7 +43,7 @@ export default async function dashboardRoutes( result.my_shift = { has_ongoing: myShift !== null }; } - // Today's work plan (personal) — powers the "Můj plán na dnešek" card. + // Today's work plan (personal) — powers the "Vaše dnešní zařazení" card. // resolveCell applies override-beats-range precedence; null = the user has // plan access but nothing is scheduled today. The category key is enriched // with its label + colour so the widget needs no extra query. todayStr uses