// Single source of truth for audit-log entity_type → Czech label, used by
// the Audit Log page and the dashboard activity feed.
//
// IMPORTANT: keys MUST match the `entityType` values the server actually
// writes via logAudit() (see src/types/index.ts `EntityType` and the
// `entityType:` args in src/routes/**). The previous maps used legacy keys
// (e.g. "invoices_invoice", "offers_quotation", "trips") that never matched
// what the server writes, and omitted every warehouse_* entity, so those
// audit rows rendered the raw English entity_type instead of a Czech label.
export const ENTITY_TYPE_LABELS: Record<string, string> = {
  user: "Uživatel",
  role: "Role",
  attendance: "Docházka",
  leave_request: "Žádost o nepřítomnost",
  leave_balance: "Saldo nepřítomnosti",
  invoice: "Faktura",
  quotation: "Nabídka",
  order: "Objednávka",
  issued_order: "Objednávka vydaná",
  project: "Projekt",
  project_file: "Soubor projektu",
  customer: "Zákazník",
  trip: "Jízda",
  vehicle: "Vozidlo",
  bank_account: "Bankovní účet",
  company_settings: "Nastavení firmy",
  audit_logs: "Audit log",
  warehouse_item: "Skladová položka",
  warehouse_receipt: "Příjemka",
  warehouse_issue: "Výdejka",
  warehouse_reservation: "Rezervace",
  warehouse_inventory: "Inventura",
  warehouse_supplier: "Dodavatel",
  warehouse_category: "Kategorie skladu",
  warehouse_location: "Skladová lokace",
  warehouse_receipt_attachment: "Příloha příjemky",
  work_plan_entry: "Plán prací – záznam",
  work_plan_override: "Plán prací – přepsání dne",
  plan_category: "Plán prací – kategorie",
  session: "Relace",
};
