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:
@@ -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 ? (
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user