feat: Disable booking emails to guests (#25217)

* feat: disable SMS org setting

* chore: undo

* fix: cal evnet

* feat: add more settings

* tests: add email manager unit tests

* fix: update

* fix: type error

* fix: test

* refactor: UI

* refactor: UI

* perf: fetch only once

* perf: fetch only once

* chore: use org

* fix: test

* test: add unit tests

* refactor: email manager

* fix: add confirmation dialog for individual checkbox

* fix: sms

* chore: common.json
This commit is contained in:
Udit Takkar authored and GitHub committed 2025-12-03 17:21:31 +00:00
1 parent 1c3ced5b70
commit 35d6c41fff
32 files changed
+936 -27

No files matched your search

@@ -91,6 +91,7 @@ describe("buildCalEventFromBooking", () => {
organizer,
location,
conferenceCredentialId,
organizationId: null,
});
expect(result).toEqual({
@@ -127,6 +128,7 @@ describe("buildCalEventFromBooking", () => {
hideOrganizerEmail: undefined,
iCalSequence: 0,
iCalUID: booking.iCalUID,
organizationId: null,
});
expect(parseRecurringEvent).toHaveBeenCalledWith(booking.eventType?.recurringEvent);
@@ -154,6 +156,7 @@ describe("buildCalEventFromBooking", () => {
organizer,
location,
conferenceCredentialId,
organizationId: null,
});
expect(result).toEqual({
@@ -182,6 +185,7 @@ describe("buildCalEventFromBooking", () => {
hideOrganizerEmail: undefined,
iCalSequence: 0,
iCalUID: "icaluid",
organizationId: null,
});
// @ts-expect-error - locale is set in mock
+3
View File
@@ -63,11 +63,13 @@ export const buildCalEventFromBooking = async ({
organizer,
location,
conferenceCredentialId,
organizationId,
}: {
booking: Booking;
organizer: Organizer;
location: string;
conferenceCredentialId: number | null;
organizationId: number | null;
}) => {
const attendeesList = await Promise.all(
booking.attendees.map(async (attendee) => {
@@ -113,5 +115,6 @@ export const buildCalEventFromBooking = async ({
customReplyToEmail: booking.eventType?.customReplyToEmail,
iCalUID: booking.iCalUID ?? booking.uid,
iCalSequence: booking.iCalSequence ?? 0,
organizationId,
};
};
@@ -35,6 +35,7 @@ class CalendarEventClass implements CalendarEvent {
recurrence?: string;
iCalUID?: string | null;
customReplyToEmail?: string | null;
organizationId?: number | null;
constructor(initProps?: CalendarEvent) {
// If more parameters are given we update this