displayDayOfSlots enabled and nextDayCutoffTimeInMinutes set to 2:00 PM (840 minutes).nextDayCutoffTimeInMinutes currently suppresses next-day slots after the configured time but has no effect on same-day slots. Same-day slots remain exposed as long as displayDayOfSlots is on, regardless of the time of day.displayDayOfSlots is off, same-day is already blocked entirely (enforced by ATT-1739); the cutoff has no additional role in that case.displayDayOfSlots=off scenario and added confirm-time validation via validateBookingDatetime.ts. The combination of displayDayOfSlots=on + post-cutoff time was out of scope for that fix.displayDayOfSlots is on, same-day slots must be hidden after the cutoff time, consistent with how next-day slots are already treated.displayDayOfSlots off — Same-day blocking is handled by existing logic; the cutoff setting has no additional effect in this case.displayDayOfSlots = on and nextDayCutoffTimeInMinutes = 840 (2:00 PM).attik-backend)src/routes/schedule.ts — GET /schedule/optimal-slots returns same-day slots when displayDayOfSlots is true regardless of whether the current time has passed nextDayCutoffTimeInMinutes. Cutoff enforcement needs to apply to same-day slot exposure when displayDayOfSlots is on.src/util/functions/scheduling/validateBookingDatetime.ts — Confirm-time validation added in ATT-1739. Should be extended to reject same-day datetimes submitted after the cutoff time, regardless of displayDayOfSlots state.src/models/scheduleSettingsSchema.ts — nextDayCutoffTimeInMinutes and displayDayOfSlots are defined here; no schema changes expected, but the interaction between these two fields is the root of the gap.attik-frontend)src/app/scheduler/slots/CalendarView.tsx — Applies nextDayCutoffTimeInMinutes as a client-side filter for next-day dates only. Needs to additionally suppress same-day slots when displayDayOfSlots is on and the cutoff has passed.src/app/scheduler/slots/SlotsStep.tsx — Slot fetching and caching layer. If same-day suppression is enforced server-side, stale same-day slots should be cleared from cache when the cutoff time crosses.src/app/tools/settings/scheduling/SchedulingSettingsForm.tsx — Update label from "Next Day Cutoff Time" to "Online Booking Cutoff Time" with appropriate subtext.src/util/types/serverTypeCollection/scheduleSettings.ts — Frontend type definition for schedule settings; no change expected unless a new field is introduced.attik-backend/src/routes/schedule.ts, attik-backend/src/util/functions/scheduling/validateBookingDatetime.ts, attik-backend/src/models/scheduleSettingsSchema.tsattik-frontend/src/app/scheduler/slots/CalendarView.tsx, attik-frontend/src/app/scheduler/slots/SlotsStep.tsx, attik-frontend/src/app/tools/settings/scheduling/SchedulingSettingsForm.tsxPlease authenticate to join the conversation.
Planned
Main App
About 24 hours ago
Linear
Get notified by email when there are changes.
Planned
Main App
About 24 hours ago
Linear
Get notified by email when there are changes.