Skip to content

Commit

Permalink
Add the list of active terms to onboarding email
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-z committed Jan 1, 2025
1 parent def2f1e commit 9d816fb
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion emails/onboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { WATcloudEmail } from "./_common/watcloud-email";
const WATcloudOnboardingEmailProps = z.object({
name: z.string(),
services: z.array(z.string()),
activeTerms: z.array(z.string()),
});

type WATcloudOnboardingEmailProps = z.infer<typeof WATcloudOnboardingEmailProps>;
Expand All @@ -35,8 +36,16 @@ export const WATcloudOnboardingEmail = (props: WATcloudOnboardingEmailProps) =>
You are receiving this email because you have been granted access to WATcloud, or your access has been updated.
</Text>
<Hr />
<Text>
Your access is valid for the following terms:
</Text>
<ul style={{ fontSize: "14px", lineHeight: "24px" }}>
{props.activeTerms?.map((term) => (
<li key={term}>{term}</li>
))}
</ul>
<Section>
<Text>Here's a list of services that you now have access to:</Text>
<Text>Here's a list of services that you have access to:</Text>
{accessInstructions}
<Text>
Access instructions for each service can be found in the <Link href="https://cloud.watonomous.ca/docs/services" style={{ color: "#1e90ff", textDecoration: "none" }}>Services</Link> documentation.
Expand Down Expand Up @@ -66,6 +75,10 @@ export const WATcloudOnboardingEmail = (props: WATcloudOnboardingEmailProps) =>
WATcloudOnboardingEmail.PreviewProps = {
name: "John Doe",
services: ["Compute Cluster", "Discord", "Google Workspace"],
activeTerms: [
"2024 Fall (2024-09-01 to 2024-12-31)",
"2025 Winter (2025-01-01 to 2025-04-30)"
],
} as WATcloudOnboardingEmailProps;

export default WATcloudOnboardingEmail;

0 comments on commit 9d816fb

Please sign in to comment.