No description
bookingsForSiteOnDate uses strict `departure > viewDate`, so a booking that departed yesterday (departure_date = yesterday) doesn't appear as prevBooking when computing today's card. prevVacant was therefore true, causing the vacant card to span left into yesterday's margin — visually indistinguishable from an ongoing stay. Fix: check departingBookingForSite(yesterday) as prevDepartedBooking. Include it in prevVacant guard (prevVacant = !prevBooking && !prevDepartedBooking) and use its status for previous_status so the correct coloured bracket appears on the left without the card spanning into yesterday. Result: day after a checkout shows vacant card with coloured left bracket (blue = still-arrived, purple = departed in NewBook) but full left border; consecutive vacant days from the second night onward still span left into each other correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| backend | ||
| frontend | ||
| docker-compose.yml | ||
| seed-app.js | ||