Slots: no two slots may overlap, windows and group sessions alike #14

Merged
reudy merged 1 commit from slots-no-overlap into main 2026-10-26 18:34:43 +01:00
Member

A group session could be created at the same time as a window (and sessions of different services on top of each other). That was allowed on purpose (whichever got booked first blocked the other), but it reads as a mistake on the calendar and makes the offered times confusing. One practitioner works every slot, so now no two slots may overlap, whatever their kind or service.

  • Create and edit: refused with "This overlaps the window … / the … group session …. Change or delete that one first."
  • Generate slots and Copy a week: overlapping candidates are skipped and counted in the preview ("it would overlap another slot").
  • Touching ends are fine (a session can start when a window ends).
  • Slots that already overlap stay as they are; saving one of them asks you to move it first.
  • Booking rules in the shop hooks are unchanged.

README updated.

Tested

  • svelte-check: 0 errors (same 15 warnings as main).
  • On the test stack: window 10:00–12:00, then a session at 10:00 → refused; a session at 12:00 → created. Test slots deleted afterwards.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW

A group session could be created at the same time as a window (and sessions of different services on top of each other). That was allowed on purpose (whichever got booked first blocked the other), but it reads as a mistake on the calendar and makes the offered times confusing. One practitioner works every slot, so now **no two slots may overlap**, whatever their kind or service. - Create and edit: refused with "This overlaps the window … / the … group session …. Change or delete that one first." - *Generate slots* and *Copy a week*: overlapping candidates are skipped and counted in the preview ("it would overlap another slot"). - Touching ends are fine (a session can start when a window ends). - Slots that already overlap stay as they are; saving one of them asks you to move it first. - Booking rules in the shop hooks are unchanged. README updated. ## Tested - `svelte-check`: 0 errors (same 15 warnings as main). - On the test stack: window 10:00–12:00, then a session at 10:00 → refused; a session at 12:00 → created. Test slots deleted afterwards. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
agent added 1 commit 2026-10-26 18:30:10 +01:00
A group session could be put on top of a window (and sessions of
different services on top of each other); whichever was booked first
then blocked the other. One practitioner works every slot, so creating,
editing, generating or copying a slot now refuses any overlap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
reudy merged commit 0b5cddb655 into main 2026-10-26 18:34:43 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: reudy-net/domaino#14
No description provided.