fix(chatelet): don't offer a check-in that can't fit a minimum stay #157

Merged
padreug merged 1 commit from fix/chatelet-stay-picker-checkin-validity into dev 2026-09-21 09:57:43 +00:00
Owner

The stay picker disabled only occupied nights when choosing a check-in, so
a free day with an occupied night closer than min_nights was still
selectable (e.g. a 2-night minimum with the night after next booked).
Picking it left every later day disabled — no legal check-out — so reka's
only move was an earlier day, which it silently swaps into the range: the
guest picks a date and the calendar "jumps backwards".

Fix: a check-in is valid only if the minimum stay fits before the next
occupied night and within the loaded window; disable it otherwise.

Reproduced and verified headlessly against a min-2-nights room with one
blocked night; no regression on empty rooms or a 1-night minimum.

The stay picker disabled only occupied nights when choosing a check-in, so a free day with an occupied night closer than min_nights was still selectable (e.g. a 2-night minimum with the night after next booked). Picking it left every later day disabled — no legal check-out — so reka's only move was an earlier day, which it silently swaps into the range: the guest picks a date and the calendar "jumps backwards". Fix: a check-in is valid only if the minimum stay fits before the next occupied night and within the loaded window; disable it otherwise. Reproduced and verified headlessly against a min-2-nights room with one blocked night; no regression on empty rooms or a 1-night minimum.
The stay picker disabled only occupied nights when choosing a check-in, so
a free day with an occupied night closer than min_nights was still
selectable — e.g. min 2 nights with the night after next booked. Picking it
left every later day disabled (no legal check-out), so reka's only move was
an earlier day, which it silently swapped into the range: the guest picks a
date and the calendar 'jumps backwards'. Disable such a day up front: a
check-in is valid only if the minimum stay fits before the next occupied
night and within the loaded window.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
padreug deleted branch fix/chatelet-stay-picker-checkin-validity 2026-09-21 09:57:43 +00:00
Sign in to join this conversation.
No description provided.