cal.pub0.org/packages/ui/components
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
..
alert fix: Update forms UI (#8093) 2023-06-05 05:51:19 +00:00
apps chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
avatar misc frontend fixes (#8416) 2023-04-20 22:33:49 +00:00
badge New Booker Component (preparations for booker atom) (#6792) 2023-04-24 16:32:30 +02:00
breadcrumb Feat/tokens + darkmode + theme support (#7876) 2023-04-05 18:14:46 +00:00
button Fixed dark mode bugs in the availability section (#8630) 2023-05-14 17:46:19 +00:00
buttonGroup Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
card fix: Update forms UI (#8093) 2023-06-05 05:51:19 +00:00
createButton Managed event-types (#6876) 2023-04-12 23:10:23 -03:00
credits Update Credits.tsx (#9062) 2023-05-23 10:42:01 +00:00
dialog fix: footer in modals (#8940) 2023-05-30 15:44:24 +00:00
divider Feat/tokens + darkmode + theme support (#7876) 2023-04-05 18:14:46 +00:00
editor chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
empty-screen Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
errorBoundary Enforces explicit type imports (#7158) 2023-02-16 15:39:57 -07:00
form feat: event settings booker layout toggle (#9082) 2023-06-06 15:31:43 +00:00
head-seo chore: add canonical to the document via `PageWrapper` (#8639) 2023-06-02 18:28:03 +00:00
icon Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
image-uploader fix: limit avatar upload size (#8135) 2023-04-19 18:19:31 +02:00
layout Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
list Feat/tokens + darkmode + theme support (#7876) 2023-04-05 18:14:46 +00:00
logo feat: Use team logos for various meta icons (#8955) 2023-05-30 16:31:49 +00:00
meta chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
navigation fix: Update forms UI (#8093) 2023-06-05 05:51:19 +00:00
popover chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
scrollable Feat/onboarding video step connection (#8838) 2023-05-11 13:20:39 +00:00
skeleton fix: Skeleton Padding and Width Issue (#9310) 2023-06-05 09:24:16 +00:00
table In-app users admin (#8035) 2023-04-14 17:04:48 -07:00
toast Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
tooltip feat: sidebar nav item tooltips (#9160) 2023-05-30 14:18:21 +00:00
top-banner [CAL-1545] replace heroicons with lucide.dev (#8599) 2023-05-17 12:47:44 +00:00