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

@@ -0,0 +1,10 @@
-- AlterTable
ALTER TABLE "public"."OrganizationSettings" ADD COLUMN "disableAttendeeAwaitingPaymentEmail" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "disableAttendeeCancellationEmail" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "disableAttendeeConfirmationEmail" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "disableAttendeeLocationChangeEmail" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "disableAttendeeNewEventEmail" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "disableAttendeeReassignedEmail" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "disableAttendeeRequestEmail" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "disableAttendeeRescheduleRequestEmail" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "disableAttendeeRescheduledEmail" BOOLEAN NOT NULL DEFAULT false;
+11 -1
View File
@@ -1,4 +1,4 @@
// This is your Prisma Schema file
// This is your Prisma Schema file
// learn more about it in the docs: https://pris.ly/d/prisma-schema
datasource db {
@@ -688,6 +688,16 @@ model OrganizationSettings {
disablePhoneOnlySMSNotifications Boolean @default(false)
disableAutofillOnBookingPage Boolean @default(false)
orgAutoJoinOnSignup Boolean @default(true)
disableAttendeeConfirmationEmail Boolean @default(false)
disableAttendeeCancellationEmail Boolean @default(false)
disableAttendeeRescheduledEmail Boolean @default(false)
disableAttendeeRequestEmail Boolean @default(false)
disableAttendeeReassignedEmail Boolean @default(false)
disableAttendeeAwaitingPaymentEmail Boolean @default(false)
disableAttendeeRescheduleRequestEmail Boolean @default(false)
disableAttendeeLocationChangeEmail Boolean @default(false)
disableAttendeeNewEventEmail Boolean @default(false)
}
enum MembershipRole {