Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Feat(crm): Update mail templates

Anthony Rimet4a317bc4331f
diff --git a/src/root/CRM.tsx b/src/root/CRM.tsx
index 03478b6d..7a2f935f 100644
--- a/src/root/CRM.tsx
+++ b/src/root/CRM.tsx
@@ -176,6 +176,18 @@ export const CRM = ({
</ConfigurationProvider>
);
+export const raSupabaseEnglishMessagesOverride = {
+ 'ra-supabase': {
+ auth: {
+ password_reset: 'Check your emails for a Reset Password message.',
+ },
+ },
+};
+
const i18nProvider = polyglotI18nProvider(() => {
- return mergeTranslations(englishMessages, raSupabaseEnglishMessages);
+ return mergeTranslations(
+ englishMessages,
+ raSupabaseEnglishMessages,
+ raSupabaseEnglishMessagesOverride
+ );
}, 'en');
diff --git a/supabase/templates/invite.html b/supabase/templates/invite.html
index 335126e8..5bb1ddc5 100644
--- a/supabase/templates/invite.html
+++ b/supabase/templates/invite.html
@@ -44,12 +44,6 @@
text-decoration: none;
border-radius: 5px;
}
- .footer {
- text-align: center;
- padding: 10px 0;
- font-size: 12px;
- color: #777777;
- }
</style>
</head>
<body>
@@ -60,7 +54,7 @@
<div class="content">
<p>Welcome to Atomic CRM.</p>
<p>
- You've been invited to join the (Name) organization. Confirm
+ You've been invited to join the CRM organization. Confirm
your address below:
</p>
<a
@@ -74,16 +68,7 @@
this may be a fraudulent attempt.
</p>
<p>See you soon!</p>
- <p>The Atomic CRM team</p>
- </div>
- <div class="footer">
- <p>
- If the activation link doesn’t work,
- <a
- href="mailto:[email protected]"
- >contact us</a
- >.
- </p>
+ <p>Atomic CRM team</p>
</div>
</div>
</body>
diff --git a/supabase/templates/recovery.html b/supabase/templates/recovery.html
index e0ec1037..627037ae 100644
--- a/supabase/templates/recovery.html
+++ b/supabase/templates/recovery.html
@@ -44,25 +44,17 @@
text-decoration: none;
border-radius: 5px;
}
- .footer {
- text-align: center;
- padding: 10px 0;
- font-size: 12px;
- color: #777777;
- }
</style>
</head>
<body>
<div class="container">
<div class="header">
- <h2>Reset Password</h2>
+ <h2>Reset your password</h2>
</div>
<div class="content">
<p>Hello,</p>
<p>To reset your password, follow the link below:</p>
- <a
- href="{{ .ConfirmationURL }}auth-callback.html"
- class="button"
+ <a href="{{ .ConfirmationURL }}auth-callback.html" class="button"
>Reset my password</a
>
<p>
@@ -70,17 +62,7 @@
not originate from you, please contact us immediately as
this may be a fraudulent attempt.
</p>
- <p>Keep up the great work!</p>
- <p>The Atomic CRM team</p>
- </div>
- <div class="footer">
- <p>
- If you need help, feel free to
- <a
- href="mailto:[email protected]"
- >contact us</a
- >.
- </p>
+ <p>Atomic CRM</p>
</div>
</div>
</body>