Files
cal.diy/apps/web/components/settings/platform/oauth-clients
5b048dd868 fix: exclude third-party video apps from areCalendarEventsEnabled setting (#27230)
* fix: exclude third-party video apps from areCalendarEventsEnabled setting

When areCalendarEventsEnabled is false, video meeting creation for third-party
video apps (like Daily.co) was being skipped, causing the meetingUrl field in
webhook payloads to contain the location identifier (integrations:daily) instead
of the actual video meeting URL.

This fix adds a skipCalendarEvent option to EventManager.create() that:
- Skips calendar event creation when true
- Skips CRM event creation when true (CRM events are tied to calendar events)
- Still creates video meetings for third-party video apps

The calling code in handleConfirmation.ts and RegularBookingService.ts now uses
this option when areCalendarEventsEnabled is false, ensuring video meetings are
still created while respecting the platform customer's preference to manage
their own calendar events.

Co-Authored-By: [email protected] <[email protected]>

* test: update E2E tests to verify skipCalendarEvent option is passed when areCalendarEventsEnabled is false

Co-Authored-By: [email protected] <[email protected]>

* refactor: address PR review feedback - remove comments and update E2E tests to spy on createAllCalendarEvents

Co-Authored-By: [email protected] <[email protected]>

* test: add spy for createAllCRMEvents in e2e tests when areCalendarEventsEnabled is false

Co-Authored-By: [email protected] <[email protected]>

* test: add missing spy for createAllCRMEvents in beforeEach hook

Co-Authored-By: [email protected] <[email protected]>

* fix: use videoCallUrl from metadata for webhook payload location

Co-Authored-By: [email protected] <[email protected]>

* fix: simplify webhook location to use metadata?.videoCallUrl || evt.location

Co-Authored-By: [email protected] <[email protected]>

* docs: add description about video call link limitations when calendar events disabled

Co-Authored-By: [email protected] <[email protected]>

* i18n: add translation key for calendar events disabled video limitation

Co-Authored-By: [email protected] <[email protected]>

* fix: update translation text to accurately reflect video app behavior

Co-Authored-By: [email protected] <[email protected]>

* Update common.json

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Lauris Skraucis <[email protected]>
2026-01-29 10:23:52 +02:00
..