room-planner/backend
jtricerolph c7ec19b74e Fix: vacant card after a departure no longer spans left past the checkout
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>
2026-07-08 13:50:52 +00:00
..
src Fix: vacant card after a departure no longer spans left past the checkout 2026-07-08 13:50:52 +00:00
Dockerfile feat: add room-planner app — 3-day HK room view with NewBook integration 2026-07-03 13:07:00 +00:00
package.json feat: add room-planner app — 3-day HK room view with NewBook integration 2026-07-03 13:07:00 +00:00