cal.pub0.org/apps/web/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
..
apps chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
auth add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
availability Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
booking chore: remove deprecated metamask and rainbow (#9299) 2023-06-06 11:18:44 +00:00
dialog Remove Intl.Provider (#8208) 2023-04-19 21:38:06 +00:00
error New Booker Component (preparations for booker atom) (#6792) 2023-04-24 16:32:30 +02:00
eventtype feat: event settings booker layout toggle (#9082) 2023-06-06 15:31:43 +00:00
getting-started chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
integrations
layouts Feat/tokens + darkmode + theme support (#7876) 2023-04-05 18:14:46 +00:00
schemas
security Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
settings test: Two Factor Auth (#9142) 2023-05-30 14:23:49 +00:00
setup Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
team/screens Forward query params from Team Profile page (#9057) 2023-05-23 08:18:51 +00:00
ui Fix alignment of update and cancel button on sign up flow (#9218) 2023-06-05 09:16:28 +00:00
AddToHomescreen.tsx Replace react icons with lucidedev (#8146) 2023-04-12 17:26:31 +02:00
AppListCard.tsx chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
AppsShell.tsx
BookingsShell.tsx
Embed.tsx [CAL-1095] Embed modal (floating pop up button) - UI/layout/spacing issues (#8217) 2023-05-02 15:57:01 -03:00
I18nLanguageHandler.tsx Remove getDirFromLang, in favour of doing this in the I18nLanguageHan… (#8425) 2023-04-21 00:45:22 +00:00
Loader.tsx
NavTabs.tsx perf: reduce bundle size (#8337) 2023-04-19 19:45:08 +05:30
PageWrapper.tsx chore: fix all Typescript warnings (#8618) 2023-06-06 11:59:57 +00:00
SettingsShell.tsx Event Type: Title not displayed in the mobile view (#7451) 2023-04-19 13:17:54 -07:00