Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add spam assassin footer note (#30223)

Joshen Lim9ff1eee2f583
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/SpamValidation.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/SpamValidation.tsx
index 889a8795e7d..b50808295dd 100644
--- a/apps/studio/components/interfaces/Auth/EmailTemplates/SpamValidation.tsx
+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/SpamValidation.tsx
@@ -1,9 +1,9 @@
import { Check } from 'lucide-react'
-import Table from 'components/to-be-cleaned/Table'
+import { Markdown } from 'components/interfaces/Markdown'
import InformationBox from 'components/ui/InformationBox'
import { ValidateSpamResponse } from 'data/auth/validate-spam-mutation'
-import { cn, WarningIcon } from 'ui'
+import { cn, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, WarningIcon } from 'ui'
interface SpamValidationProps {
validationResult?: ValidateSpamResponse
@@ -29,28 +29,34 @@ export const SpamValidation = ({ validationResult }: SpamValidationProps) => {
description={
hasSpamWarning ? (
<>
- <p>
- {spamRules.length > 0
- ? hasSpamWarning
- ? ` Rectify the following issues to improve your email's deliverability in order of priority:`
- : ` Address the following issues to improve your email's deliverability:`
- : ''}
- </p>
-
{spamRules.length > 0 && (
- <Table
- className="mt-3"
- head={[
- <Table.th key="name">Warning</Table.th>,
- <Table.th key="desc">Description</Table.th>,
- ]}
- body={spamRules.map((rule) => (
- <Table.tr key={rule.name}>
- <Table.td>{rule.name}</Table.td>
- <Table.td>{rule.desc}</Table.td>
- </Table.tr>
- ))}
- />
+ <div className="flex flex-col gap-y-3">
+ <p>
+ {hasSpamWarning
+ ? ` Rectify the following issues to improve your email's deliverability in order of priority:`
+ : ` Address the following issues to improve your email's deliverability:`}
+ </p>
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead>Warning</TableHead>
+ <TableHead>Description</TableHead>
+ </TableRow>
+ </TableHeader>
+ <TableBody>
+ {spamRules.map((rule) => (
+ <TableRow key={rule.name}>
+ <TableCell>{rule.name}</TableCell>
+ <TableCell>{rule.desc}</TableCell>
+ </TableRow>
+ ))}
+ </TableBody>
+ </Table>
+ <Markdown
+ className="!max-w-none"
+ content="Spam validation is powered by [SpamAssassin](https://spamassassin.apache.org/doc.html). Full list of all available warnings can be found [here](https://gist.github.com/ychaouche/a2faff159c2a1fea16019156972c7f8b)."
+ />
+ </div>
)}
</>
) : null