cal.pub0.org/packages/prisma
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
..
client add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
middleware Fixes formatted description in email + sanitize html everywhere (#7928) 2023-03-28 09:40:13 +00:00
migrations feat: event settings booker layout toggle (#9082) 2023-06-06 15:31:43 +00:00
selects Add feature to offset start times for event types (#8506) 2023-05-17 11:56:55 +00:00
zod Team webhooks (#8917) 2023-05-23 01:15:29 +00:00
.env Adds symlink to use DATABASE_URL from root 2022-08-12 11:23:30 -06:00
delete-app.ts One jest to rule them all (#3957) 2022-08-29 22:33:53 +00:00
docker-compose.yml Revert "Matches postgres image across projects" 2022-12-22 17:11:31 -07:00
enum-generator.ts add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
index.ts Fixes formatted description in email + sanitize html everywhere (#7928) 2023-03-28 09:40:13 +00:00
package.json add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
schema.prisma feat: Add new events to webhook BOOKING_CONFIRMED, BOOKING_REJECTED (#8884) 2023-05-30 15:35:05 +00:00
seed-app-store.config.json chore: remove deprecated metamask and rainbow (#9299) 2023-06-06 11:18:44 +00:00
seed-app-store.ts Improvement/AppStore: Remove seeding from app-store-cli. (#8486) 2023-05-12 04:59:15 +00:00
seed-insights.ts add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
seed.ts add an enum generator, stop importing from @prisma/client (#8548) 2023-05-02 13:44:05 +02:00
zod-utils.ts feat: event settings booker layout toggle (#9082) 2023-06-06 15:31:43 +00:00