Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
style(fa): Change email templates (#2579)
Evan Hutnik639db65e8fe9
diff --git a/infra/stacks/fusion-auth/templates/email_verification_email.html b/infra/stacks/fusion-auth/templates/email_verification_email.htmldeleted file mode 100644index 1f092816a0..0000000000--- a/infra/stacks/fusion-auth/templates/email_verification_email.html+++ /dev/null@@ -1,212 +0,0 @@-[#setting url_escaping_charset="UTF-8"]-<!DOCTYPE html>-<html lang="en" xmlns:v="urn:schemas-microsoft-com:vml">- <head>- <meta charset="utf-8" />- <meta name="x-apple-disable-message-reformatting" />- <meta name="viewport" content="width=device-width, initial-scale=1" />- <meta- name="format-detection"- content="telephone=no, date=no, address=no, email=no"- />- <meta name="color-scheme" content="light dark" />- <meta name="supported-color-schemes" content="light dark" />- <title>Macro Access Code</title>- <style>- body {- margin: 0;- padding: 0;- width: 100% !important;- background-color: #f9fafb !important;- }- .email-container {- width: 100%;- max-width: 640px;- margin: 0 auto;- background-color: #f9fafb;- }- .content-block {- background-color: #ffffff;- border-radius: 8px;- padding: 56px 40px;- margin: 0 16px;- outline: 1px solid #f3f4f6;- }- .code-display {- margin: 56px auto;- width: calc(100% - 64px);- max-width: 400px;- border-radius: 12px;- background-color: #f3f4f6;- padding: 32px;- text-align: center;- font-size: 48px;- letter-spacing: 0.2em;- color: #374151;- font-family: monospace;- border: 1px solid #e5e7eb;- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);- box-sizing: border-box;- }-- /* Button Styles */- .button-container {- text-align: center;- margin: 40px 0;- }-- .button {- display: inline-block;- background-color: #3b82f6;- color: #ffffff !important;- text-decoration: none !important;- padding: 16px 32px;- border-radius: 8px;- font-size: 16px;- font-weight: 600;- text-align: center;- border: none;- cursor: pointer;- transition: background-color 0.2s ease;- box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);- min-width: 120px;- }-- .button:hover {- background-color: #2563eb !important;- text-decoration: none !important;- }-- .button:active {- background-color: #1d4ed8 !important;- transform: translateY(1px);- }-- /* Fallback for email clients that don't support CSS3 */- .button-fallback {- background-color: #3b82f6;- border-radius: 8px;- text-align: center;- }-- .button-fallback a {- display: block;- color: #ffffff !important;- text-decoration: none !important;- padding: 16px 32px;- font-size: 16px;- font-weight: 600;- }-- @media (max-width: 425px) {- .content-block {- padding: 32px 16px;- margin: 0 8px;- }-- .code-display {- width: calc(100% - 32px);- margin: 32px auto;- padding: 24px 16px;- font-size: 32px;- }-- .button {- padding: 14px 24px;- font-size: 15px;- }- }- </style>- </head>- <body>- <div- role="article"- aria-roledescription="email"- aria-label="Macro Access Code"- lang="en"- >- <table- class="email-container"- cellpadding="0"- cellspacing="0"- role="presentation"- >- <tr>- <td align="center" style="padding: 56px 0 32px">- <a href="https://macro.com">- <img- src="https://coparse-release-artifact-storage-bucket.s3.amazonaws.com/logos/logo.png"- width="200"- alt="Macro"- style="border: 0; max-width: 100%"- />- </a>- </td>- </tr>- <tr>- <td>- <div class="content-block">- <h1- style="- margin: 0 0 16px;- text-align: center;- font-size: 36px;- font-weight: 600;- color: #374151;- "- >- Verify your email- </h1>- <p- style="- margin: 0 0 40px;- text-align: center;- font-size: 16px;- color: #6b7280;- "- >- Click the button below to verify your email address.- </p>-- <!-- Primary Button (Modern CSS) -->- <div class="button-container">- <a href="${url}/email/verify/fusionauth/${verificationId}" class="button">- Verify- </a>- </div>-- <!-- Fallback Button (Table-based for older email clients) -->- <!--[if mso]>- <table cellpadding="0" cellspacing="0" role="presentation" style="margin: 40px auto;">- <tr>- <td class="button-fallback">- <a href="${url}/email/verify/fusionauth/${verificationId} style="color: #ffffff !important; text-decoration: none !important; display: block; padding: 16px 32px; font-size: 16px; font-weight: 600;">- Verify Email Address- </a>- </td>- </tr>- </table>- <![endif]-->-- <p style="text-align: center; font-size: 16px; color: #6b7280; margin: 40px 0 0;">- If you didn't request this, you can safely ignore this email.- </p>- </div>- </td>- </tr>- <tr>- <td style="padding: 48px 0; text-align: center">- <p style="margin: 0; font-size: 14px; color: #9ca3af">- Questions? Email us at- <a- href="mailto:[email protected]"- style="color: #6b7280; font-weight: 500; text-decoration: none"- >[email protected]</a- >- </p>- </td>- </tr>- </table>- </div>- </body>-</html>diff --git a/infra/stacks/fusion-auth/templates/passwordless_email.html b/infra/stacks/fusion-auth/templates/passwordless_email.htmldeleted file mode 100644index 2f4fe81132..0000000000--- a/infra/stacks/fusion-auth/templates/passwordless_email.html+++ /dev/null@@ -1,144 +0,0 @@-[#setting url_escaping_charset="UTF-8"]-<!DOCTYPE html>-<html lang="en" xmlns:v="urn:schemas-microsoft-com:vml">- <head>- <meta charset="utf-8" />- <meta name="x-apple-disable-message-reformatting" />- <meta name="viewport" content="width=device-width, initial-scale=1" />- <meta- name="format-detection"- content="telephone=no, date=no, address=no, email=no"- />- <meta name="color-scheme" content="light dark" />- <meta name="supported-color-schemes" content="light dark" />- <title>Macro Access Code</title>- <style>- body {- margin: 0;- padding: 0;- width: 100% !important;- background-color: #f9fafb !important;- }-- .email-container {- width: 100%;- max-width: 640px;- margin: 0 auto;- background-color: #f9fafb;- }-- .content-block {- background-color: #ffffff;- border-radius: 8px;- padding: 56px 40px;- margin: 0 16px;- outline: 1px solid #f3f4f6;- }-- .code-display {- margin: 56px auto;- width: calc(100% - 64px);- max-width: 400px;- border-radius: 12px;- background-color: #f3f4f6;- padding: 32px;- text-align: center;- font-size: 48px;- letter-spacing: 0.2em;- color: #374151;- font-family: monospace;- border: 1px solid #e5e7eb;- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);- box-sizing: border-box;- }-- @media (max-width: 425px) {- .content-block {- padding: 32px 16px;- margin: 0 8px;- }-- .code-display {- width: calc(100% - 32px);- margin: 32px auto;- padding: 24px 16px;- font-size: 32px;- }- }- </style>- </head>-- <body>- <div- role="article"- aria-roledescription="email"- aria-label="Macro Access Code"- lang="en"- >- <table- class="email-container"- cellpadding="0"- cellspacing="0"- role="presentation"- >- <tr>- <td align="center" style="padding: 56px 0 32px">- <a href="https://macro.com">- <img- src="https://coparse-release-artifact-storage-bucket.s3.amazonaws.com/logos/logo.png"- width="200"- alt="Macro"- style="border: 0; max-width: 100%"- />- </a>- </td>- </tr>- <tr>- <td>- <div class="content-block">- <h1- style="- margin: 0 0 16px;- text-align: center;- font-size: 36px;- font-weight: 600;- color: #374151;- "- >- Login to Macro- </h1>- <p- style="- margin: 0;- text-align: center;- font-size: 16px;- color: #6b7280;- "- >- Enter the code below to login.- </p>- <div class="code-display">- ${code}- </div>- <p style="text-align: center; font-size: 16px; color: #6b7280">- If you didn't request this, you can safely ignore this email.- </p>- </div>- </td>- </tr>- <tr>- <td style="padding: 48px 0; text-align: center">- <p style="margin: 0; font-size: 14px; color: #9ca3af">- Questions? Email us at- <a- href="mailto:[email protected]"- style="color: #6b7280; font-weight: 500; text-decoration: none"- >[email protected]</a- >- </p>- </td>- </tr>- </table>- </div>- </body>-</html>diff --git a/infra/stacks/fusionauth-instance/index.ts b/infra/stacks/fusionauth-instance/index.tsindex 9d64800a52..8abb97900a 100644--- a/infra/stacks/fusionauth-instance/index.ts+++ b/infra/stacks/fusionauth-instance/index.ts@@ -59,7 +59,7 @@ const passwordlessEmailTemplate = new FusionAuthEMail('passwordless-email-template',{name: 'Passwordless Login',- defaultSubject: 'Log into Macro',+ defaultSubject: 'Log into Macro - ${code}',defaultHtmlTemplate: fs.readFileSync('./templates/passwordless_email_template.html','utf-8'diff --git a/infra/stacks/fusionauth-instance/templates/email_verification_template.html b/infra/stacks/fusionauth-instance/templates/email_verification_template.htmlindex 0b23646858..51ca708aad 100644--- a/infra/stacks/fusionauth-instance/templates/email_verification_template.html+++ b/infra/stacks/fusionauth-instance/templates/email_verification_template.html@@ -1,212 +1,135 @@[#setting url_escaping_charset="UTF-8"]<!DOCTYPE html><html lang="en" xmlns:v="urn:schemas-microsoft-com:vml">- <head>- <meta charset="utf-8" />- <meta name="x-apple-disable-message-reformatting" />- <meta name="viewport" content="width=device-width, initial-scale=1" />- <meta- name="format-detection"- content="telephone=no, date=no, address=no, email=no"- />- <meta name="color-scheme" content="light dark" />- <meta name="supported-color-schemes" content="light dark" />- <title>Macro Email Verification</title>- <style>- body {- margin: 0;- padding: 0;- width: 100% !important;- background-color: #f9fafb !important;- }- .email-container {- width: 100%;- max-width: 640px;- margin: 0 auto;- background-color: #f9fafb;- }- .content-block {- background-color: #ffffff;- border-radius: 8px;- padding: 56px 40px;- margin: 0 16px;- outline: 1px solid #f3f4f6;- }- .code-display {- margin: 56px auto;- width: calc(100% - 64px);- max-width: 400px;- border-radius: 12px;- background-color: #f3f4f6;- padding: 32px;- text-align: center;- font-size: 48px;- letter-spacing: 0.2em;- color: #374151;- font-family: monospace;- border: 1px solid #e5e7eb;- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);- box-sizing: border-box;- }-- /* Button Styles */- .button-container {- text-align: center;- margin: 40px 0;- }-- .button {- display: inline-block;- background-color: #3b82f6;- color: #ffffff !important;- text-decoration: none !important;- padding: 16px 32px;- border-radius: 8px;- font-size: 16px;- font-weight: 600;- text-align: center;- border: none;- cursor: pointer;- transition: background-color 0.2s ease;- box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15);- min-width: 120px;- }-- .button:hover {- background-color: #2563eb !important;- text-decoration: none !important;- }-- .button:active {- background-color: #1d4ed8 !important;- transform: translateY(1px);- }-- /* Fallback for email clients that don't support CSS3 */- .button-fallback {- background-color: #3b82f6;- border-radius: 8px;- text-align: center;- }-- .button-fallback a {- display: block;- color: #ffffff !important;- text-decoration: none !important;- padding: 16px 32px;- font-size: 16px;- font-weight: 600;- }-- @media (max-width: 425px) {- .content-block {- padding: 32px 16px;- margin: 0 8px;- }-- .code-display {- width: calc(100% - 32px);- margin: 32px auto;- padding: 24px 16px;- font-size: 32px;- }-- .button {- padding: 14px 24px;- font-size: 15px;- }- }- </style>- </head>- <body>- <div- role="article"- aria-roledescription="email"- aria-label="Macro Access Code"- lang="en"- >- <table- class="email-container"- cellpadding="0"- cellspacing="0"- role="presentation"- >- <tr>- <td align="center" style="padding: 56px 0 32px">- <a href="https://macro.com">- <img- src="https://coparse-release-artifact-storage-bucket.s3.amazonaws.com/logos/logo.png"- width="200"- alt="Macro"- style="border: 0; max-width: 100%"- />+<head>+ <meta charset="utf-8" />+ <meta name="x-apple-disable-message-reformatting" />+ <meta name="viewport" content="width=device-width, initial-scale=1" />+ <meta+ name="format-detection"+ content="telephone=no, date=no, address=no, email=no"+ />+ <meta name="color-scheme" content="dark" />+ <meta name="supported-color-schemes" content="dark" />+ <title>Verify your email</title>+ <!--[if mso]><style>body{font-family:Helvetica,Arial,sans-serif}</style><![endif]-->+</head>++<body>+<div+ role="article"+ aria-roledescription="email"+ aria-label="Verify your email"+ lang="en"+ style="background-color: #030303; width: 100%; font-family: 'Rajdhani', Helvetica, Arial, sans-serif"+>+ <table+ cellpadding="0"+ cellspacing="0"+ role="presentation"+ style="width: 100%; max-width: 640px; margin: 0 auto; background-color: #030303"+ >+ <tr>+ <td align="center" style="padding: 56px 0 32px">+ <a href="https://macro.com">+ <img+ src="https://macro.com/logo-256px.png"+ width="128"+ alt="Macro"+ style="border: 0; max-width: 100%"+ />+ </a>+ </td>+ </tr>+ <tr>+ <td>+ <div style="background-color: #090909; border-radius: 5px; padding: 56px 40px; margin: 0 16px; border: 1px solid #484848">+ <h1+ style="+ margin: 0 0 16px;+ text-align: center;+ font-size: 36px;+ font-weight: 450;+ font-family: 'Roboto Slab', Rockwell, Georgia, serif;+ letter-spacing: -0.02em;+ color: #f2f2f2;+ "+ >+ Verify your email+ </h1>+ <p+ style="+ margin: 0;+ text-align: center;+ font-size: 16px;+ color: #aeaeae;+ font-family: 'Rajdhani', Helvetica, Arial, sans-serif;+ "+ >+ Click the button below to verify your email address.+ </p>+ <div style="text-align: center; margin: 56px 0">+ <a+ href="{{AUTH_SERVICE_URL}}/email/verify/fusionauth/${verificationId}"+ style="+ display: inline-block;+ background-color: #ff8f00;+ color: #090909;+ text-decoration: none;+ padding: 16px 32px;+ border-radius: 3px;+ font-size: 16px;+ font-family: 'Rajdhani', Helvetica, Arial, sans-serif;+ font-weight: 600;+ "+ >+ Verify</a>- </td>- </tr>- <tr>- <td>- <div class="content-block">- <h1- style="- margin: 0 0 16px;- text-align: center;- font-size: 36px;- font-weight: 600;- color: #374151;- "- >- Verify your email- </h1>- <p- style="- margin: 0 0 40px;- text-align: center;- font-size: 16px;- color: #6b7280;- "- >- Click the button below to verify your email address.- </p>-- <!-- Primary Button (Modern CSS) -->- <div class="button-container">- <a href="{{AUTH_SERVICE_URL}}/email/verify/fusionauth/${verificationId}" class="button">- Verify+ </div>+ <!--[if mso]>+ <table cellpadding="0" cellspacing="0" role="presentation" style="margin: 56px auto;">+ <tr>+ <td style="background-color: #ff8f00; border-radius: 3px;">+ <a href="{{AUTH_SERVICE_URL}}/email/verify/fusionauth/${verificationId}" style="color: #090909; text-decoration: none; display: block; padding: 16px 32px; font-size: 16px; font-weight: 600; font-family: 'Rajdhani', Helvetica, Arial, sans-serif;">+ Verify Email</a>- </div>-- <!-- Fallback Button (Table-based for older email clients) -->- <!--[if mso]>- <table cellpadding="0" cellspacing="0" role="presentation" style="margin: 40px auto;">- <tr>- <td class="button-fallback">- <a href="{{AUTH_SERVICE_URL}}/email/verify/fusionauth/${verificationId}" style="color: #ffffff !important; text-decoration: none !important; display: block; padding: 16px 32px; font-size: 16px; font-weight: 600;">- Verify- </a>- </td>- </tr>- </table>- <![endif]-->-- <p style="text-align: center; font-size: 16px; color: #6b7280; margin: 40px 0 0;">- If you didn't request this, you can safely ignore this email.- </p>- </div>- </td>- </tr>- <tr>- <td style="padding: 48px 0; text-align: center">- <p style="margin: 0; font-size: 14px; color: #9ca3af">- Questions? Email us at- <a- href="mailto:[email protected]"- style="color: #6b7280; font-weight: 500; text-decoration: none"- >[email protected]</a- >- </p>- </td>- </tr>- </table>- </div>- </body>+ </td>+ </tr>+ </table>+ <![endif]-->+ <p+ style="+ text-align: center;+ font-size: 16px;+ color: #aeaeae;+ font-family: 'Rajdhani', Helvetica, Arial, sans-serif;+ "+ >+ If you didn't request this, you can safely ignore this email.+ </p>+ </div>+ </td>+ </tr>+ <tr>+ <td style="padding: 48px 0; text-align: center">+ <p+ style="+ margin: 0;+ font-size: 14px;+ color: #484848;+ font-family: 'Rajdhani', Helvetica, Arial, sans-serif;+ "+ >+ Questions? Email us at+ <a+ href="mailto:[email protected]"+ style="color: #aeaeae; text-decoration: none"+ >[email protected]</a+ >+ </p>+ </td>+ </tr>+ </table>+</div>+</body></html>diff --git a/infra/stacks/fusionauth-instance/templates/passwordless_email_template.html b/infra/stacks/fusionauth-instance/templates/passwordless_email_template.htmlindex 2f4fe81132..e562deb2db 100644--- a/infra/stacks/fusionauth-instance/templates/passwordless_email_template.html+++ b/infra/stacks/fusionauth-instance/templates/passwordless_email_template.html@@ -1,144 +1,109 @@[#setting url_escaping_charset="UTF-8"]<!DOCTYPE html><html lang="en" xmlns:v="urn:schemas-microsoft-com:vml">- <head>- <meta charset="utf-8" />- <meta name="x-apple-disable-message-reformatting" />- <meta name="viewport" content="width=device-width, initial-scale=1" />- <meta- name="format-detection"- content="telephone=no, date=no, address=no, email=no"- />- <meta name="color-scheme" content="light dark" />- <meta name="supported-color-schemes" content="light dark" />- <title>Macro Access Code</title>- <style>- body {- margin: 0;- padding: 0;- width: 100% !important;- background-color: #f9fafb !important;- }+<head>+ <meta charset="utf-8" />+ <meta name="x-apple-disable-message-reformatting" />+ <meta name="viewport" content="width=device-width, initial-scale=1" />+ <meta+ name="format-detection"+ content="telephone=no, date=no, address=no, email=no"+ />+ <meta name="color-scheme" content="dark" />+ <meta name="supported-color-schemes" content="dark" />+ <title>Macro Access Code</title>+ <!--[if mso]><style>body{font-family:Helvetica,Arial,sans-serif}</style><![endif]-->+</head>- .email-container {- width: 100%;- max-width: 640px;- margin: 0 auto;- background-color: #f9fafb;- }-- .content-block {- background-color: #ffffff;- border-radius: 8px;- padding: 56px 40px;- margin: 0 16px;- outline: 1px solid #f3f4f6;- }-- .code-display {- margin: 56px auto;- width: calc(100% - 64px);- max-width: 400px;- border-radius: 12px;- background-color: #f3f4f6;- padding: 32px;- text-align: center;- font-size: 48px;- letter-spacing: 0.2em;- color: #374151;- font-family: monospace;- border: 1px solid #e5e7eb;- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);- box-sizing: border-box;- }-- @media (max-width: 425px) {- .content-block {- padding: 32px 16px;- margin: 0 8px;- }-- .code-display {- width: calc(100% - 32px);- margin: 32px auto;- padding: 24px 16px;- font-size: 32px;- }- }- </style>- </head>-- <body>- <div- role="article"- aria-roledescription="email"- aria-label="Macro Access Code"- lang="en"- >- <table- class="email-container"- cellpadding="0"- cellspacing="0"- role="presentation"- >- <tr>- <td align="center" style="padding: 56px 0 32px">- <a href="https://macro.com">- <img- src="https://coparse-release-artifact-storage-bucket.s3.amazonaws.com/logos/logo.png"- width="200"- alt="Macro"- style="border: 0; max-width: 100%"- />- </a>- </td>- </tr>- <tr>- <td>- <div class="content-block">- <h1- style="- margin: 0 0 16px;- text-align: center;- font-size: 36px;- font-weight: 600;- color: #374151;- "- >- Login to Macro- </h1>- <p- style="+<body>+<div+ role="article"+ aria-roledescription="email"+ aria-label="Macro Access Code"+ lang="en"+ style="background-color: #030303; width: 100%; font-family: 'Rajdhani', Helvetica, Arial, sans-serif"+>+ <table+ cellpadding="0"+ cellspacing="0"+ role="presentation"+ style="width: 100%; max-width: 640px; margin: 0 auto; background-color: #030303"+ >+ <tr>+ <td align="center" style="padding: 56px 0 32px">+ <a href="https://macro.com">+ <img+ src="https://macro.com/logo-256px.png"+ width="128"+ alt="Macro"+ style="border: 0; max-width: 100%"+ />+ </a>+ </td>+ </tr>+ <tr>+ <td>+ <div style="background-color: #090909; border-radius: 5px; padding: 56px 40px; margin: 0 16px; border: 1px solid #484848">+ <h1+ style="+ margin: 0 0 16px;+ text-align: center;+ font-size: 36px;+ font-weight: 450;+ font-family: 'Roboto Slab', Rockwell, Georgia, serif;+ letter-spacing: -0.02em;+ color: #f2f2f2;+ "+ >+ Login to Macro+ </h1>+ <p+ style="+ margin: 0;+ text-align: center;+ font-size: 16px;+ color: #aeaeae;+ font-family: 'Rajdhani', Helvetica, Arial, sans-serif;+ "+ >+ Enter the code below to login.+ </p>+ <div style="margin: 56px auto; width: calc(100% - 64px); max-width: 400px; border-radius: 5px; background-color: #1f1f1f; padding: 32px; text-align: center; font-size: 48px; letter-spacing: 0.2em; color: #ff8f00; font-family: 'Courier New', Courier, monospace; border: 1px solid #484848; box-sizing: border-box">+ ${code}+ </div>+ <p+ style="+ text-align: center;+ font-size: 16px;+ color: #aeaeae;+ font-family: 'Rajdhani', Helvetica, Arial, sans-serif;+ "+ >+ If you didn't request this, you can safely ignore this email.+ </p>+ </div>+ </td>+ </tr>+ <tr>+ <td style="padding: 48px 0; text-align: center">+ <p+ style="margin: 0;- text-align: center;- font-size: 16px;- color: #6b7280;+ font-size: 14px;+ color: #484848;+ font-family: 'Rajdhani', Helvetica, Arial, sans-serif;"- >- Enter the code below to login.- </p>- <div class="code-display">- ${code}- </div>- <p style="text-align: center; font-size: 16px; color: #6b7280">- If you didn't request this, you can safely ignore this email.- </p>- </div>- </td>- </tr>- <tr>- <td style="padding: 48px 0; text-align: center">- <p style="margin: 0; font-size: 14px; color: #9ca3af">- Questions? Email us at- <a- href="mailto:[email protected]"- style="color: #6b7280; font-weight: 500; text-decoration: none"- >[email protected]</a- >- </p>- </td>- </tr>- </table>- </div>- </body>-</html>+ >+ Questions? Email us at+ <a+ href="mailto:[email protected]"+ style="color: #aeaeae; text-decoration: none"+ >[email protected]</a+ >+ </p>+ </td>+ </tr>+ </table>+</div>+</body>+</html>\ No newline at end of file