fix(chatelet): let a min-stay range extend forward (reka span guard) #158
No reviewers
Labels
No labels
app:activities
app:chat
app:chatelet
app:events
app:forum
app:libra
app:market
app:restaurant
app:tasks
app:wallet
app:webapp
bug
enhancement
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
aiolabs/webapp!158
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/chatelet-min-nights-range-spanning"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The stay picker enforced min_nights by disabling the days between check-in
and check-in + min_nights. reka-ui refuses to complete a range that spans a
disabled day, so on a 2-night-minimum room every forward check-out was
unreachable: the guest picked a check-in and could then only click an
earlier day, which reka swapped into the range (the "calendar jumps
backwards" report). One-night-minimum rooms were unaffected — why the
Orangery Suite worked and the Tour Room didn't.
Stop disabling the in-window days; enforce the minimum in onModel instead:
a too-short range keeps the check-in and clears the check-out, resetting
reka's controlled model directly. Occupied nights past the next booking
still cap the range, and #157's check-in validity guard is unchanged.
Verified headlessly on min-1 and min-2 rooms, empty and with a blocked
night: forward completes, exact-minimum completes, below-minimum is
rejected, the boundary check-out is reachable, and the quote is correct.