`.
- `Alert` — named export, props: `{ children: React.ReactNode }`, renders a `
` with error styling (keeps the `role="alert"` accessibility contract every existing page already relies on).
- `FormField` — named export, props: `{ label: string; htmlFor: string; children: React.ReactNode }`, renders a `` + the passed-in input/select.
- `FIELD_CLASSES` — named `string` export from the same file, the Tailwind class string every raw ` `/`` in later tasks applies directly (kept as a shared constant instead of wrapping inputs in a generic polymorphic component — the existing pages use plain native ` `/`` elements with `type`-specific attributes that don't need abstracting).
- [ ] **Step 1: Create the Button primitive**
Create `web/components/ui/Button.tsx`:
```tsx
import type { ComponentProps } from "react";
export type ButtonVariant = "primary" | "secondary" | "destructive";
const VARIANT_CLASSES: Record = {
primary: "bg-performance-blue text-white hover:bg-night-blue",
secondary: "bg-white text-asphalt-grey border border-asphalt-grey hover:bg-aluminium-grey",
destructive: "bg-status-danger text-white hover:bg-red-700",
};
export function buttonClasses(variant: ButtonVariant = "primary", fullWidth = true): string {
return [
"inline-flex min-h-11 items-center justify-center rounded-md px-4 py-2 text-center font-medium",
"transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2",
"focus-visible:outline-performance-blue disabled:cursor-not-allowed disabled:opacity-50",
VARIANT_CLASSES[variant],
fullWidth ? "w-full" : "",
].join(" ");
}
export function Button({
variant = "primary",
fullWidth = true,
className = "",
...props
}: ComponentProps<"button"> & { variant?: ButtonVariant; fullWidth?: boolean }) {
return ;
}
```
- [ ] **Step 2: Create the Card primitive**
Create `web/components/ui/Card.tsx`:
```tsx
import type { ComponentProps } from "react";
export function Card({ className = "", ...props }: ComponentProps<"div">) {
return
;
}
```
- [ ] **Step 3: Create the Alert primitive**
Create `web/components/ui/Alert.tsx`:
```tsx
export function Alert({ children }: { children: React.ReactNode }) {
return (
{children}
);
}
```
- [ ] **Step 4: Create the FormField primitive**
Create `web/components/ui/FormField.tsx`:
```tsx
export const FIELD_CLASSES =
"min-h-11 w-full rounded-md border border-aluminium-grey px-3 py-2 text-base text-asphalt-grey focus:outline-none focus:ring-2 focus:ring-performance-blue";
export function FormField({
label,
htmlFor,
children,
}: {
label: string;
htmlFor: string;
children: React.ReactNode;
}) {
return (
{label}
{children}
);
}
```
- [ ] **Step 5: Rewrite the login page using the new primitives**
Replace the entire contents of `web/app/login/page.tsx` with:
```tsx
import { login } from "./actions";
import { Button } from "@/components/ui/Button";
import { Card } from "@/components/ui/Card";
import { Alert } from "@/components/ui/Alert";
import { FormField, FIELD_CLASSES } from "@/components/ui/FormField";
export default async function LoginPage({
searchParams,
}: {
searchParams: Promise<{ error?: string }>;
}) {
const { error } = await searchParams;
return (
Anmelden
{error && (
)}
);
}
```
Note: `flex flex-1` on `` requires the parent `` to be a flex column — this is already true after Task 1's `globals.css`, and Task 3 will make it explicit on ``'s className. If you run this task before Task 3 lands, vertical centering may not visibly take effect yet (the flex context isn't wired to `` until Task 3) — that's expected and not a bug; `npm run build` will still succeed and the login page will render correctly once Task 3 is also in place. Do not add `min-h-screen` or similar workarounds here — that would conflict with Task 3's layout.
- [ ] **Step 6: Verify the build and tests**
```bash
cd web
npm run build
npm test
```
Expected: build exit code 0; `Tests 17 passed (17)` (unchanged — this task touches no Server Action or validation logic).
- [ ] **Step 7: Manually verify the rendered login page**
```bash
cd web
npm run dev -- -p 3111 &
sleep 3
curl -s http://localhost:3111/login | grep -o 'bg-performance-blue\|role="alert"\|E-Mail\|Passwort' | sort -u
kill %1
```
Expected output contains `E-Mail`, `Passwort`, and `bg-performance-blue` (confirms the primary submit button rendered with the brand color class). `role="alert"` will not appear on a fresh unauthenticated load (no `error` query param) — that's expected, not a failure.
- [ ] **Step 8: Commit**
```bash
git add web/components/ui/Button.tsx web/components/ui/Card.tsx web/components/ui/Alert.tsx web/components/ui/FormField.tsx web/app/login/page.tsx
git commit -m "feat: add UI primitives (Button, Card, Alert, FormField) and restyle login page"
```
---
### Task 3: Header, mobile drawer navigation, desktop header
**Files:**
- Create: `web/components/MobileNav.tsx` (client component)
- Modify: `web/components/NavLinks.tsx` (full rewrite)
- Modify: `web/components/LogoutButton.tsx` (full rewrite)
- Modify: `web/app/layout.tsx` (full rewrite, building on Task 1's font wiring)
**Interfaces:**
- Consumes: `buttonClasses`/`Button` from Task 2 (`web/components/ui/Button.tsx`), `inter.variable` font wiring already present in `web/app/layout.tsx` from Task 1.
- Produces: `NavLinks` gains a new `orientation?: "vertical" | "horizontal"` prop (default `"vertical"`) — later tasks do not consume `NavLinks` directly (only `layout.tsx` does), but the prop name/type is fixed here for anyone touching `layout.tsx` again later. `MobileNav` — named export, props: `{ children: React.ReactNode }`, manages its own open/closed state, renders a hamburger button + slide-in drawer containing `children`.
- [ ] **Step 1: Create the MobileNav client component**
Create `web/components/MobileNav.tsx`:
```tsx
"use client";
import { useEffect, useState } from "react";
export function MobileNav({ children }: { children: React.ReactNode }) {
const [open, setOpen] = useState(false);
useEffect(() => {
if (!open) return;
function onKeyDown(event: KeyboardEvent) {
if (event.key === "Escape") setOpen(false);
}
window.addEventListener("keydown", onKeyDown);
return () => window.removeEventListener("keydown", onKeyDown);
}, [open]);
return (
setOpen((value) => !value)}
className="flex min-h-11 min-w-11 items-center justify-center rounded-md text-asphalt-grey focus-visible:outline focus-visible:outline-2 focus-visible:outline-performance-blue"
>
{open ? (
) : (
)}
{open && (
setOpen(false)}
className="absolute inset-0 bg-black/40"
/>
setOpen(false)}
className="mb-4 ml-auto flex min-h-11 min-w-11 items-center justify-center rounded-md text-asphalt-grey focus-visible:outline focus-visible:outline-2 focus-visible:outline-performance-blue"
>
{children}
)}
);
}
```
- [ ] **Step 2: Add an orientation prop to NavLinks**
Replace the entire contents of `web/components/NavLinks.tsx` with:
```tsx
import Link from "next/link";
import { canManageUsers, type Role } from "@/lib/auth/roles";
export function NavLinks({
role,
orientation = "vertical",
}: {
role: Role;
orientation?: "vertical" | "horizontal";
}) {
const layoutClass = orientation === "horizontal" ? "flex flex-row items-center gap-6" : "flex flex-col gap-4";
return (
Dashboard
Aufträge
{canManageUsers(role) && (
Nutzerverwaltung
)}
);
}
```
- [ ] **Step 3: Restyle LogoutButton using the Button primitive**
Replace the entire contents of `web/components/LogoutButton.tsx` with:
```tsx
import { logout } from "@/app/login/actions";
import { Button } from "@/components/ui/Button";
export function LogoutButton() {
return (
);
}
```
- [ ] **Step 4: Rewrite the root layout with the new header**
Replace the entire contents of `web/app/layout.tsx` with:
```tsx
import Image from "next/image";
import Link from "next/link";
import { Inter } from "next/font/google";
import "./globals.css";
import { loadProfile } from "@/lib/auth/profile";
import { NavLinks } from "@/components/NavLinks";
import { LogoutButton } from "@/components/LogoutButton";
import { MobileNav } from "@/components/MobileNav";
const inter = Inter({ subsets: ["latin"], variable: "--font-inter" });
export const metadata = {
title: "Aushilfsfahrer",
};
export default async function RootLayout({
children,
}: Readonly<{ children: React.ReactNode }>) {
const result = await loadProfile();
if (result.status === "missing-profile") {
return (
Profil nicht gefunden
Für deinen Account existiert kein Profil. Bitte wende dich an einen Admin.
);
}
return (
{result.status === "ok" && (
)}
{children}
);
}
```
Note: `MobileNav` is a client component receiving already-rendered Server Component output (`NavLinks`, `LogoutButton`, the profile ``) as `children` — this is the standard, fully-supported Next.js App Router "server output passed into a client shell" composition pattern. `MobileNav` itself never imports server-only code, so this does not violate the client/server boundary.
- [ ] **Step 5: Verify the build and tests**
```bash
cd web
npm run build
npm test
```
Expected: build exit code 0; `Tests 17 passed (17)`.
- [ ] **Step 6: Manually verify the header renders for an authenticated session**
Reuse the cookie-jar login technique already documented in `.superpowers/sdd/task-10-report.md` / `.superpowers/sdd/task-11-report.md` (log in as `admin@aushilfsfahrer.local`, save cookies, then curl subsequent pages with `-b`):
```bash
cd web
npm run dev -- -p 3111 &
sleep 3
curl -s -c /tmp/cookies.txt -d "email=admin@aushilfsfahrer.local" -d "password=Admin123!" -X POST http://localhost:3111/login -L -o /dev/null
curl -s -b /tmp/cookies.txt http://localhost:3111/dashboard | grep -o 'aria-expanded\|widmann-logo.svg\|Abmelden' | sort -u
kill %1
rm /tmp/cookies.txt
```
Expected: all three of `aria-expanded` (the hamburger button), `widmann-logo.svg` (the logo image src), and `Abmelden` appear.
- [ ] **Step 7: Commit**
```bash
git add web/components/MobileNav.tsx web/components/NavLinks.tsx web/components/LogoutButton.tsx web/app/layout.tsx
git commit -m "feat: add mobile drawer navigation and restyle header"
```
---
### Task 4: Dashboard page
**Files:**
- Modify: `web/app/dashboard/page.tsx` (full rewrite)
**Interfaces:**
- Consumes: `Card` from `web/components/ui/Card.tsx` (Task 2).
- [ ] **Step 1: Rewrite the dashboard page**
Replace the entire contents of `web/app/dashboard/page.tsx` with:
```tsx
import { loadProfile } from "@/lib/auth/profile";
import { Card } from "@/components/ui/Card";
export default async function DashboardPage() {
const result = await loadProfile();
if (result.status !== "ok") {
return null;
}
return (
Dashboard
Eingeloggt als {result.profile.name} ({result.profile.role})
);
}
```
- [ ] **Step 2: Verify the build and tests**
```bash
cd web
npm run build
npm test
```
Expected: build exit code 0; `Tests 17 passed (17)`.
- [ ] **Step 3: Manually verify**
```bash
cd web
npm run dev -- -p 3111 &
sleep 3
curl -s -c /tmp/cookies.txt -d "email=admin@aushilfsfahrer.local" -d "password=Admin123!" -X POST http://localhost:3111/login -L -o /dev/null
curl -s -b /tmp/cookies.txt http://localhost:3111/dashboard | grep -o 'Eingeloggt als Admin'
kill %1
rm /tmp/cookies.txt
```
Expected: `Eingeloggt als Admin` appears (confirms the page still renders the correct data inside the new `Card` markup).
- [ ] **Step 4: Commit**
```bash
git add web/app/dashboard/page.tsx
git commit -m "feat: restyle dashboard page"
```
---
### Task 5: StatusBadge + Aufträge-Liste
**Files:**
- Create: `web/components/ui/StatusBadge.tsx`
- Modify: `web/components/AuftragListe.tsx` (full rewrite)
- Modify: `web/app/auftraege/page.tsx` (full rewrite)
**Interfaces:**
- Consumes: `AuftragStatus` type from `web/lib/auftraege/queries.ts:17` (`"offen" | "zugewiesen" | "unterwegs" | "abgeschlossen" | "storniert"`), `Card`/`Alert` from Task 2, `buttonClasses` from Task 2.
- Produces: `StatusBadge` — named export, props: `{ status: AuftragStatus }`, renders a colored pill with the German label. Consumed by Task 6 (Auftrag-Detail) as well.
- [ ] **Step 1: Create the StatusBadge primitive**
Create `web/components/ui/StatusBadge.tsx`:
```tsx
import type { AuftragStatus } from "@/lib/auftraege/queries";
const STATUS_LABELS: Record
= {
offen: "Offen",
zugewiesen: "Zugewiesen",
unterwegs: "Unterwegs",
abgeschlossen: "Abgeschlossen",
storniert: "Storniert",
};
const STATUS_CLASSES: Record = {
offen: "bg-gray-100 text-status-neutral",
zugewiesen: "bg-blue-50 text-performance-blue",
unterwegs: "bg-amber-50 text-status-warning",
abgeschlossen: "bg-green-50 text-status-success",
storniert: "bg-red-50 text-status-danger",
};
export function StatusBadge({ status }: { status: AuftragStatus }) {
return (
{STATUS_LABELS[status]}
);
}
```
- [ ] **Step 2: Rewrite AuftragListe**
Replace the entire contents of `web/components/AuftragListe.tsx` with:
```tsx
import Link from "next/link";
import type { Auftrag } from "@/lib/auftraege/queries";
import { Card } from "@/components/ui/Card";
import { StatusBadge } from "@/components/ui/StatusBadge";
export function AuftragListe({ titel, auftraege }: { titel: string; auftraege: Auftrag[] }) {
return (
{titel}
{auftraege.length === 0 ? (
Keine Aufträge.
) : (
{auftraege.map((auftrag) => (
{auftrag.abholort.adresse} → {auftrag.zielort.adresse}
{auftrag.fahrzeug.kennzeichen}
))}
)}
);
}
```
- [ ] **Step 3: Rewrite the Aufträge-Liste page**
Replace the entire contents of `web/app/auftraege/page.tsx` with:
```tsx
import Link from "next/link";
import { loadProfile } from "@/lib/auth/profile";
import { listAuftraegeFuerListe } from "@/lib/auftraege/queries";
import { AuftragListe } from "@/components/AuftragListe";
import { Alert } from "@/components/ui/Alert";
import { buttonClasses } from "@/components/ui/Button";
export default async function AuftraegePage({
searchParams,
}: {
searchParams: Promise<{ error?: string }>;
}) {
const { error } = await searchParams;
const profileResult = await loadProfile();
if (profileResult.status !== "ok") {
return null;
}
const { meine, offene, alle } = await listAuftraegeFuerListe(profileResult.profile);
const istFahrer = profileResult.profile.role === "fahrer";
const kannAnlegen = profileResult.profile.role === "admin" || profileResult.profile.role === "disponent";
return (
Aufträge
{kannAnlegen && (
Neuen Auftrag anlegen
)}
{error && (
)}
{istFahrer ? (
<>
>
) : (
)}
);
}
```
Note: ` ` is styled directly with `buttonClasses(...)` rather than wrapped around a `` — nesting a `` inside an `` is invalid HTML5 (both are interactive content). This pattern repeats in Task 6.
- [ ] **Step 4: Verify the build and tests**
```bash
cd web
npm run build
npm test
```
Expected: build exit code 0; `Tests 17 passed (17)`.
- [ ] **Step 5: Manually verify**
```bash
cd web
npm run dev -- -p 3111 &
sleep 3
curl -s -c /tmp/cookies.txt -d "email=admin@aushilfsfahrer.local" -d "password=Admin123!" -X POST http://localhost:3111/login -L -o /dev/null
curl -s -b /tmp/cookies.txt http://localhost:3111/auftraege | grep -o 'Alle Aufträge\|Neuen Auftrag anlegen\|Keine Aufträge'
kill %1
rm /tmp/cookies.txt
```
Expected: `Alle Aufträge` and `Neuen Auftrag anlegen` appear (admin sees the "alle" section and the create-link); `Keine Aufträge` appears too if the local dev DB has no seeded orders at this point — that's expected on a fresh `supabase db reset`, not a failure.
- [ ] **Step 6: Commit**
```bash
git add web/components/ui/StatusBadge.tsx web/components/AuftragListe.tsx web/app/auftraege/page.tsx
git commit -m "feat: add StatusBadge and restyle Aufträge list page"
```
---
### Task 6: Auftrag-Detail page
**Files:**
- Modify: `web/app/auftraege/[id]/page.tsx` (full rewrite)
**Interfaces:**
- Consumes: `Card`, `Button`, `buttonClasses`, `Alert` from Task 2, `FormField`/`FIELD_CLASSES` from Task 2, `StatusBadge` from Task 5. Does not touch `web/app/auftraege/[id]/actions.ts` — all five Server Actions (`uebernehmen`, `fahrtBeginnen`, `schadenFotoNachtragen`, `fahrtBeenden`, `stornieren`) are consumed exactly as already exported, no signature changes.
- [ ] **Step 1: Rewrite the Auftrag-Detail page**
Replace the entire contents of `web/app/auftraege/[id]/page.tsx` with:
```tsx
import { notFound } from "next/navigation";
import Link from "next/link";
import { loadAuftrag, findeFolgeauftrag } from "@/lib/auftraege/queries";
import { loadProfile } from "@/lib/auth/profile";
import { PFLICHT_FOTO_POSITIONEN } from "@/lib/auftraege/foto-positionen";
import { uebernehmen, fahrtBeginnen, schadenFotoNachtragen, fahrtBeenden, stornieren } from "./actions";
import { Card } from "@/components/ui/Card";
import { StatusBadge } from "@/components/ui/StatusBadge";
import { Button, buttonClasses } from "@/components/ui/Button";
import { Alert } from "@/components/ui/Alert";
import { FormField, FIELD_CLASSES } from "@/components/ui/FormField";
export default async function AuftragDetailPage({
params,
searchParams,
}: {
params: Promise<{ id: string }>;
searchParams: Promise<{ error?: string }>;
}) {
const { id } = await params;
const { error } = await searchParams;
const [auftrag, profileResult] = await Promise.all([loadAuftrag(id), loadProfile()]);
if (!auftrag || profileResult.status !== "ok") {
notFound();
}
const istEigenerAuftrag = auftrag.zugewiesen_an === profileResult.profile.id;
// Bewusst eine lokale Rollen-Pruefung statt `canManageUsers` (die ist fuer
// Nutzerverwaltung gedacht und liefert nur "ist admin"). Laut
// Rechtematrix duerfen sowohl Admin als auch Disponent stornieren --
// semantisch getrennte Berechtigung von der Nutzerverwaltung, auch wenn
// beide aktuell denselben Rollenkreis (admin) ueberschneiden koennten.
const kannStornieren =
profileResult.profile.role === "admin" || profileResult.profile.role === "disponent";
const folgeauftrag = auftrag.status === "abgeschlossen" ? await findeFolgeauftrag(auftrag.id) : null;
const uebernehmenAction = uebernehmen.bind(null, auftrag.id);
const fahrtBeginnenAction = fahrtBeginnen.bind(null, auftrag.id);
const schadenFotoNachtragenAction = schadenFotoNachtragen.bind(null, auftrag.id);
const fahrtBeendenAction = fahrtBeenden.bind(null, auftrag.id);
const stornierenAction = stornieren.bind(null, auftrag.id);
return (
{auftrag.abholort.adresse} → {auftrag.zielort.adresse}
{error && (
)}
Fahrzeug
{auftrag.fahrzeug.kennzeichen}
Abholort
{auftrag.abholort.adresse} ({auftrag.abholort.ansprechpartner})
Zielort
{auftrag.zielort.adresse} ({auftrag.zielort.ansprechpartner})
{auftrag.status === "offen" && (
)}
{auftrag.status === "zugewiesen" && istEigenerAuftrag && (
)}
{auftrag.status === "unterwegs" && istEigenerAuftrag && (
)}
{auftrag.status === "unterwegs" && istEigenerAuftrag && (
)}
{auftrag.status === "abgeschlossen" && folgeauftrag && (
Anschlussauftrag verfügbar:{" "}
Jetzt übernehmen
)}
{kannStornieren && auftrag.status !== "abgeschlossen" && auftrag.status !== "storniert" && (
)}
);
}
```
- [ ] **Step 2: Verify the build and tests**
```bash
cd web
npm run build
npm test
```
Expected: build exit code 0; `Tests 17 passed (17)`.
- [ ] **Step 3: Manually verify against a real order**
This page's forms are status-conditional, so a meaningful check needs at least one real `auftraege` row. Reuse the seed-data approach already used for this project's local dev/master-stack verification (insert a row directly via `docker exec -i psql`, or use the existing `orte`/`fahrzeuge` sample rows if present from prior manual testing) — then:
```bash
cd web
npm run dev -- -p 3111 &
sleep 3
curl -s -c /tmp/cookies.txt -d "email=admin@aushilfsfahrer.local" -d "password=Admin123!" -X POST http://localhost:3111/login -L -o /dev/null
curl -s -b /tmp/cookies.txt "http://localhost:3111/auftraege/" | grep -o 'Auftrag übernehmen\|Fahrt beginnen\|Fahrt beenden\|Auftrag stornieren' | sort -u
kill %1
rm /tmp/cookies.txt
```
Expected: exactly the form(s) matching that order's current `status` appear (e.g. an `offen` order shows only `Auftrag übernehmen`; do not expect all four to appear simultaneously — they are mutually exclusive by status).
- [ ] **Step 4: Commit**
```bash
git add "web/app/auftraege/[id]/page.tsx"
git commit -m "feat: restyle Auftrag detail page"
```
---
### Task 7: Auftrag-anlegen page
**Files:**
- Modify: `web/app/auftraege/neu/page.tsx` (full rewrite)
**Interfaces:**
- Consumes: `Card`, `Button`, `Alert` from Task 2, `FormField`/`FIELD_CLASSES` from Task 2. Does not touch `web/app/auftraege/neu/actions.ts`.
- [ ] **Step 1: Rewrite the Auftrag-anlegen page**
Replace the entire contents of `web/app/auftraege/neu/page.tsx` with:
```tsx
import { redirect } from "next/navigation";
import { createAuftrag } from "./actions";
import { listOrte, listFahrzeuge } from "@/lib/auftraege/queries";
import { loadProfile } from "@/lib/auth/profile";
import { Card } from "@/components/ui/Card";
import { Button } from "@/components/ui/Button";
import { Alert } from "@/components/ui/Alert";
import { FormField, FIELD_CLASSES } from "@/components/ui/FormField";
export default async function NeuerAuftragPage({
searchParams,
}: {
searchParams: Promise<{ error?: string; vorgaenger_auftrag_id?: string }>;
}) {
const profileResult = await loadProfile();
// Seitenebenen-Gate zusaetzlich zur INSERT-RLS-Policy auf `auftraege`
// (admin/disponent-only): ohne diesen Check wuerde die Seite das Formular
// auch Fahrern/Readonly anzeigen, obwohl ein Submit dann ohnehin an der
// RLS-Policy scheitern wuerde -- das ist verwirrende UX statt eines echten
// Sicherheitslecks, aber ein frueher Redirect ist die klarere Loesung.
if (
profileResult.status !== "ok" ||
(profileResult.profile.role !== "admin" && profileResult.profile.role !== "disponent")
) {
redirect(`/auftraege?error=${encodeURIComponent("Nur Disponent/Admin duerfen Auftraege anlegen.")}`);
}
const { error, vorgaenger_auftrag_id } = await searchParams;
const [orte, fahrzeuge] = await Promise.all([listOrte(), listFahrzeuge()]);
return (
Neuen Auftrag anlegen
{error && (
)}
);
}
```
- [ ] **Step 2: Verify the build and tests**
```bash
cd web
npm run build
npm test
```
Expected: build exit code 0; `Tests 17 passed (17)`.
- [ ] **Step 3: Manually verify**
```bash
cd web
npm run dev -- -p 3111 &
sleep 3
curl -s -c /tmp/cookies.txt -d "email=admin@aushilfsfahrer.local" -d "password=Admin123!" -X POST http://localhost:3111/login -L -o /dev/null
curl -s -b /tmp/cookies.txt http://localhost:3111/auftraege/neu | grep -o 'Abholort\|Zielort\|Fahrzeug\|Auftrag anlegen'
kill %1
rm /tmp/cookies.txt
```
Expected: all four labels appear.
- [ ] **Step 4: Commit**
```bash
git add web/app/auftraege/neu/page.tsx
git commit -m "feat: restyle Auftrag-anlegen page"
```
---
## After all tasks
Once all 7 tasks are committed and reviewed, this branch is a pure presentation-layer change with no schema/RLS/Server-Action modifications — the final whole-branch review can be lighter-weight than the Auftragsverwaltung branch's (no new attack surface to probe), focused on: visual/structural consistency across pages, no accidental logic changes in any `actions.ts` or `lib/` file (diff those files first — they should show zero changes), and `npm run build`/`npm test` green on the full accumulated diff. The project owner will do the final cross-breakpoint visual check themselves in the rebuilt Docker container (`docker compose build web && docker compose up -d web`, per the existing project convention already used after the Auftragsverwaltung merge).