fix: new reassignment email for RR host reassignment (#17279)
* add new reassignment email * improve reassign email * fixes * Minor copy fixup --------- Co-authored-by: CarinaWolli <[email protected]> Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
11 files changed
+103
-18
No files matched your search
@@ -15,6 +15,7 @@ import {
|
||||
AppsStatus,
|
||||
UserFieldsResponses,
|
||||
} from "../components";
|
||||
import { PersonInfo } from "../components/WhoInfo";
|
||||
|
||||
export const BaseScheduledEmail = (
|
||||
props: {
|
||||
@@ -26,6 +27,7 @@ export const BaseScheduledEmail = (
|
||||
locale: string;
|
||||
timeFormat: TimeFormat | undefined;
|
||||
isOrganizer?: boolean;
|
||||
reassignedTo?: { name: string | null; email: string };
|
||||
} & Partial<React.ComponentProps<typeof BaseEmailHtml>>
|
||||
) => {
|
||||
const { t, timeZone, locale, timeFormat: timeFormat_ } = props;
|
||||
@@ -79,7 +81,15 @@ export const BaseScheduledEmail = (
|
||||
withSpacer
|
||||
/>
|
||||
)}
|
||||
<Info label={t("rejection_reason")} description={props.calEvent.rejectionReason} withSpacer />
|
||||
{props.reassignedTo && (
|
||||
<Info
|
||||
label={t("reassigned_to")}
|
||||
description={
|
||||
<PersonInfo name={props.reassignedTo.name || undefined} email={props.reassignedTo.email} />
|
||||
}
|
||||
withSpacer
|
||||
/>
|
||||
)}
|
||||
<Info label={t("what")} description={props.calEvent.title} withSpacer />
|
||||
<WhenInfo timeFormat={timeFormat} calEvent={props.calEvent} t={t} timeZone={timeZone} locale={locale} />
|
||||
<WhoInfo calEvent={props.calEvent} t={t} />
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
import { OrganizerScheduledEmail } from "./OrganizerScheduledEmail";
|
||||
|
||||
export const OrganizerReassignedEmail = (props: React.ComponentProps<typeof OrganizerScheduledEmail>) => {
|
||||
const t = props.teamMember?.language.translate || props.calEvent.organizer.language.translate;
|
||||
return (
|
||||
<OrganizerScheduledEmail
|
||||
title="event_request_reassigned"
|
||||
headerType="xCircle"
|
||||
subject="event_reassigned_subject"
|
||||
subtitle={<>{t("event_reassigned_subtitle")}</>}
|
||||
callToAction={null}
|
||||
reassignedTo={props.reassignedTo}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
};
|
||||
@@ -10,6 +10,7 @@ export const OrganizerScheduledEmail = (
|
||||
newSeat?: boolean;
|
||||
attendeeCancelled?: boolean;
|
||||
teamMember?: Person;
|
||||
reassignedTo?: { email: string; name: string | null };
|
||||
} & Partial<React.ComponentProps<typeof BaseScheduledEmail>>
|
||||
) => {
|
||||
let subject;
|
||||
@@ -49,12 +50,17 @@ export const OrganizerScheduledEmail = (
|
||||
timeFormat={timeFormat}
|
||||
isOrganizer
|
||||
subtitle={
|
||||
<>
|
||||
{props.attendeeCancelled
|
||||
? t("attendee_no_longer_attending_subtitle", { name: props.attendee.name })
|
||||
: ""}
|
||||
</>
|
||||
props.subtitle ? (
|
||||
props.subtitle
|
||||
) : (
|
||||
<>
|
||||
{props.attendeeCancelled
|
||||
? t("attendee_no_longer_attending_subtitle", { name: props.attendee.name })
|
||||
: ""}
|
||||
</>
|
||||
)
|
||||
}
|
||||
reassignedTo={props.reassignedTo}
|
||||
{...props}
|
||||
attendee={attendee}
|
||||
/>
|
||||
|
||||
@@ -12,6 +12,7 @@ export { SlugReplacementEmail } from "./SlugReplacementEmail";
|
||||
export { FeedbackEmail } from "./FeedbackEmail";
|
||||
export { ForgotPasswordEmail } from "./ForgotPasswordEmail";
|
||||
export { OrganizerCancelledEmail } from "./OrganizerCancelledEmail";
|
||||
export { OrganizerReassignedEmail } from "./OrganizerReassignedEmail";
|
||||
export { OrganizerLocationChangeEmail } from "./OrganizerLocationChangeEmail";
|
||||
export { OrganizerPaymentRefundFailedEmail } from "./OrganizerPaymentRefundFailedEmail";
|
||||
export { OrganizerRequestEmail } from "./OrganizerRequestEmail";
|
||||
|
||||
Reference in new issue
Block a user