From d165ceaf88ee7760e384bb343d63f1c46956e1c6 Mon Sep 17 00:00:00 2001 From: claudio Date: Fri, 10 Apr 2026 13:09:21 -0400 Subject: [PATCH 1/3] chore: remove external font references and dead waitlist template (#2501) - Remove Geist font @font-face from all 12 email templates. Email clients block external fonts anyway, and the references created unnecessary connections to app.trycomp.ai from email context. - Delete waitlist.tsx template and lib (dead code, no longer used) - Clean up barrel exports in packages/email/index.ts Co-authored-by: Claude Opus 4.6 (1M context) --- .../email/emails/all-policy-notification.tsx | 27 +---- packages/email/emails/invite-portal.tsx | 27 +---- packages/email/emails/invite.tsx | 18 +--- packages/email/emails/magic-link.tsx | 18 +--- packages/email/emails/marketing/welcome.tsx | 28 +---- packages/email/emails/otp.tsx | 27 +---- packages/email/emails/policy-notification.tsx | 27 +---- .../email/emails/reminders/task-reminder.tsx | 27 +---- .../reminders/task-status-notification.tsx | 27 +---- .../emails/reminders/weekly-task-digest.tsx | 27 +---- packages/email/emails/training-completed.tsx | 27 +---- .../emails/unassigned-items-notification.tsx | 27 +---- packages/email/emails/waitlist.tsx | 101 ------------------ packages/email/index.ts | 2 - packages/email/lib/waitlist.ts | 24 ----- 15 files changed, 13 insertions(+), 421 deletions(-) delete mode 100644 packages/email/emails/waitlist.tsx delete mode 100644 packages/email/lib/waitlist.ts diff --git a/packages/email/emails/all-policy-notification.tsx b/packages/email/emails/all-policy-notification.tsx index 1472d65ef6..d794bc9014 100644 --- a/packages/email/emails/all-policy-notification.tsx +++ b/packages/email/emails/all-policy-notification.tsx @@ -2,7 +2,6 @@ import { Body, Button, Container, - Font, Heading, Html, Link, @@ -35,31 +34,7 @@ export const AllPolicyNotificationEmail = ({ return ( - - - - - - - {subjectText} +{subjectText} - - - - - - - You've been invited to the Comp AI Portal +You've been invited to the Comp AI Portal { return ( - - - - - - You've been invited to join Comp AI +You've been invited to join Comp AI { return ( - - - - - - Login Link for Comp AI +Login Link for Comp AI { return ( - - - - - - - Get started with Comp AI +Get started with Comp AI { return ( - - - - - - - One-Time Password for Comp AI +One-Time Password for Comp AI - - - - - - - {subjectText} +{subjectText} return ( - - - - - - - Comp AI - Task Reminder +Comp AI - Task Reminder - - - - - - - + Task "{taskName}" {statusLabel} - {organizationName} diff --git a/packages/email/emails/reminders/weekly-task-digest.tsx b/packages/email/emails/reminders/weekly-task-digest.tsx index aa90fe17f5..7f1f18f942 100644 --- a/packages/email/emails/reminders/weekly-task-digest.tsx +++ b/packages/email/emails/reminders/weekly-task-digest.tsx @@ -2,7 +2,6 @@ import { Body, Button, Container, - Font, Heading, Html, Link, @@ -46,31 +45,7 @@ export const WeeklyTaskDigestEmail = ({ return ( - - - - - - - {taskCountMessage} +{taskCountMessage} - - - - - - - Congratulations! You've completed your Security Awareness Training +Congratulations! You've completed your Security Awareness Training - - - - - - - Member removed - items require reassignment +Member removed - items require reassignment { - const confirmationUrl = `https://trycomp.ai/api/waitlist?email=${email}`; - - return ( - - - - - - - - Confirm your email to join the Comp AI waitlist - - - - - - Just one more step - - - - To claim your spot on the Comp AI waitlist, please confirm your email. - -
- -
- - - or copy and paste this URL into your browser{' '} - - {confirmationUrl} - - - -
-
- - This email was intended for{' '} - {email}. If you did not request - this, please ignore this email. - -
- -
- -