-
Notifications
You must be signed in to change notification settings - Fork 10.2k
feat: disable transcription setting in cal video #21755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (06/10/25)1 reviewer was added to this PR based on Keith Williams's automation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic found 1 issue across 14 files. Review it in cubic.dev
React with 👍 or 👎 to teach cubic. Tag @cubic-dev-ai
to give specific feedback.
@@ -174,6 +174,8 @@ export const useEventTypeForm = ({ | |||
redirectUrlOnExit: z.string().url().nullish(), | |||
disableRecordingForOrganizer: z.boolean().nullable(), | |||
disableRecordingForGuests: z.boolean().nullable(), | |||
disableTranscriptionForGuests: z.boolean().nullable(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If calVideoSettings is present this new field becomes mandatory (only null allowed). Existing eventType objects that don’t yet include this property will fail validation. Mark the field as optional as well to keep backward-compatibility.
disableTranscriptionForGuests: z.boolean().nullable(), | |
disableTranscriptionForGuests: z.boolean().nullable().optional(), |
{!isPlatform && ( | ||
<Controller | ||
name="calVideoSettings.disableTranscriptionForGuests" | ||
defaultValue={!!eventType.calVideoSettings?.disableTranscriptionForGuests} | ||
render={({ field: { onChange, value } }) => { | ||
return ( | ||
<SettingsToggle | ||
title={t("disable_transcription_for_guests")} | ||
labelClassName="text-sm" | ||
checked={value} | ||
onCheckedChange={onChange} | ||
/> | ||
); | ||
}} | ||
/> | ||
)} | ||
{!isPlatform && ( | ||
<Controller | ||
name="calVideoSettings.disableTranscriptionForOrganizer" | ||
defaultValue={!!eventType.calVideoSettings?.disableTranscriptionForOrganizer} | ||
render={({ field: { onChange, value } }) => { | ||
return ( | ||
<SettingsToggle | ||
title={t("disable_transcription_for_organizer")} | ||
labelClassName="text-sm" | ||
checked={value} | ||
onCheckedChange={onChange} | ||
/> | ||
); | ||
}} | ||
/> | ||
)} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
settings UI
const shouldEnableTranscriptionButton = ({ | ||
hasTeamPlan, | ||
calVideoSettings, | ||
isOrganizer, | ||
}: { | ||
hasTeamPlan: boolean; | ||
calVideoSettings?: CalVideoSettings | null; | ||
isOrganizer: boolean; | ||
}) => { | ||
if (!hasTeamPlan) return false; | ||
if (!calVideoSettings) return true; | ||
|
||
if (isOrganizer) { | ||
return !calVideoSettings.disableTranscriptionForOrganizer; | ||
} | ||
|
||
return !calVideoSettings.disableTranscriptionForGuests; | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
disableTranscriptionForOrganizer
and disableTranscriptionForGuests
default value is false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
0401006
to
e8c912b
Compare
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, good work @Udit-takkar
E2E results are ready! |
* feat: disable transcription setting in cal video * fix: type err
- Add disableRecordingDownloadEmailForGuests field to CalVideoSettings schema - Update repository layer to handle new field with default false value - Add UI toggle in event type setup page alongside other Cal Video settings - Modify sendDailyVideoRecordingEmails to conditionally skip attendee emails - Update webhook handler to pass calVideoSettings to email function - Add i18n translation for new toggle option - Update all TypeScript types and TRPC schemas - Create database migration for new field Follows pattern from PR #21755 for transcription settings. Only attendee emails are skipped when enabled - organizer emails always sent. Co-Authored-By: udit@cal.com <udit222001@gmail.com>
What does this PR do?
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Summary by cubic
Added new settings to disable transcription for guests and organizers in Cal Video meetings.