cal.pub0.org/packages/lib
Jeroen Reumkens f31165b442
feat: event settings booker layout toggle (#9082)
* WIP for adding booker layout toggle in event settings pages

* Prevent form error from getting form stuck in loading state

* Fixed types for bookerlayouts settings and preselect correct layout in booker

* Added defaultlayout settings to profile too, and use that in booker plus as default for events.

* Made layout settings responsive

* Added feature toggle for new layout settings

* Fixed user builder for tests by adding defaultlyotu

* Show toggles on booker for layout switch based on selected layouts. Also added a small fix for the settings toggles to preselect the correct toggle for defaultlayout when user profile settings are used.

* Used zod parse to fix type errors.

* Fix unit test

* Set selected date to today in datepicker when week or column view is default layout. It uses that date to show in the title bar.

* Moved booker layout settings to event and user meta data instead of new db column.

* Converted booker layout strings into an enum.

* Renamed booker layouts feature flag and deleted unused v2 booker feature flag.

* Update packages/trpc/server/routers/viewer/eventTypes/update.handler.ts

Co-authored-by: Omar López <zomars@me.com>

* Fix import

* Fix lint warnings in EventTypeSingleLayout

* Fixed bug where when selected date was passed via query param page booking form wouldn't automatically show up. It would still serve you the date selection. This should fix e2e tests.

* Fixed layout header.

* Enabled booking layout toggle feature flag.

---------

Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
2023-06-06 15:31:43 +00:00
..
apps Only return enabled apps in getEnabledApps (#6653) 2023-01-23 16:27:20 -07:00
browser chore: add canonical to the document via `PageWrapper` (#8639) 2023-06-02 18:28:03 +00:00
cva refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
date-fns New Booker Component (preparations for booker atom) (#6792) 2023-04-24 16:32:30 +02:00
hooks chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
payment perf: tRPC procedures and middleware refactor (#8419) 2023-05-09 19:27:05 +00:00
server chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
sync chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
test refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
CalEventParser.ts fix: add uid in evt (#9066) 2023-05-23 18:19:52 +00:00
CalendarService.ts Use user profile timezone from DB as fallback for CalDAV all-day events (#8755) 2023-05-10 08:44:15 +00:00
CloseCom.ts chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
CloseComeUtils.ts chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
OgImages.tsx chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
Sendgrid.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
array.ts New Booker Component (preparations for booker atom) (#6792) 2023-04-24 16:32:30 +02:00
availability.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
bookingSuccessRedirect.ts Possible fix for iOS redirection (#8455) 2023-04-22 19:45:22 +02:00
classNames.ts Tailwind Merge (#6596) 2023-01-20 15:19:12 +01:00
constants.ts feat: Use team logos for various meta icons (#8955) 2023-05-30 16:31:49 +00:00
convertToNewDurationType.ts Fixed wrong calculation of duration type on event type page. (#5557) 2022-11-17 13:38:03 +05:30
crypto.ts App Store (#1869) 2022-03-23 15:00:30 -07:00
default-cookies.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
defaultAvatarImage.test.ts refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
defaultAvatarImage.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
defaultEvents.ts Add feature to offset start times for event types (#8506) 2023-05-17 11:56:55 +00:00
deriveAppDictKeyFromType.ts Chore/salesforce prep work (#5648) 2022-11-22 13:44:08 -07:00
env.ts Feature: Verify login on signup with magic link. (#2122) 2022-04-21 14:32:25 -06:00
errors.ts resolves #3565 (#8581) 2023-05-02 16:56:29 +00:00
fetch-wrapper.ts New Booker Component (preparations for booker atom) (#6792) 2023-04-24 16:32:30 +02:00
fetchUsername.ts feature/settings-username-update (#2306) 2022-07-06 13:31:07 -06:00
findDurationType.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
getBooking.tsx Fix/send responses everywhere customInputs were being sent. (#7898) 2023-04-04 10:29:09 +05:30
getBrandColours.test.ts refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
getBrandColours.tsx RFC: added brandcolor for switch (#8213) 2023-04-19 14:39:23 +00:00
getEventTypeById.ts chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
getIP.ts Implements quick ip banlist 2022-08-24 10:57:23 -06:00
getLabelValueMapFromResponses.ts Fix: Send responses in confirm booking flow (#7830) 2023-03-27 13:57:10 +05:30
getPaymentAppData.ts Stripe add the ability to place hold on cards (#8022) 2023-04-11 23:44:14 +02:00
getSafeRedirectUrl.ts Make sure returnTo is correct URL (#6189) 2023-01-05 12:55:55 -07:00
hasKeyInMetadata.ts feature/settings-username-update (#2306) 2022-07-06 13:31:07 -06:00
http-error.ts Stripe to monorepo (#2063) 2022-03-09 15:56:05 -07:00
i18n.ts Remove getDirFromLang, in favour of doing this in the I18nLanguageHan… (#8425) 2023-04-21 00:45:22 +00:00
index.ts [CAL-988] Limit total appointment time per day/week/month/year (#7166) 2023-03-10 21:00:19 +01:00
isBookingLimits.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
isCalcom.ts <Tips> in sidebar (#4999) 2022-10-14 19:38:05 +00:00
isDurationLimits.ts [CAL-988] Limit total appointment time per day/week/month/year (#7166) 2023-03-10 21:00:19 +01:00
isKeyInObject.ts Adds basic global feature flags (#7459) 2023-03-24 17:59:04 -07:00
isMac.ts Adds a fully extensible command(ctrl)+k interface for Cal (#3346) 2022-07-14 06:45:07 +00:00
isOutOfBounds.tsx add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
isPrismaObj.ts License server (#2379) 2022-05-26 11:07:14 -06:00
isProblematicTimezone.ts Fix: Filter Timezones by cities (#7540) 2023-03-06 17:52:20 +00:00
isRecurringEvent.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
jsonUtils.ts App Store (#1869) 2022-03-23 15:00:30 -07:00
logger.ts Allows to override default debug level for logger (#6300) 2023-01-05 16:23:50 -07:00
markdownIt.ts Fixes formatted description in email + sanitize html everywhere (#7928) 2023-03-28 09:40:13 +00:00
markdownToSafeHTML.ts Fixes formatted description in email + sanitize html everywhere (#7928) 2023-03-28 09:40:13 +00:00
next-seo.config.ts chore: add canonical to the document via `PageWrapper` (#8639) 2023-06-02 18:28:03 +00:00
notEmpty.ts App Store (#1869) 2022-03-23 15:00:30 -07:00
objectKeys.ts Enables strict mode in nextjs apps (#2354) 2022-04-04 20:26:14 +00:00
package.json Add changesets/cli to release embed (#8126) 2023-05-13 08:22:31 +00:00
parse-dates.ts fix Former time in wrong time zone (Rescheduling) (#9039) 2023-05-23 07:50:47 +00:00
parse-zone.ts New Booker Component (preparations for booker atom) (#6792) 2023-04-24 16:32:30 +02:00
perf.ts perf: lazy load tRPC routes (#8167) 2023-04-25 19:39:47 -03:00
random.test.ts refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
random.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
rateLimit.ts feat(web): improve session retrieval performance (#7584) 2023-03-10 23:45:24 +00:00
recurringStrings.ts Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
sanitizeCalendarObject.ts Caldav/refactor: Mutiple Fixes and General code improvement (#8031) 2023-04-12 14:30:39 -03:00
serverConfig.ts chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
slots.ts Add feature to offset start times for event types (#8506) 2023-05-17 11:56:55 +00:00
slugify.ts chore: extended slugify function (#8740) 2023-05-17 13:05:14 +00:00
stripMarkdown.ts fix: strip markdown from meta description tag in users page (#8769) 2023-05-15 07:44:23 +00:00
telemetry.ts chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
text.test.ts refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
text.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
timeFormat.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
timezone.ts fix: Change Detroit to New York as a default for EST time zone (#8218) 2023-05-29 19:57:34 +01:00
tsconfig.json feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
tsconfig.test.json feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
turndownService.ts Fix shift-enter in bio editor (#6769) 2023-01-27 23:14:58 +00:00
validateBookerLayouts.ts feat: event settings booker layout toggle (#9082) 2023-06-06 15:31:43 +00:00
validateIntervalLimitOrder.ts [CAL-988] Limit total appointment time per day/week/month/year (#7166) 2023-03-10 21:00:19 +01:00
webstorage.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00
weekday.test.ts refactor: Moving from jest to vitest (#9035) 2023-05-24 23:35:44 +00:00
weekday.ts feat(lib): add more tests to lib package (#7210) 2023-03-10 22:10:56 +00:00