fix(roadtrip): match cross-day returns to their rental

Keep located waypoints when the return desk is missing and assign them unique IDs. Join separate days only for the same hire car in both the planner and server. Keep the existing public terminal roles.
This commit is contained in:
Maurice
2026-11-30 22:15:12 +01:00
parent 7de6bc39cd
commit d0cf936bf6
10 changed files with 207 additions and 81 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ export const roadtripCardStopSchema = z.object({
.object({
reservationId: idSchema,
type: z.string().min(1).max(20),
role: z.enum(['departure', 'arrival', 'pickup', 'return', 'stop']),
role: z.enum(['departure', 'arrival', 'pickup', 'return']),
title: cardText(80),
code: z.string().min(1).max(8).nullable(),
at: cardClockSchema.nullable(),