feat: overlay your calendar (#11693)

* Init header + login modal component

* Add calendar settings for authed user

* Local storage and using query params for toggle

* Toggle connect screen if query param present and no session

* Local storage + store + way more than that should be in single commit

* Display busy events on weekly view

* Confirm booking slot of overlap exists

* use chevron right when on column view

* Show hover card - overlapping date times

* Invalidate on switch

* FIx clearing local storage when you login to another account

* Force re-render on url state (atom quirks)

* Add loading screen

* Add dialog close

* Remove extra grid config

* Translations

* [WIP] - tests

* fix: google calendar busy times (#11696)

Co-authored-by: CarinaWolli <[email protected]>

* New Crowdin translations by Github Action

* fix: rescheduled value DB update on reschedule and insights view cancelleds (#11474)

* v3.3.5

* fix minutes string (#11703)

Co-authored-by: CarinaWolli <[email protected]>

* Regenerated yarn.lock

* Add error component + loader

* await tests

* disable tests - add note

* Refactor to include selected time

* use no-scrollbar

* Fix i18n

* Fix tablet toolbar

* overflow + i18n

* Export empty object as test is TODO

* Uses booker timezone

* Fix hiding switch too early

* Handle selected timezone

* Fix timezone issues

* Fix timezone issues

---------

Co-authored-by: Carina Wollendorfer <[email protected]>
Co-authored-by: CarinaWolli <[email protected]>
Co-authored-by: Crowdin Bot <[email protected]>
Co-authored-by: alannnc <[email protected]>
Co-authored-by: Alex van Andel <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
17 files changed
+877 -55

No files matched your search

@@ -0,0 +1,39 @@
export {};
// TODO: @sean - I can't run E2E locally - causing me a lot of pain to try and debug.
// Will tackle in follow up once i reset my system.
// test.describe("User can overlay their calendar", async () => {
// test.afterAll(async ({ users }) => {
// await users.deleteAll();
// });
// test("Continue with Cal.com flow", async ({ page, users }) => {
// await users.create({
// username: "overflow-user-test",
// });
// await test.step("toggles overlay without a session", async () => {
// await page.goto("/overflow-user-test/30-min");
// const switchLocator = page.locator(`[data-testid=overlay-calendar-switch]`);
// await switchLocator.click();
// const continueWithCalCom = page.locator(`[data-testid=overlay-calendar-continue-button]`);
// await expect(continueWithCalCom).toBeVisible();
// await continueWithCalCom.click();
// });
// // log in trail user
// await test.step("Log in and return to booking page", async () => {
// const user = await users.create();
// await user.login();
// // Expect page to be redirected to the test users booking page
// await page.waitForURL("/overflow-user-test/30-min");
// });
// await test.step("Expect settings cog to be visible when session exists", async () => {
// const settingsCog = page.locator(`[data-testid=overlay-calendar-settings-button]`);
// await expect(settingsCog).toBeVisible();
// });
// await test.step("Settings should so no calendars connected", async () => {
// const settingsCog = page.locator(`[data-testid=overlay-calendar-settings-button]`);
// await settingsCog.click();
// await page.waitForLoadState("networkidle");
// const emptyScreenLocator = page.locator(`[data-testid=empty-screen]`);
// await expect(emptyScreenLocator).toBeVisible();
// });
// });
// });
@@ -268,6 +268,7 @@
"set_availability": "Set your availability",
"availability_settings": "Availability Settings",
"continue_without_calendar": "Continue without calendar",
"continue_with": "Continue with {{appName}}",
"connect_your_calendar": "Connect your calendar",
"connect_your_video_app": "Connect your video apps",
"connect_your_video_app_instructions": "Connect your video apps to use them on your event types.",
@@ -2085,5 +2086,8 @@
"copy_client_secret_info": "After copying the secret you won't be able to view it anymore",
"add_new_client": "Add new Client",
"this_app_is_not_setup_already": "This app has not been setup yet",
"overlay_my_calendar":"Overlay my calendar",
"overlay_my_calendar_toc":"By connecting to your calendar, you accept our privacy policy and terms of use. You may revoke access at any time.",
"view_overlay_calendar_events":"View your calendar events to prevent clashed booking.",
"ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑"
}