feat: add 40-minute duration option for multiple duration event types #27032
+149
−24
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Adds 40 minutes as an available duration option when configuring multiple duration options for event types. Previously, the available durations jumped from 30 to 45 minutes, skipping 40 minutes which is a commonly requested duration.
Changes:
40to themultipleDurationOptionsarray inEventSetupTab.tsxMandatory Tasks (DO NOT REMOVE)
How should this be tested?
Unit tests added:
TZ=UTC yarn test packages/features/schedules/lib/slots.test.ts -t "40-minute"- runs 5 tests covering:Checklist
Link to Devin run: https://app.devin.ai/sessions/a584b7947d0844cfb584b008544f6ded
Requested by: ali@cal.com
Note for reviewers: The diff includes some auto-formatting changes from biome lint (import reordering, CSS class sorting). The core change is simply adding
40to the duration options array on line 78.