fix(reservations): show day date range on accommodation cards

Hotel reservations store their date range in day_accommodations rather
than on reservation_time, so the card date block never rendered. Pull
accommodation_start_day_id / accommodation_end_day_id from the SQL join
and surface them on the card.

Also apply Maurice's badge-pill pattern (day name + localized date pill)
to the day-range display, consistent with the modal day selectors.
This commit is contained in:
jubnl
2026-04-21 18:12:40 +02:00
parent 881b9d0939
commit 70ba4d5435
3 changed files with 37 additions and 17 deletions
+2
View File
@@ -171,6 +171,8 @@ export interface Reservation {
place_id?: number | null
assignment_id?: number | null
accommodation_id?: number | null
accommodation_start_day_id?: number | null
accommodation_end_day_id?: number | null
day_plan_position?: number | null
metadata?: Record<string, string> | string | null
needs_review?: number