fix(dashboard): rename today-plan card to "Vaše dnešní zařazení"

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) <noreply@anthropic.com>
This commit is contained in:
BOHA
2026-06-07 22:25:35 +02:00
parent 512f1fd92b
commit 67d62a6df0
2 changed files with 3 additions and 3 deletions

View File

@@ -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 * (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 * 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 * 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" variant="subtitle2"
sx={{ mb: 1.5, fontWeight: 600, color: "text.secondary" }} sx={{ mb: 1.5, fontWeight: 600, color: "text.secondary" }}
> >
Můj plán na dnešek Vaše dnešní zařazení
</Typography> </Typography>
{plan ? ( {plan ? (

View File

@@ -43,7 +43,7 @@ export default async function dashboardRoutes(
result.my_shift = { has_ongoing: myShift !== null }; 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 // resolveCell applies override-beats-range precedence; null = the user has
// plan access but nothing is scheduled today. The category key is enriched // 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 // with its label + colour so the widget needs no extra query. todayStr uses