Versetzung mit Standortwechsel; Standort aenderbar ueber change_employee_data
All checks were successful
CI / Lint, Typen, Tests, Build (push) Successful in 12m1s
CI / Migrationen auf leerer Datenbank (push) Successful in 10m40s
CI / Ausrollen (push) Successful in 6s

- Versetzen: Feld "Standort", vorbelegt mit dem bisherigen. Ein anderer
  Standort wechselt zum selben Tag, in derselben Transaktion wie die
  Versetzung (sofort oder vorgemerkt).
- change_employee_data, Nachtlauf und Feldkarte kennen den Standort
  (Gruppe role): Historienzeile "Standort", berichtigbar und
  zuruecknehmbar. In der Historie steht die Kennung, angezeigt wird der
  Name (StandorteContext).

Rauchtest: Schritt 30.

Geprueft: lint, tsc, types:check, 949 Tests, Uebergabe-Waechter
This commit is contained in:
2026-10-22 14:50:19 +02:00
parent 2b419d022a
commit c6f617093f
9 changed files with 219 additions and 34 deletions

View File

@@ -1,3 +1,4 @@
import { StandorteProvider } from "@/components/shell/StandorteContext";
import { redirect } from "next/navigation";
import type { ReactNode } from "react";
import { HireWizardProvider } from "@/components/hire/HireWizardContext";
@@ -37,11 +38,13 @@ export default async function AppLayout({ children }: { children: ReactNode }) {
return (
<HrBenutzerProvider hrBenutzer={data.hrBenutzer}>
<StandorteProvider standorte={data.locations.map((l) => ({ id: l.id, name: l.name }))}>
<HireWizardProvider openPositions={data.openPositions} locations={data.locations} drafts={data.drafts}>
<AppShell userLabel={userLabel} openNotes={data.openNotes} kollegen={data.kollegen}>
{children}
</AppShell>
</HireWizardProvider>
</StandorteProvider>
</HrBenutzerProvider>
);
}