calcom / cal.com

Scheduling infrastructure for absolutely everyone.
https://cal.com
Other
31.82k stars 7.78k forks source link

First available slot doesn't follow availability if it starts at 9:30 #16302

Open rijk opened 1 month ago

rijk commented 1 month ago

Issue Summary

I am using cal.com for a client that has a physiotherapy practice. She has exact slots that need to be filled in, as a patient booking in between slots would result in unwanted gaps in her schedule. The issue is that when the availability starts at the hour everything is fine, but when it starts at half past the hour, the slots are still forced to start at the hour. As a result we have to manually shift each new booking in the morning, and even worse is that slots that are free in her calendar (like 10:30–11:30) don't show up as available if there's already a booking at 11:30 (because Cal would try to offer a slot for 11:00–12:00, which it can't).

Steps to Reproduce

  1. Create an event type of 60 min, with Time-slot intervals set to 60 (or use event length)
  2. Start availability at half past the hour, e.g. 9:30
  3. First available slot offered is 10:00

Expected behavior

First slot offered should be 9:30, second 10:30, and so on.

For the afternoon, it should again follow the first available slot at 14:00, then 15:00, etc.

Other information

No response

Screenshots

Availability:

Screenshot 2024-08-21 at 12 34 50

Slots offered:

Screenshot 2024-08-21 at 12 45 32

A "workaround" is to set the interval to 30 minutes, however this would offer a lot of unwanted slots as well (10:00, 11:00, 14:30, 15:30) which would leave gaps in the schedule:

Screenshot 2024-08-21 at 12 45 17

I mocked up a screenshot of the expected/desired slots:

Screenshot 2024-08-21 at 12 52 03

Environment

Desktop (please complete the following information)

- OS: macOS
- Browser: Safari
- Version: official cal.com
CarinaWolli commented 1 month ago

This is currently expected behaviour. What you can do is change the time-slot intervals in the Limit tab to 30mins. Then your slots will start in half our intervals. Would this solve your issue?

rijk commented 1 month ago

Thanks for your reply @CarinaWolli ! Unless I'm misunderstanding what you mean, I believe I addressed that way of configuring it in my original issue (in the screenshots section):

A "workaround" is to set the interval to 30 minutes, however this would offer a lot of unwanted slots as well (10:00, 11:00, 14:30, 15:30) which would leave gaps in the schedule:

Screenshot 2024-08-21 at 12 45 17

This is ideally how I would like the availability to look:

I mocked up a screenshot of the expected/desired slots:

Screenshot 2024-08-21 at 12 52 03

Hopefully it is clear what I mean? I just want the slots to fill up all the available space, from the start of the availability at 9:30. So if someone has the option to book at 10:00, it would leave a gap from 9:30–10:00 which can't be filled. Also, if there is a free slot from 9:30–10:30, but an existing booking from 10:30–11:30, the free slot won't show up on cal.com. This is the bigger issue of the two.

qbart commented 1 month ago

HI I have similar issue, my availability is set to: Wednesday 12:30 - 13:30 and the slot is 60minute image

I only offer one meeting this day and the booking page never shows that Wednesday is available: image

CarinaWolli commented 1 month ago

@qbart setting Time-slot intervals in the event type settings (Limits tab) to 30 mins will fix your issue

qbart commented 1 month ago

but then people can only book 30minutes meetings, I want single 60 minute meeting. Is that possible?

CarinaWolli commented 1 month ago

Wednesday 12:30 - 13:30 and the slot is 60minute

Event type duration can stay 60 min, but if you set time-slot intervals to 30 min, 12:30 will be available for a 60 min booking

qbart commented 1 month ago

Thank you, that was it (it was set to use event length)