feat: add option to disable sending transcription emails (#19065)

* feat: add option to disable sending transcription emails

* fix: types and tests

* fix: type error

* fix: type err

* fix: type err

---------

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-02-07 12:33:38 +00:00
1 parent 6ca76707da
commit 808de26401
17 files changed
+83 -30

No files matched your search

@@ -74,6 +74,7 @@ export type EventAdvancedTabCustomClassNames = {
};
requiresConfirmation?: RequiresConfirmationCustomClassNames;
bookerEmailVerification?: SettingsToggleClassNames;
canSendCalVideoTranscriptionEmails?: SettingsToggleClassNames;
calendarNotes?: SettingsToggleClassNames;
eventDetailsVisibility?: SettingsToggleClassNames;
bookingRedirect?: SettingsToggleClassNames & {
@@ -471,6 +472,7 @@ export const EventAdvancedTab = ({
const successRedirectUrlLocked = shouldLockDisableProps("successRedirectUrl");
const seatsLocked = shouldLockDisableProps("seatsPerTimeSlotEnabled");
const requiresBookerEmailVerificationProps = shouldLockDisableProps("requiresBookerEmailVerification");
const sendCalVideoTranscriptionEmailsProps = shouldLockDisableProps("canSendCalVideoTranscriptionEmails");
const hideCalendarNotesLocked = shouldLockDisableProps("hideCalendarNotes");
const hideCalendarEventDetailsLocked = shouldLockDisableProps("hideCalendarEventDetails");
const eventTypeColorLocked = shouldLockDisableProps("eventTypeColor");
@@ -574,6 +576,29 @@ export const EventAdvancedTab = ({
onRequiresConfirmation={setRequiresConfirmation}
customClassNames={customClassNames?.requiresConfirmation}
/>
<Controller
name="canSendCalVideoTranscriptionEmails"
render={({ field: { value, onChange } }) => (
<SettingsToggle
labelClassName={classNames(
"text-sm",
customClassNames?.canSendCalVideoTranscriptionEmails?.label
)}
toggleSwitchAtTheEnd={true}
switchContainerClassName={classNames(
"border-subtle rounded-lg border py-6 px-4 sm:px-6",
customClassNames?.canSendCalVideoTranscriptionEmails?.container
)}
title={t("send_cal_video_transcription_emails")}
data-testid="send-cal-video-transcription-emails"
{...sendCalVideoTranscriptionEmailsProps}
description={t("description_send_cal_video_transcription_emails")}
descriptionClassName={customClassNames?.canSendCalVideoTranscriptionEmails?.description}
checked={value}
onCheckedChange={(e) => onChange(e)}
/>
)}
/>
<Controller
name="requiresBookerEmailVerification"
render={({ field: { value, onChange } }) => (