1
0
Fork 0
Commit Graph

55 Commits

Author SHA1 Message Date
Jonny 94f6f851bf docs: Spec für Fahrzeug-FIN (Erfassung, Barcode-Scan, Abgleich bei Fahrtbeginn)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 09:18:11 +02:00
Jonny 00f19f4170 fix: login leitet bei Passwortpflicht direkt auf /passwort-aendern, Spec-Sicherheitsabschnitt korrigiert
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 11:46:06 +02:00
Jonny 0123ce1d4b docs: Plan für Passwort setzen/zurücksetzen
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 11:11:15 +02:00
Jonny d5725d404b docs: Spec für Passwort setzen/zurücksetzen durch den Admin
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 11:08:40 +02:00
Jonny 9489e04859 docs: Spec und Plan für Nutzer-Details
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 09:44:43 +02:00
Jonny 09e7f3aabf docs: Plan Fahrerauslastung
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-01 16:31:26 +02:00
Jonny 62c977cfaa docs: Spec Fahrerauslastung
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-01 16:28:21 +02:00
Jonny 1800de1cae docs: Implementierungsplan fuer WhatsApp-Benachrichtigung bei neuem Auftrag
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dimk8Jo64b4wULp2yAzSNh
2026-09-03 17:08:42 +02:00
Jonny c4c73a365b docs: Spec fuer WhatsApp-Benachrichtigung bei neuem Auftrag
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dimk8Jo64b4wULp2yAzSNh
2026-09-03 17:01:01 +02:00
Jonny 8d38ad8e7e docs: Implementierungsplan fuer digitales Uebergabeprotokoll 2026-09-03 11:12:33 +02:00
Jonny bdb08dc7ab docs: Spec fuer digitales Uebergabeprotokoll + Feature-Backlog in CLAUDE.md
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.
2026-09-03 11:03:42 +02:00
Jonny f84474a2a3 docs: revise Login-per-Benutzername plan for current Nutzerverwaltung architecture 2026-08-20 23:52:33 +02:00
Jonny adfd9e5815 docs: add Zeitplanung-Auswahl implementation plan 2026-08-20 19:36:59 +02:00
Jonny d1d3e8b052 docs: add Zeitplanung-Auswahl design spec 2026-08-20 19:32:07 +02:00
Jonny e3d82e0cf6 docs: add Auftragsnummer implementation plan 2026-08-20 10:12:02 +02:00
Jonny 40e17e3a5a docs: add Auftragsnummer design spec 2026-08-20 10:05:55 +02:00
Jonny eaa848f845 docs: add Ansprechpartner-Kontakt implementation plan 2026-08-19 12:06:26 +02:00
Jonny 60c033184b docs: add Ansprechpartner-Kontakt (Telefon/E-Mail) design spec 2026-08-19 12:02:08 +02:00
Jonny 306ce1544d fix: pgTAP-Luecke (Fahrer-Grenze) und veraltete Spec-Stelle nach Final-Review
- 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
2026-08-19 11:06:54 +02:00
Jonny 6ef0842a62 docs: add Auftrag-Ersteller-anzeigen implementation plan 2026-08-19 10:11:29 +02:00
Jonny ab31b5121c docs: add Auftrag-Ersteller-anzeigen design spec 2026-08-19 10:00:06 +02:00
Jonny 91607baf7f docs: add pgTAP suite and /rebuild-master-stack reminder to plan's merge checklist 2026-08-18 17:48:04 +02:00
Jonny df79d9324e docs: correct plan/spec after discovering DB trigger also enforces mandatory photos
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
2026-08-18 16:00:14 +02:00
Jonny 6137dac74d docs: add Fahrtbeginn-Fotos-optional implementation plan 2026-08-18 14:53:16 +02:00
Jonny 6780ef32b8 docs: add Fahrtbeginn-Fotos-optional design spec 2026-08-18 14:43:38 +02:00
Jonny a2254ae539 docs: add Auftrag-Foto-Galerie implementation plan 2026-08-18 12:25:18 +02:00
Jonny 61a306a121 docs: add Auftrag-Foto-Galerie design spec 2026-08-18 12:02:36 +02:00
Jonny 525c460a74 docs: add Nutzerverwaltung-Tabelle implementation plan 2026-08-17 16:49:52 +02:00
Jonny 3885fa5bea docs: add Nutzerverwaltung-Tabelle design spec 2026-08-17 16:41:10 +02:00
Jonny ca942958c0 docs: add Standorte/Fahrzeuge-Tabellen implementation plan 2026-08-17 14:47:23 +02:00
Jonny b15f36e528 docs: add Standorte/Fahrzeuge-Tabellen design spec 2026-08-17 14:37:34 +02:00
Jonny b70c1511f1 docs: add Login-per-Benutzername implementation plan 2026-07-16 08:29:19 +02:00
Jonny 6b4e53d46f docs: add Login-per-Benutzername design spec 2026-07-15 22:46:16 +02:00
Jonny 5ad147088c docs: add Nutzerverwaltung implementation plan
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>
2026-07-14 18:48:55 +02:00
Jonny cffd576451 docs: add Nutzerverwaltung design spec
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>
2026-07-14 18:35:24 +02:00
Jonny cd6fa14551 docs: add Zeiterfassung implementation plan
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>
2026-07-13 15:53:20 +02:00
Jonny 50b511fe9c docs: add Zeiterfassung design spec
Kommen/Gehen-Modul mit Pausenpauschale nach §4 ArbZG, Auswertung und
Korrekturmoeglichkeit durch Disponent/Admin.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-13 15:39:01 +02:00
Jonny 70d68d6b6b docs: add Kanban-Dashboard implementation plan
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.
2026-07-07 15:26:33 +02:00
Jonny 1d148e0db0 docs: add Kanban-Dashboard design spec
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.
2026-07-07 15:18:50 +02:00
Jonny ebbb5d67a4 docs: add Stammdaten (Orte/Fahrzeuge) implementation plan
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.
2026-07-06 19:27:57 +02:00
Jonny 1c9be22df2 docs: add Stammdaten (Orte/Fahrzeuge) design spec
Closes a gap found during the first live design-system test: no UI
existed to create new Abholorte/Zielorte/Fahrzeuge (only dropdowns of
existing entries). No schema change needed - RLS already supports
admin/disponent insert/update on orte/fahrzeuge. Covers a new
/stammdaten management page (list+create+edit) plus an inline
quick-add on the Auftrag-anlegen form.
2026-07-06 19:07:14 +02:00
Jonny 133308adf8 docs: fix curl login verification technique in plan
The plain form-urlencoded curl POST in the manual verification steps
does not work against a real Next.js Server Action (found during Task
3's manual verification). Documents the correct multipart/$ACTION_ID
technique and the test admin credentials in Global Constraints so
later tasks don't rediscover this.
2026-07-06 12:01:44 +02:00
Jonny cdacc76fb4 docs: add design-system implementation plan
7 tasks: Tailwind v4 setup + brand tokens, UI primitives + login,
mobile drawer navigation, dashboard, Aufträge-Liste + StatusBadge,
Auftrag-Detail, Auftrag-anlegen. Pure presentation layer, no
Server-Action/RLS/schema changes.
2026-07-06 09:55:23 +02:00
Jonny 7f1df79b41 docs: add design-system spec (mobile-first, Widmann-Branding)
Brand tokens (colors, Inter font) extracted directly from widmannbewegt.de's
production CSS; logo SVG saved for later use. Covers layout/nav, reusable
UI primitives, and page-by-page application as a pure presentation-layer
sub-project on top of the existing Fundament and Auftragsverwaltung features.
2026-07-06 09:42:06 +02:00
Jonny 0334fb4f10 docs: fix stornieren RLS gap and fahrtBeenden silent-noop found by security review
Task 2's fahrer UPDATE policy only constrains zugewiesen_an in its
WITH CHECK, not the status value itself, so a fahrer could set their
own assigned order straight to 'storniert' even though the spec
reserves cancellation for Disponent/Admin. Live-verified the gap
(UPDATE 1 as fahrer before the fix). Extends Task 4's trigger with a
role-gated check on the 'storniert' target status plus a regression
test (plan(12) -> plan(13)). Also hardens fahrtBeenden/stornieren in
Task 11 to check affected-row counts (matching uebernehmen's existing
pattern) instead of silently "succeeding" when RLS blocks a write for
an unauthorized caller.
2026-07-05 22:43:10 +02:00
Jonny ad15af965b docs: fix fahrtBeginnen photo write - upsert on partial index doesn't work
The plan's original upsert(onConflict: "auftrag_id,position") for
auftrag_fotos cannot work: PostgREST's onConflict generates an
unqualified ON CONFLICT clause that can't target Task 3's partial
unique index (position <> 'schaden'), and even a working ON CONFLICT
would hit RLS since only admin has UPDATE on auftrag_fotos. Switched
to plain insert with checked errors on both write paths, consistent
with the spec's "Loeschen/Ersetzen nur durch Admin" rule.
2026-07-05 22:19:02 +02:00
Jonny e52a499b71 docs: fix invalid hex digit in readonly test-fixture UUID (r -> 0) 2026-07-05 17:03:28 +02:00
Jonny b576c4e3b1 docs: fix RLS role-gating gaps found by automated security review
The fahrer UPDATE policy on auftraege, the fahrer INSERT policy on
auftrag_fotos, and the storage upload policy all lacked an explicit
public.user_role() = 'fahrer' predicate, so any authenticated role
(including the default readonly signup role) could exploit the
status='offen' clause to self-assign open orders. Also adds identity
binding (erstellt_von/uploaded_by = auth.uid()) on inserts, and a
column-lockdown check in Task 4's trigger so a fahrer can't smuggle
changes to abholort_id/zielort_id/fahrzeug_id/erstellt_von/
vorgaenger_auftrag_id into an otherwise-legitimate update.
2026-07-05 11:18:58 +02:00
Jonny f9bddc01a8 docs: add implementation plan for auftragsverwaltung sub-project
11 tasks covering the orte/fahrzeuge lookup pools, the auftraege
core table with RLS and a DB-enforced status transition trigger,
photo storage with RLS, and the driver/dispatcher-facing pages.
2026-07-05 10:53:57 +02:00
Jonny e9c9c36448 docs: add design spec for Auftragsverwaltung sub-project
Covers the full order lifecycle (create, assign, driver pickup with
km/photos, dropoff, vehicle chaining) building on the auth/roles
foundation, scoped separately from Kanban board, routing, and full
time tracking per CLAUDE.md's independent feature list.
2026-07-05 10:36:08 +02:00