Unterschrift, Schadensbeschreibung und PDF-Export beim Fahrtende sind das
erste Sub-Projekt aus einem groesseren Feature-Wunsch; weitere Bereiche
(Routenberechnung, Benachrichtigungen, Reporting, ...) sind als Backlog
in CLAUDE.md vorgemerkt.
- profiles_rls_test.sql: fehlende negative Assertion ergaenzt, die
sicherstellt, dass der Fahrer-Testnutzer 44444444... weiterhin KEIN
Readonly-Profil sieht (Policy bleibt scharf auf role in
('admin','disponent') begrenzt). plan(12) -> plan(13).
- design.md: Aussage zu erstellt_von im Auftrag-Typ korrigiert (nullable
statt immer vorhanden), passend zum bereits umgesetzten Code und zum
Nachtrag in Abschnitt 1 der gleichen Spec.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCHRPWuV3bd37NJhW2NK6P
Task 2's implementer found that check_auftrag_status_transition() independently
blocks the zugewiesen->unterwegs transition below 8 photos, duplicating the
app-level check removed in Task 1. Insert a new Task 2 (migration + pgTAP test
update) and correct the "no schema change" claims accordingly.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCHRPWuV3bd37NJhW2NK6P
Admin-Client mit Service-Role-Key, Validierung, Nutzerliste-Merge aus
profiles + auth.admin.listUsers, vier Server Actions und die Seite in
6 Tasks.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Admin kann Nutzer anlegen, Rollen aendern und ueber die Supabase Admin
API sperren/entsperren -- RLS ist hier bewusst nicht die Grenze, die
Server-Action-Rollenpruefung ist es.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Kommen/Gehen-Tabelle mit Column-Lockdown-Trigger, Pausenpauschale nach
§4 ArbZG, Aggregation, CSV-Export und Korrektur-Workflow in 9 Tasks.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Kommen/Gehen-Modul mit Pausenpauschale nach §4 ArbZG, Auswertung und
Korrekturmoeglichkeit durch Disponent/Admin.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
7 tasks: RLS policy for disponent-sees-fahrer-profiles (needed for the
assignment picker), pure drag-permission helper, Kanban query layer,
result-based server actions for the board context (deliberately not
reusing the redirect-based form actions), the KanbanBoard component
with @dnd-kit/core, the Fahrer-Auswaehler dialog, and wiring into the
dashboard page.
Replaces the Dashboard placeholder with an interactive Kanban board
(drag-and-drop via @dnd-kit/core, touch-capable per the mobile-first
requirement). Reuses existing RLS-driven visibility and the
uebernehmen()/stornieren() actions; adds one new server action
(zuweisenAnFahrer) for Disponent/Admin assigning orders to a specific
Fahrer, a gap that existed since the original Auftragsverwaltung scope.
7 tasks: validation helpers, query/mutation data layer, pgTAP RLS
coverage (a gap that predates this plan), Stammdaten page for Orte
and Fahrzeuge (list+create+edit), and inline quick-add for both on
the Auftrag-anlegen form. No schema/RLS changes - reuses existing
insert/update policies from the Auftragsverwaltung foundation.