cal.pub0.org/packages/features/bookings/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
..
event-meta feat(UI): improvements booker (#9221) 2023-05-31 12:30:09 +00:00
AvailableTimes.tsx feat: event settings booker layout toggle (#9082) 2023-06-06 15:31:43 +00:00
BookerSeo.tsx feat: add meta and seo tags for new booker component (#8697) 2023-05-11 16:02:13 +00:00
EventTypeFilter.tsx feat: filter bookings by event type (#9011) 2023-05-29 17:01:17 +01:00
FiltersContainer.tsx feat: filter bookings by event type (#9011) 2023-05-29 17:01:17 +01:00
PeopleFilter.tsx Use avatar.png instead of base64. (#8450) 2023-04-21 20:00:31 +02:00
TeamFilter.tsx [CAL-1008] Fix 'All Bookings' filter not getting selected after coming from 'Your Bookings' (#8902) 2023-05-19 22:50:57 +00:00
TimeFormatToggle.tsx New Booker Component (preparations for booker atom) (#6792) 2023-04-24 16:32:30 +02:00