No description
Find a file
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
backend Fix: vacant card after a departure no longer spans left past the checkout 2026-07-08 13:50:52 +00:00
frontend Vacancy participates in the Gantt bracket system 2026-07-04 18:43:59 +00:00
docker-compose.yml fix: remove NEWBOOK_LOCATION_ID env var — credentials come from settings service 2026-07-03 13:11:01 +00:00
seed-app.js Rename app to Day Planner 2026-07-04 13:19:41 +00:00