fix: improve cancellation email of reschedule RR booking (#17768)

* fix: improve cancellation email of reschedule RR booking

* fix failing test

* fix: uses same lucky user when rescheduling RR booking also has a fixed host

* chore

* chore

* better message in the cancelled email

* fix

* fix

* add booker rescheduled in reassigned email to old host

* test

* add reassigned subtite

* fix: use same lucky user when reschedule RR booking has a fixed host

* fix: test

* fix: subtitle

---------

Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
Kartik SainiandAnik Dhabal Babu authored and GitHub committed 2025-08-27 13:28:33 -03:00
1 parent a4915184cd
commit afea724e4d
10 files changed
+107 -44

No files matched your search

@@ -107,6 +107,9 @@ export const BaseScheduledEmail = (
}
withSpacer
/>
{props.reassigned?.reason && (
<Info label={t("reason")} description={props.reassigned.reason} withSpacer />
)}
</>
)}
{props.reassigned && props.reassigned.byUser && (
@@ -1,11 +1,19 @@
import { OrganizerScheduledEmail } from "./OrganizerScheduledEmail";
export const OrganizerCancelledEmail = (props: React.ComponentProps<typeof OrganizerScheduledEmail>) => (
<OrganizerScheduledEmail
title="event_request_cancelled"
headerType="xCircle"
subject="event_cancelled_subject"
callToAction={null}
{...props}
/>
);
export const OrganizerCancelledEmail = (props: React.ComponentProps<typeof OrganizerScheduledEmail>) => {
const t = props.teamMember?.language.translate || props.calEvent.organizer.language.translate;
const title = props.reassigned ? "event_request_reassigned" : "event_request_cancelled";
const subtitle = props.reassigned ? t("event_reassigned_subtitle") : "";
const subject = props.reassigned ? "event_reassigned_subject" : "event_cancelled_subject";
return (
<OrganizerScheduledEmail
title={title}
subtitle={subtitle}
headerType="xCircle"
subject={subject}
callToAction={null}
reassigned={props.reassigned}
{...props}
/>
);
};