feat(plan): drive category select and view label from DB categories
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -53,19 +53,6 @@ export function categoryMap(
|
||||
return map;
|
||||
}
|
||||
|
||||
/** Czech labels for the plan_category enum — single source of truth shared
|
||||
* by the grid chips, the detail view, and aria-labels. */
|
||||
export const PLAN_CATEGORIES: ReadonlyArray<{ value: string; label: string }> =
|
||||
[
|
||||
{ value: "work", label: "Práce" },
|
||||
{ value: "preparation", label: "Příprava" },
|
||||
{ value: "travel", label: "Cesta / Montáž" },
|
||||
{ value: "leave", label: "Dovolená" },
|
||||
{ value: "sick", label: "Nemoc" },
|
||||
{ value: "training", label: "Školení" },
|
||||
{ value: "other", label: "Jiné" },
|
||||
];
|
||||
|
||||
/** Czech label for a plan category key, resolved from the loaded categories
|
||||
* map, falling back to the raw key. The `map` arg is optional so callers not
|
||||
* yet threading categories still compile (they show the raw key until wired). */
|
||||
|
||||
Reference in New Issue
Block a user