Single-Draft Integrity & Auto-Resumption

Goal

Prevent duplicate drafts and automatically resume open trips per vehicle.

Work Packages:

  • Add backend validation in TripIntegrityService / StoreTripRequest allowing at most 1 active draft per vehicle.
  • In TripsPage.tsx, auto-load an existing draft when a vehicle is selected.
  • Add a "Resuming Draft" notification banner in TripFormCard.tsx with a "Discard Draft" button invoking api.deleteTrip.
  • Adjust nextOdometerForVehicle calculations to handle active in-progress drafts cleanly.
-
100% Completed
#4 by JackPrince was closed 2026-09-05 07:37:00 +02:00 5 / 5