feat: ability to hide organizer email (#20782)

* feat: hide orgainzer email

* fix type error

* update

* update

* Update schema.prisma
This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-04-23 19:58:29 +00:00
1 parent 2e6d71f493
commit 513f54f4fe
42 files changed
+136 -10

No files matched your search

+1
View File
@@ -39,6 +39,7 @@ export const getEventTypesFromDB = async (id: number) => {
currency: true,
bookingFields: true,
allowReschedulingPastBookings: true,
hideOrganizerEmail: true,
disableCancelling: true,
disableRescheduling: true,
disableGuests: true,
@@ -132,6 +132,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
metadata: eventTypeMetaDataSchemaWithTypedApps.parse(eventTypeRaw.metadata),
recurringEvent: parseRecurringEvent(eventTypeRaw.recurringEvent),
customInputs: customInputSchema.array().parse(eventTypeRaw.customInputs),
hideOrganizerEmail: eventTypeRaw.hideOrganizerEmail,
bookingFields: eventTypeRaw.bookingFields.map((field) => {
return {
...field,
@@ -602,9 +602,11 @@ export default function Success(props: PageProps) {
</span>
<Badge variant="blue">{t("Host")}</Badge>
</div>
<p className="text-default">
{bookingInfo?.userPrimaryEmail ?? bookingInfo.user.email}
</p>
{!bookingInfo.eventType?.hideOrganizerEmail && (
<p className="text-default">
{bookingInfo?.userPrimaryEmail ?? bookingInfo.user.email}
</p>
)}
</div>
)}
{bookingInfo?.attendees.map((attendee) => (
@@ -3140,6 +3140,8 @@
"meeting_satisfaction_question": "How satisfied were you with your recent meeting?",
"meeting_not_joined_question": "didn't join the meeting?",
"reschedule_cta_short": "Reschedule here.",
"hide_organizer_email": "Hide organizer's email",
"hide_organizer_email_description": "Hide organizer's email address from the booking screen, email notifications, and calendar events",
"you_and_conjunction": "You &",
"select_verified_email": "Select a verified email",
"custom_reply_to_email_title": "Custom 'Reply-To' email",