maintenance/backend
jtricerolph 8ddb99d2d7 Add a Departing state to the Rooms Accessible View
A guest checking out today but not yet gone was previously lumped in
with ordinary stayovers — fully greyed out, no way to tell "the guest is
gone in 20 minutes" apart from "the guest isn't leaving at all". Split
that out into its own bucket:

Backend: classifyBookingStatus() now also recognises 'depart'/'checkedout'
statuses (already checked out — room's free regardless of the date
window). fetchRoomOccupancy() returns occupied/departing/arriving; an
in-house booking whose departure date is today lands in 'departing'
instead of 'occupied'. The ?unoccupied=true task filter and /api/occupancy
both updated for the new three-way split.

Frontend: departing rooms get a light dim (opacity only, no greyscale)
instead of the hard grey-out, plus a purple 'Departing' badge — matching
the booked=green/occupied=blue/departing=purple colour language hvac
already uses for NewBook room states. Chip label breakdown now reads
"X free • Y arriving • Z departing • W occupied".

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-03 09:33:57 +00:00
..
src Add a Departing state to the Rooms Accessible View 2026-09-03 09:33:57 +00:00
Dockerfile Maintenance log book app — initial scaffold 2026-07-03 21:28:57 +00:00
package.json Compress and resize photos on upload via sharp 2026-07-22 10:48:24 +00:00