1
0
Fork 0
Commit Graph

91 Commits

Author SHA1 Message Date
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
Jonny 587e36f81c feat: add Standorte server actions (return-based, no redirect) 2026-08-17 14:56:49 +02:00
Jonny 8ed4c86813 feat: add Nutzerverwaltung page 2026-07-15 11:43:26 +02:00
Jonny 3f78e4f65a feat: add Nutzerverwaltung server actions (erstellen, rolle aendern, sperren, entsperren) 2026-07-15 10:54:08 +02:00
Jonny 02c9274c13 fix: paginate auth.admin.listUsers() in Nutzerliste query 2026-07-15 10:42:24 +02:00
Jonny 3013a7d52c feat: add Nutzerliste query (merges profiles with auth.admin.listUsers) 2026-07-14 22:08:04 +02:00
Jonny 371312fc89 test: add exact 8-character password boundary case 2026-07-14 22:04:32 +02:00
Jonny 147f601e34 feat: add validation for Nutzer-Erstellen, Rolle and Selbstschutz 2026-07-14 22:00:27 +02:00
Jonny 8db31c72a8 feat: add Supabase admin client and service-role-key wiring 2026-07-14 21:56:15 +02:00
Jonny 90ed4d764f fix: unify Zeiterfassung timezone display and add DB guard against double clock-in
Page and CSV export now both render shift timestamps in Europe/Berlin
consistently (previously CSV used UTC, page used server-local time,
causing the same shift to show different clock times in each place).
Also adds a partial unique index so two near-simultaneous Kommen
requests for the same fahrer can no longer create two open shifts --
the existing app-layer check was check-then-act with no DB backstop.
2026-07-14 10:27:50 +02:00
Jonny d87e881d0e feat: add Zeiterfassung link to navigation 2026-07-14 09:11:39 +02:00
Jonny 02dfc2b23e feat: add Zeiterfassung page with Kommen/Gehen, Korrektur and CSV export 2026-07-14 09:03:57 +02:00
Jonny c3cdfc9ac7 feat: add Zeiterfassung server actions (kommen, gehen, korrigieren, csv export) 2026-07-14 08:51:53 +02:00
Jonny d8ccdc85ca feat: add Zeiterfassung query helpers (Schichten, offene Schichten, verknuepfte Auftraege) 2026-07-14 08:45:27 +02:00
Jonny b1da32ae7a test: add bare-CR quoting case for CSV export 2026-07-13 17:11:44 +02:00
Jonny 45612501df fix: harden CSV export against formula injection and CR row corruption
Fields starting with =, +, -, @, tab, or CR are now neutralized with a
leading single quote before quoting, closing a CSV/spreadsheet formula
injection gap (CWE-1236) flagged by automated security review. Also
closes a bare-CR gap in the RFC 4180 escape trigger set.
2026-07-13 17:02:07 +02:00
Jonny 9f2b2d292e feat: add CSV export helper for Zeiterfassung 2026-07-13 16:57:21 +02:00
Jonny b8a7509363 feat: add Tages-/Wochensummen aggregation for Zeiterfassung 2026-07-13 16:51:40 +02:00
Jonny 070b1287c1 test: add invalid-date case for validateSchichtKorrektur 2026-07-13 16:48:51 +02:00
Jonny d91765bd69 feat: add validation for Schicht-Korrektur (geht_um after kommt_um) 2026-07-13 16:44:30 +02:00
Jonny 3fe33c5e0f feat: add pure pause/netto time calculation per §4 ArbZG 2026-07-13 16:31:35 +02:00
Jonny 23ab39bbe9 fix: add keyboard drag support and hide drag handles for readonly role
- KeyboardSensor zu useSensors ergänzt, damit Kanban-Karten auch per
  Tastatur verschoben werden koennen (Design-Spec fordert Maus/Touch/
  Tastatur-Bedienung).
- KanbanKarte erhaelt rolle-Prop; fuer rolle "readonly" werden
  useDraggable-listeners/attributes nicht angewendet (disabled: true),
  sodass keine Drag-Handles/Grab-Cursor angezeigt werden. Navigation zur
  Detailseite bleibt unveraendert klickbar.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-08 13:42:00 +02:00