cal.com
cal.com copied to clipboard
Minimum booking notice should also allow hours and days
Is your proposal related to a problem?
The "Minimum booking notice" field can only be specified in minutes. This means that if I want a minimum notice period of hours or days, I need to multiply by 60 and maybe also by 24 in my head to get the right number of minutes:

Whilst as an ex-mathematician I enjoy little opportunities to keep my mental arithmetic sharp, this does not seem like ideal UI/UX design!
Describe the solution you'd like
Change the fixed mins text to a dropdown where the user can select between mins, hours, calendar days, and business days. Then the app will automatically calculate the corresponding number of minutes behind the scenes.
Alternatives
As a first step, don't implement the business days option, so the app can simply calculate a fixed number of minutes when the option is being configured, with very minimal code changes required.
Then add the business days option later, which would require slightly more complex logic to calculate the minimum notice period depending on the time of the week the booking was being made.
It's worth noting that there is already an "opposite" setting, effectively of "maximum booking notice":

and this already offers a choice of time units between business days and calendar days. So a similar UI for the minimum booking notice seems to make sense.
@PeerRich If this is something you would like to be fixed, I would love to work on it!
@PeerRich If this is something you would like to be fixed, I would love to work on it!
yes please go ahead.❤️ thank you!
@PeerRich Ill start on it asap!
@om-ray Have you started working on this?
@emrysal Hi! I'm sorry I didn't see this! I just recovered from the flu so progress has been slow, but yes I've been working on this.
@aspiers @PeerRich @emrysal Please check out the PR I made for this issue