Skip to content

Commit 6db9003

Browse files
authored
Add the list of active terms to onboarding email (#28)
This PR adds an `activeTerms` input to the onboarding email. This shows a list of active terms to the user. <img width="464" alt="image" src="https://github.com/user-attachments/assets/93c2a740-a5ea-44b8-b531-3dcf38b4260e" />
1 parent def2f1e commit 6db9003

File tree

1 file changed

+39
-10
lines changed

1 file changed

+39
-10
lines changed

emails/onboarding.tsx

Lines changed: 39 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {
2+
Heading,
23
Hr,
34
Link,
45
Section,
@@ -11,6 +12,7 @@ import { WATcloudEmail } from "./_common/watcloud-email";
1112
const WATcloudOnboardingEmailProps = z.object({
1213
name: z.string(),
1314
services: z.array(z.string()),
15+
activeTerms: z.array(z.string()),
1416
});
1517

1618
type WATcloudOnboardingEmailProps = z.infer<typeof WATcloudOnboardingEmailProps>;
@@ -31,23 +33,46 @@ export const WATcloudOnboardingEmail = (props: WATcloudOnboardingEmailProps) =>
3133
<WATcloudEmail previewText={previewText}>
3234
<Text>Hi {name},</Text>
3335
<Text>
34-
Welcome to WATcloud, WATonomous's compute cluster and infrastructure.
35-
You are receiving this email because you have been granted access to WATcloud, or your access has been updated.
36+
Welcome to WATcloud, WATonomous's compute cluster and infrastructure!
37+
</Text>
38+
<Text>
39+
You are receiving this email because you have been granted access to WATcloud, or your existing access has been updated.
3640
</Text>
37-
<Hr />
3841
<Section>
39-
<Text>Here's a list of services that you now have access to:</Text>
42+
<Heading as="h3">Your Access Details</Heading>
43+
<Text>
44+
Our records indicate that you are, or have been, active during the following term(s):
45+
</Text>
46+
<ul style={{ fontSize: "14px", lineHeight: "24px" }}>
47+
{props.activeTerms?.map((term) => (
48+
<li key={term}>{term}</li>
49+
))}
50+
</ul>
51+
</Section>
52+
<Section>
53+
<Heading as="h3">Services You Have Access To</Heading>
54+
<Text>
55+
You now have access to the following services:
56+
</Text>
4057
{accessInstructions}
4158
<Text>
42-
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.
59+
If you are an alumnus, you may retain access to some services beyond the active terms.
60+
</Text>
61+
</Section>
62+
<Section>
63+
<Heading as="h3">Getting Started</Heading>
64+
<Text>
65+
Access instructions for each service are available in the <Link href="https://cloud.watonomous.ca/docs/services" style={{ color: "#1e90ff", textDecoration: "none" }}>Services Documentation</Link>.
66+
</Text>
67+
</Section>
68+
<Section>
69+
<Heading as="h3">Questions or Assistance?</Heading>
70+
<Text>
71+
If you have any questions or need assistance, feel free to reach out to your <Link href="https://cloud.watonomous.ca/docs/services#watcloud-contact" style={{ color: "#1e90ff", textDecoration: "none" }}>WATcloud contact</Link> or email the WATcloud team at <Link href={`mailto:infra-outreach@watonomous.ca`} style={{ color: "#1e90ff", textDecoration: "none" }}>infra-outreach@watonomous.ca</Link>.
4372
</Text>
4473
</Section>
45-
<Hr />
46-
<Text>
47-
If you have any questions, please reach out to your <Link href="https://cloud.watonomous.ca/docs/services#watcloud-contact" style={{ color: "#1e90ff", textDecoration: "none" }}>WATcloud contact</Link> or the WATcloud team at <Link href={`mailto:infra-outreach@watonomous.ca`} style={{ color: "#1e90ff", textDecoration: "none" }}>infra-outreach@watonomous.ca</Link>.
48-
</Text>
4974
<Text>
50-
Vroom vroom,
75+
Vroom vroom!
5176
</Text>
5277
<pre style={{ fontFamily: "Courier New, monospace" }}>
5378
{dedent(String.raw`
@@ -66,6 +91,10 @@ export const WATcloudOnboardingEmail = (props: WATcloudOnboardingEmailProps) =>
6691
WATcloudOnboardingEmail.PreviewProps = {
6792
name: "John Doe",
6893
services: ["Compute Cluster", "Discord", "Google Workspace"],
94+
activeTerms: [
95+
"2024 Fall (2024-09-01 to 2024-12-31)",
96+
"2025 Winter (2025-01-01 to 2025-04-30)"
97+
],
6998
} as WATcloudOnboardingEmailProps;
7099

71100
export default WATcloudOnboardingEmail;

0 commit comments

Comments
 (0)