1
0
Fork 0
fahrPool/web
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
..
app fix: use onSubmit instead of form action to prevent field reset on error, rename ActionResult type 2026-08-17 16:08:19 +02:00
components fix: use onSubmit instead of form action to prevent field reset on error, rename ActionResult type 2026-08-17 16:08:19 +02:00
lib feat: split Stammdaten nav into Standorte and Fahrzeuge, remove old page 2026-08-17 15:32:51 +02:00
public docs: add design-system spec (mobile-first, Widmann-Branding) 2026-07-06 09:42:06 +02:00
.dockerignore feat: containerize the Next.js app and wire it into docker-compose 2026-07-05 00:25:01 +02:00
.env.local.example feat: add Supabase admin client and service-role-key wiring 2026-07-14 21:56:15 +02:00
.gitignore feat: add Supabase browser and server client helpers 2026-07-04 15:32:05 +02:00
Dockerfile feat: containerize the Next.js app and wire it into docker-compose 2026-07-05 00:25:01 +02:00
README.md docs: add root setup README and fix stale auth.user_role() reference 2026-07-05 00:45:39 +02:00
eslint.config.mjs chore: scaffold Next.js app with Vitest 2026-07-04 10:58:26 +02:00
middleware.ts feat: add auth middleware with session refresh and redirects 2026-07-04 15:57:41 +02:00
next.config.ts chore: scaffold Next.js app with Vitest 2026-07-04 10:58:26 +02:00
package-lock.json feat: add KanbanBoard with drag-and-drop for offen->zugewiesen (fahrer) and ->storniert 2026-07-08 07:36:38 +02:00
package.json feat: add KanbanBoard with drag-and-drop for offen->zugewiesen (fahrer) and ->storniert 2026-07-08 07:36:38 +02:00
postcss.config.mjs feat: add Tailwind CSS v4 with Widmann brand tokens and Inter font 2026-07-06 10:05:49 +02:00
tsconfig.json chore: scaffold Next.js app with Vitest 2026-07-04 10:58:26 +02:00
vitest.config.ts chore: scaffold Next.js app with Vitest 2026-07-04 10:58:26 +02:00

README.md

web

See the root README.md for the full setup sequence — this is a sub-directory of a larger self-hosted Supabase + Next.js project, not a standalone create-next-app.