cal.pub0.org/packages
Carina Wollendorfer 2f6b5ced04
fix: better slot starting times
## What does this PR do?

Currently, we start the first slot always at the nearest 15 minutes. This is not ideal as for some duration other slot starting time make more sense. So with this PR the starting times are defined as follow: 

- Frequency is exact hours (60, 120, 180, ...), slot start time is a full hour
- Frequency is half hours (30, 90, ...), slot start time is half or full hours (8:00, 8:30, ...)
- Same with 20-minute events (20, 40, ...) and 10-minute events 
- Everything else will start at the nearest 15 min slot

It also fixes that slot times are shifted when there is a busy slot with a different duration. Here is a before and after of a 30-min event with a 5-minute busy slot at 1:00 pm

Before: 
![Screenshot 2023-07-07 at 13 31 45](https://github.com/calcom/cal.com/assets/30310907/b92d4ff4-49f1-48f4-a973-99266f61d919)

After
![Screenshot 2023-07-07 at 13 34 01](https://github.com/calcom/cal.com/assets/30310907/042c7ef7-8c2a-4cd9-b663-183bc07b5864)


#### 30 Minute events, availability starting at 7:15

Before: 
![Screenshot 2023-07-06 at 12 40 00](https://github.com/calcom/cal.com/assets/30310907/752ed978-83cf-4ee9-a38d-b5795df6daec)

After:
![Screenshot 2023-07-06 at 12 40 42](https://github.com/calcom/cal.com/assets/30310907/5d51ec15-5be8-4f3b-b374-46dad35216b8)

## Type of change
- Bug fix (non-breaking change which fixes an issue)

## How should this be tested?

- Check if slot times are shown as described
- Test with different intervals/durations
- Test with busy times
- Test with different availabilities 

## Mandatory Tasks

- [x] Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.
2023-07-10 15:32:26 -07:00
..
app-store fix: /routing-form/single - Don't clear edits when moving from one tab to the other (#8125) 2023-07-10 09:24:04 -04:00
app-store-cli chore: recategorize apps (#9306) 2023-06-28 18:22:51 +02:00
atoms chore: Sync packages mismatches (#9725) 2023-06-22 15:25:37 -07:00
config fix: Added relevant colors to preset and replaced with tailwind colors (#9733) 2023-06-23 09:05:37 +00:00
core fix: Credential of type video wrong id on bookingReference (#9281) 2023-07-06 21:39:33 +00:00
dayjs Add changesets/cli to release embed (#8126) 2023-05-13 08:22:31 +00:00
emails feat: org invite billing (#9291) 2023-07-02 11:40:12 -07:00
embeds fix: add floating button tests (#9501) 2023-06-29 13:33:34 +05:30
eslint-plugin Add changesets/cli to release embed (#8126) 2023-05-13 08:22:31 +00:00
features fix: 404 booking pages when org support is enabled locally 2023-07-10 12:19:33 -07:00
lib fix: better slot starting times 2023-07-10 15:32:26 -07:00
prisma feat: Enable Apps for Teams & Orgs [CAL-1782] (#9337) 2023-07-06 16:48:39 +00:00
trpc feat: from org team invite (#9569) 2023-07-10 15:16:51 +05:30
tsconfig We're not ready for this yet 2022-11-22 20:02:40 -07:00
types fix: Credential of type video wrong id on bookingReference (#9281) 2023-07-06 21:39:33 +00:00
ui fix: Calcom UI deployments (#10047) 2023-07-10 19:52:15 +00:00