1
0
Fork 0
Commit Graph

212 Commits

Author SHA1 Message Date
Jonny 9b90bf6335 fix: GCM-Tag- und IV-Laenge beim SMTP-Passwort festschreiben
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 14:32:14 +02:00
Jonny 2f886a24df fix: Nutzer nur in aktiver Firma anlegen, /abmelden von Passwortpflicht ausnehmen, Profil fuer Superadmin
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 14:32:14 +02:00
Jonny 3365a37160 docs: Superadmin-Skript und SMTP_VERSCHLUESSELUNG_KEY
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-10-12 14:19:49 +02:00
Jonny aba766ea56 feat: WhatsApp-Empfaenger, SMTP und PDF-Branding pro Firma
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 14:12:51 +02:00
Jonny 884237ddd1 feat: Plattform-Bereich zum Anlegen und Verwalten von Firmen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 14:03:12 +02:00
Jonny 755c5cb333 feat: SMTP-Absender pro Firma mit verschluesseltem Passwort und Testmail
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 13:58:11 +02:00
Jonny 2e9709fe9a feat: Firmen-Einstellungen mit Kontrastpruefung und Logo-Upload
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 13:48:10 +02:00
Jonny 7579c849fc feat: Nutzerverwaltung ordnet Firma zu und prueft Zielnutzer per RLS
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 10:12:46 +02:00
Jonny b16cc5ee6a fix: DB-Fehler bei Firmenzugang werfen statt als gesperrt zu gelten
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 10:10:35 +02:00
Jonny 61f531552c feat: Firmenzugang beim Login, Branding im Layout, Logo-Route, Superadmin-Navigation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 10:08:37 +02:00
Jonny 88693282f8 feat: Farb-Kontrastpruefung und SMTP-Passwort-Verschluesselung
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 10:02:38 +02:00
Jonny 2acaaced93 feat: Firmen, firma_id in allen Fachtabellen, Trigger und Eindeutigkeit pro Firma
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-12 09:39:23 +02:00
Jonny b3e360f530 fix: PDF-Pfad unterscheidet Fehler von nicht gefunden, sharp lazy, PNG-Alpha weiss, SMTP_SECURE case-insensitive
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 08:34:16 +02:00
Jonny 2787de8445 feat: Outbox-Dispatcher mit Handlern je Ereignis-Art, Protokoll-Mail-Handler
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 08:16:00 +02:00
Jonny da0330aa06 fix: STARTTLS bei Auth erzwingen, FIN-Zeile nur bei Abweichung, Sendetests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 20:33:49 +02:00
Jonny 0e25a36568 feat: SMTP-Konfiguration und Protokoll-Mail (Aufbau und Versand)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 20:29:14 +02:00
Jonny 228b7c731c feat: PDF-Erzeugung als gemeinsame Funktion, Fotos fuers Protokoll verkleinert
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 18:53:11 +02:00
Jonny ff201eb2cd fix: Final-Review (FIN maxLength, Labels, Fahrer-Hinweis bei Abweichung, Import-Platzierung)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 12:24:57 +02:00
Jonny ae74b730f0 fix: FinScanner Abbruch-Race, Fehlversuch-Limit, Escape/Fokus, min-w-0, nativer Probe-Fallback
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 11:01:06 +02:00
Jonny 70fa8e27b7 feat: FIN per Barcode-Scan erfassen (barcode-detector, WASM vom eigenen Server)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 22:45:10 +02:00
Jonny c86f4df08f feat: optionaler FIN-Abgleich bei Fahrtbeginn mit Abweichungs-Bestaetigung
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 22:18:30 +02:00
Jonny 7ea4a5b551 feat: FIN in Fahrzeug-Stammdaten und beim Anlegen im Auftrag erfassen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 22:05:07 +02:00
Jonny 5f2af33e3e feat: FIN und FIN-Abgleich in Listen, Kanban, Auslastung, Auftragsdetail und PDF anzeigen
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 16:58:49 +02:00
Jonny d0f8d0cf54 feat: FIN-Validierung, Scan-Extraktion und Anzeige-Texte
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 11:23:17 +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 835ce182c8 feat: Admin setzt Passwörter, Passwortänderung auch beim Anlegen erzwungen
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 11:29:12 +02:00
Jonny be021f803a feat: Middleware leitet Nutzer mit Passwortpflicht auf /passwort-aendern um
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 11:25:01 +02:00
Jonny 25f0f6c055 feat: Seite /passwort-aendern für die erzwungene Passwortänderung
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 11:21:30 +02:00
Jonny 6011df76b2 feat: Passwort-Validierung und Zwangsprüfung für die Passwortänderung
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 11:17:54 +02:00
Jonny f5458edd1f fix: Lesefehler bei Nutzer-Details nicht als "keine Details" behandeln
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 10:30:50 +02:00
Jonny abdc4e7f32 feat: Seite /fahrer, Admin und Disponent sehen die Fahrer-Details
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 10:14:16 +02:00
Jonny 2cacd33372 feat: Seite /profil, Nutzer pflegt eigene Details
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 10:11:12 +02:00
Jonny bd3e5b3d4d feat: Admin pflegt Nutzer-Details in der Nutzerverwaltung
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 10:08:40 +02:00
Jonny 8db975bdb5 feat: Datenzugriff und UI-Bausteine für Nutzer-Details
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-05 10:02:13 +02:00
Jonny 93efeccb9e feat: Validierung und Formatierung der Nutzer-Details (Telefon als E.164)
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-10-05 09:58:33 +02:00
Jonny 2ee9fd591f feat: Statusfilter in der Auftragsliste (Standard: offen, zugewiesen, unterwegs)
Umschalter Aktiv/Alle ueber ?status=alle, serverseitig gefiltert, fuer alle
Rollen. Bei Fahrern wirkt er auf Meine Auftraege; Offene Auftraege bleibt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-02 09:52:54 +02:00
Jonny 1911d9fdbf fix: Review-Findings Fahrerauslastung (alte Schicht, ueberfaellige diese_woche-Auftraege)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-02 08:11:07 +02:00
Jonny 5d5c16f1af fix: Grammatik bei Zaehler offener Auftraege in der Auslastung
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-02 08:01:56 +02:00
Jonny aaaaaf90aa feat: Seite /auslastung mit Tabs Jetzt und Planung
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-01 21:18:24 +02:00
Jonny 87b62e800e feat: Abfragen fuer Fahrerauslastung
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-01 18:12:29 +02:00
Jonny 78a5ad0d0c feat: Fachlogik fuer Fahrerauslastung (Zustand, Planung, Ueberschneidung)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-01 18:09:21 +02:00
Jonny de57d4d798 feat: Rollen-Check und Nav-Link fuer Auslastung
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-01 18:05:41 +02:00
Jonny 4957a5c7bf fix: Abschluss-Review -- Outbox-Update-Fehler nicht schlucken, event_type-Guard, Route-Hardening, Cron-Secret-Guard, pgTAP fuer claim/Write-Denial
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dimk8Jo64b4wULp2yAzSNh
2026-09-04 00:35:50 +02:00
Jonny 7409b55729 fix: /api/notifications/dispatch vom Middleware-Session-Gate ausnehmen
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dimk8Jo64b4wULp2yAzSNh
2026-09-04 00:13:58 +02:00
Jonny 26f7a70b54 chore: env-Doku und docker-compose fuer WhatsApp-Benachrichtigung, rebuild-master-stack-Hinweis 2026-09-04 00:08:05 +02:00
Jonny 0d5b3ef10b feat: POST /api/notifications/dispatch -- Outbox-Dispatch-Route mit Shared-Secret 2026-09-03 17:43:17 +02:00
Jonny 018ad1fbfe feat: verarbeiteOutbox -- Outbox-Batch mit Retry/Backoff verarbeiten
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dimk8Jo64b4wULp2yAzSNh
2026-09-03 17:39:21 +02:00
Jonny 4ed9a3bede feat: buildTemplateComponents und sendWhatsAppTemplate (Meta Cloud API) 2026-09-03 17:33:43 +02:00
Jonny 71ea72c9fc feat: getWhatsAppConfig -- WhatsApp-Konfiguration aus env 2026-09-03 17:30:56 +02:00
Jonny 70fb01dfa1 fix: Abschluss-Review -- Status-Guard fahrtBeenden, PDF-Fehlerbehandlung+Format, Fahrer/Startzeit+Datumsformat im PDF, standalone-Deps, Touch-Target, Thumbnail-Caption, pgTAP
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dimk8Jo64b4wULp2yAzSNh
2026-09-03 16:12:42 +02:00
Jonny f90fe1f347 feat: PDF-Uebergabeprotokoll als Download bereitstellen
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dimk8Jo64b4wULp2yAzSNh
2026-09-03 14:16:59 +02:00
Jonny 93dd6fc46b feat: PDF-Layout und Datenaufbereitung fuer das Uebergabeprotokoll 2026-09-03 14:10:07 +02:00
Jonny 93fbfc3fb0 fix: Unterschrift-Canvas mobil-korrekt skalieren, Leer-Upload verhindern, Fahrer-UPDATE-Policy
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Dimk8Jo64b4wULp2yAzSNh
2026-09-03 14:03:31 +02:00
Jonny 5c7b289cb9 feat: digitale Unterschrift und Empfaenger-Name bei Fahrtende erfassen und anzeigen 2026-09-03 12:49:52 +02:00
Jonny 569048122f feat: Empfaenger-Name und Unterschrift-Pfad im Auftrag-Query freigeben 2026-09-03 12:46:17 +02:00
Jonny 803b726bea feat: pro Schadensfoto eine optionale Freitext-Beschreibung erfassen und anzeigen 2026-09-03 12:42:04 +02:00
Jonny 002601f1e5 feat: Parser fuer indizierte Schadensfoto-Felder (Foto + Beschreibung)
Task 4: Implementiert parseSchadenUploads() zur Extraktion von indizierten
Schadensfoto-Feldern aus FormData. Unterstützt:
- Parsing von 'foto_schaden_<i>' und 'foto_schaden_<i>_beschreibung'
- Sortierung nach Index
- Nulling von leeren/Whitespace-Beschreibungen
- Ignorieren von Zeilen ohne Foto (auch wenn Beschreibung vorhanden)

Alle 6 Testfälle bestanden (TDD: RED -> GREEN).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-03 12:36:20 +02:00
Jonny b0331790a4 feat: Schadensbeschreibung durchreichen, Unterschrift-URL-Helfer ergaenzen
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-03 12:31:14 +02:00
Jonny 65bc570962 fix: erstelleNutzer informiert bei Benutzername-Kollision ueber bereits angelegten Account
Wenn nach erfolgreichem auth.admin.createUser() das nachfolgende Update
von profiles.username wegen einer Kollision (23505) fehlschlaegt, zeigte
die Meldung bisher nur "Benutzername bereits vergeben" -- ohne Hinweis,
dass bereits ein Account angelegt wurde. Das las sich wie "nichts ist
passiert, bitte erneut versuchen", ein Retry schlug dann aber mit
"E-Mail bereits registriert" fehl, was die verwaiste Zeile (mit
Platzhalter-Benutzername und Rolle "readonly") weiter verschleierte.
2026-08-21 01:44:54 +02:00
Jonny 59ddfe0b68 fix: service_role Grant fuer profiles-Lookup beim Username-Login + Fehlerbehandlung
Task 7's E2E-Verifikation von Task 6 fand: service_role hatte kein SELECT-Grant
auf public.profiles. Der Username-Login-Lookup in web/app/login/actions.ts laeuft
zwangslaeufig ueber den Service-Role-Client (RLS laesst anonyme profiles-Zugriffe
nicht zu), bekam aber "42501 permission denied for table profiles" -- BYPASSRLS
umgeht nur RLS, nicht die darunterliegende GRANT-Ebene. Der Fehler wurde zusaetzlich
komplett verschluckt (nur `data` destrukturiert, `error` ignoriert), sodass Login
per Benutzername fuer JEDEN Benutzernamen fehlschlug, aber mit der irrefuehrend
plausiblen generischen "nicht gefunden"-Meldung.

- Neue Migration grantet service_role SELECT (und nur SELECT) auf public.profiles.
- login() prueft jetzt den Lookup-Fehler und loggt ihn serverseitig, damit ein
  kuenftiger Regressionsfall (z.B. versehentlich entzogenes Grant) nicht wieder
  lautlos als "Benutzername nicht gefunden" maskiert wird. Die Nutzer-Antwort
  (generische LOGIN_FEHLER-Meldung) bleibt fuer beide Faelle byte-identisch, um
  die Anti-Enumeration-Eigenschaft nicht zu gefaehrden.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCHRPWuV3bd37NJhW2NK6P
2026-08-21 01:15:24 +02:00
Jonny caf72557d5 feat: allow login via username in addition to email 2026-08-21 00:53:40 +02:00
Jonny 3ab16f4103 feat: show and edit username in Nutzerverwaltung table
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCHRPWuV3bd37NJhW2NK6P
2026-08-21 00:49:04 +02:00
Jonny 956fe82edb feat: add username to validateNutzerBearbeiten, erstelleNutzer and aktualisiereNutzer 2026-08-21 00:38:18 +02:00
Jonny 7dcee542f2 feat: add username to Nutzerliste query 2026-08-20 23:54:59 +02:00
Jonny ade7d85791 test: restore exact-8-character password boundary case 2026-08-20 23:42:34 +02:00
Jonny 9967a705d6 feat: add validateUsername and wire it into validateNutzerErstellen 2026-08-20 23:42:23 +02:00
Jonny c9bf7b5c3e fix: parse Zeitplanung-Zeitpunkt als Europe/Berlin statt Server-TZ
createAuftrag interpretierte den datetime-local-Wert bisher mit new
Date(zeitpunktRaw), was in Node die Zeitzone des ausfuehrenden Prozesses
annimmt. Im produktiven Docker-Container (kein TZ gesetzt, laeuft in
UTC) fuehrte das zu einer stillen Zeitverschiebung: 15:00 Uhr Eingabe
wurde als 15:00 UTC statt 15:00 Europe/Berlin gespeichert und beim
Anzeigen faelschlich als 17:00 Uhr zurueckformatiert.

parseZeitplanungZeitpunkt() in zeitplanung.ts ermittelt den
Europe/Berlin-UTC-Offset fuer den gegebenen Zeitpunkt ueber
Intl.DateTimeFormat (unabhaengig von der Prozess-Zeitzone) und
interpretiert die Eingabe explizit als Berliner Wanduhrzeit.
createAuftrag nutzt jetzt diese Funktion statt new Date() direkt.

Neue Tests decken Sommer-/Winterzeit sowie den Round-Trip ueber
formatZeitplanung ab und wurden unter TZ=UTC, TZ=Europe/Berlin und
TZ=America/New_York identisch bestanden.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCHRPWuV3bd37NJhW2NK6P
2026-08-20 20:35:50 +02:00
Jonny 2eb85870bb feat: Zeitplanung auf Detailseite und in Auftragsliste anzeigen 2026-08-20 20:17:51 +02:00
Jonny 0863d5d9b9 feat: Zeitplanung-Auswahl beim Anlegen eines Auftrags
Neuer ZeitplanungFeld-Client-Komponente zeigt Datum/Uhrzeit-Feld nur
fuer die Zeitplanungstypen "am"/"ab" an und wird auf der Auftrag-
Neu-Seite eingebunden. createAuftrag validiert und speichert
zeitplanung_typ/zeitplanung_zeitpunkt, mit serverseitiger Pruefung
vor dem Insert.
2026-08-20 20:00:16 +02:00
Jonny 343f7a3aac feat: Zeitplanung in Auftrag-Query aufnehmen 2026-08-20 19:50:00 +02:00
Jonny a592054ef6 feat: Zeitplanung-Typen, Formatierung und Datumsvorbefuellung 2026-08-20 19:46:59 +02:00
Jonny 20d5b4a687 feat: Auftragsnummer auf Detailseite und in Auftragsliste anzeigen 2026-08-20 10:50:15 +02:00
Jonny ca24bcd407 feat: Auftragsnummer beim Anlegen eingebbar machen 2026-08-20 10:43:21 +02:00
Jonny 9ef5e17cba feat: Auftragsnummer in Auftrag-Query aufnehmen 2026-08-20 10:29:56 +02:00
Jonny 846eb7d05f feat: Telefon/E-Mail des Ansprechpartners auf Auftrag-Detailseite anzeigen 2026-08-19 12:46:30 +02:00
Jonny 9d03c6d68d feat: Telefon/E-Mail in Standort-Formularen und -Tabelle
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCHRPWuV3bd37NJhW2NK6P
2026-08-19 12:39:15 +02:00
Jonny bcaa545aaa feat: Telefon/E-Mail in Standort-Server-Actions durchreichen 2026-08-19 12:30:40 +02:00
Jonny 67abe86edd feat: Telefon/E-Mail in Orte-Mutations und -Queries aufnehmen 2026-08-19 12:17:54 +02:00
Jonny 086d7459ee feat: Telefon/E-Mail-Validierung fuer Ansprechpartner
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session
2026-08-19 12:14:36 +02:00
Jonny 6296ecd466 feat: Ersteller-Name auf Auftrag-Detailseite anzeigen 2026-08-19 10:52:07 +02:00
Jonny 0c3caea4f8 feat: Ersteller-Profil in Auftrag-Query aufnehmen 2026-08-19 10:39:38 +02:00
Jonny e9c7827611 feat: remove required attribute from Fahrtbeginn photo fields
Photos are now optional when a driver starts a trip: the 8 vehicle photo
fields remain in the form but no longer carry the required attribute, are
labeled "(optional)", and validateFahrtBeginn no longer checks for missing
positions. Combined with the DB trigger fix in 9f410cb/eaa5faa, a trip can
now begin with zero, some, or all photos uploaded.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCHRPWuV3bd37NJhW2NK6P
2026-08-18 17:25:15 +02:00
Jonny 76c555a292 feat: make Fahrtbeginn photos optional, rename PFLICHT_FOTO_POSITIONEN to STANDARD_FOTO_POSITIONEN 2026-08-18 15:05:27 +02:00
Jonny c55d10f414 perf: lazy-load photo thumbnails for mobile bandwidth 2026-08-18 14:01:53 +02:00
Jonny 9406ab31d7 feat: show Foto-Galerie on Auftrag detail page 2026-08-18 13:41:16 +02:00
Jonny 3e544be8ce fix: add pointer-events-auto to lightbox image so clicking the photo does not close it 2026-08-18 13:08:52 +02:00
Jonny 97ac267158 feat: add FotoGalerie component with thumbnail grid and lightbox 2026-08-18 13:00:18 +02:00
Jonny 0a0b0b3112 feat: add loadAuftragFotos query with sort/label logic and signed-URL origin rewrite
- Add fotos.ts: loadAuftragFotos query function and sortiereUndBeschrifteFotos utility
- Add fotos.test.ts: 6 unit tests for sorting/labeling logic
- Update vitest.config.ts: add path alias resolution for @/ imports
2026-08-18 12:49:44 +02:00
Jonny eb0fad8c16 fix: remove encType from Server-Action forms to fix upload error
React 19 forbids setting encType/method on a <form> whose action is a
function - it manages FormData (including files) itself. The extra
attribute triggered a console error and blocked "Fahrt beginnen" /
"Schadensfoto nachtragen" whenever photos were attached.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCHRPWuV3bd37NJhW2NK6P
2026-08-18 11:27:33 +02:00
Jonny 930994126f feat: switch Nutzerverwaltung page to inline-editable table 2026-08-17 18:03:26 +02:00
Jonny d261061c1c fix: render Sperren button within a single row Card instead of a duplicate row 2026-08-17 17:36:43 +02:00
Jonny a85b79bb05 fix: make Sperren/Entsperren reachable during edit mode in NutzerZeile 2026-08-17 17:28:11 +02:00
Jonny d023bb49fe feat: add NutzerZeile and NutzerTabelle components 2026-08-17 17:19:33 +02:00
Jonny 50083ab8eb feat: replace aendereRolle with return-based aktualisiereNutzer, convert sperren/entsperren to return-based 2026-08-17 17:11:51 +02:00
Jonny bef98d1898 feat: add validateNutzerBearbeiten and export GUELTIGE_ROLLEN 2026-08-17 17:05:44 +02:00
Jonny 6677679eb9 fix: use onSubmit instead of form action to prevent field reset on error, rename ActionResult type
Finding 1: React 19's native <form action={fn}> resets uncontrolled
fields once fn resolves without throwing, regardless of an app-level
{success:false} result. Since handleSubmit never throws, every failed
submit (e.g. duplicate Kennzeichen) silently wiped user edits. Switched
all four Standorte/Fahrzeuge inline-edit and create forms to a plain
onSubmit handler that calls event.preventDefault() and builds FormData
from the submitted element manually, sidestepping React's action-reset
machinery.

Finding 2: web/app/standorte/actions.ts and web/app/fahrzeuge/actions.ts
each declared their own MutationResult type shadowing the differently
shaped MutationResult exported from lib/orte-fahrzeuge/mutations.ts.
Renamed the local type to ActionResult in both files to remove the
name collision.
2026-08-17 16:08:19 +02:00
Jonny c8be1c0c00 feat: split Stammdaten nav into Standorte and Fahrzeuge, remove old page
Task 5 of the standorte-fahrzeuge-tabellen plan: point the nav at the
new /standorte and /fahrzeuge routes built in tasks 1-4, and remove the
now-dead old combined /stammdaten page and its now-unreferenced
loadOrt/loadFahrzeug query helpers.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCHRPWuV3bd37NJhW2NK6P
2026-08-17 15:32:51 +02:00
Jonny 16b0300488 feat: add Fahrzeuge page with inline-editable table
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-17 15:12:00 +02:00
Jonny f8d466ccbf feat: add Fahrzeuge server actions (return-based, no redirect) 2026-08-17 15:07:51 +02:00
Jonny a33a18e6fa feat: add Standorte page with inline-editable table
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HCHRPWuV3bd37NJhW2NK6P
2026-08-17 15:02:17 +02:00