Skip to content

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

Update auth banner text copy (#29714)

Joshen Lim9686f90628b9
diff --git a/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.constants.ts b/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.constants.ts
index 2c49967233d..eddcea1ad72 100644
--- a/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.constants.ts
+++ b/apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.constants.ts
@@ -1,5 +1,3 @@
-const AFTER_26_09_2024 = Date.now() >= new Date('2024-09-26T00:00:00Z').getTime()
-
interface ResourceWarningMessage {
// should match pathnames, ex: ('/', 'project/[ref]/auth', 'project/[ref]/database', '/project/[ref]/settings/auth')
restrictToRoutes?: string[]
@@ -214,42 +212,31 @@ export const RESOURCE_WARNING_MESSAGES: Record<string, ResourceWarningMessage> =
buttonText: 'Check usage',
metric: null,
},
+ // [Joshen] We can remove this once auth team gives the signal to
auth_restricted_email_sending: {
restrictToRoutes: ['/project/[ref]/auth', '/project/[ref]/settings/auth'], // project home, auth, settings
bannerContent: {
warning: {
- title: AFTER_26_09_2024
- ? "Auth emails are restricted to your organization's members"
- : "On 26th September: Auth email sending will be restricted to your organization's members",
- description: AFTER_26_09_2024
- ? "To fight abuse, emails sent by Auth are restricted to the members of this project's organization. Set up a custom SMTP provider to send messages to any user."
- : "To fight abuse, emails sent by Auth will be restricted to the members of this project's organization. Set up a custom SMTP provider before then to send messages to any user and avoid disruptions.",
+ title: "Authentication emails are only sent to organization members' email addresses",
+ description:
+ 'Set up a custom SMTP provider to handle flows like password reset which require sending emails to any user',
},
critical: {
- title: AFTER_26_09_2024
- ? "Auth emails are restricted to your organization's members"
- : "On 26th September: Auth email sending will be restricted to your organization's members",
- description: AFTER_26_09_2024
- ? "To fight abuse, emails sent by Auth are restricted to the members of this project's organization. Set up a custom SMTP provider to send messages to any user."
- : "To fight abuse, emails sent by Auth will be restricted to the members of this project's organization. Set up a custom SMTP provider before then to send messages to any user and avoid disruptions.",
+ title: "Authentication emails are only sent to organization members' email addresses",
+ description:
+ 'Set up a custom SMTP provider to handle flows like password reset which require sending emails to any user',
},
},
cardContent: {
warning: {
- title: AFTER_26_09_2024
- ? 'Auth emails are restricted'
- : 'Action required: Auth emails to be restricted',
- description: AFTER_26_09_2024
- ? "Your project can only send Auth emails to your organization's members. Set up a custom SMTP provider to send Auth emails to any user."
- : "On 26th September your project will only be able to send Auth emails to your organization's members. Set up a custom SMTP provider before then to avoid disruptions!",
+ title: 'Auth emails are restricted',
+ description:
+ "Your project can only send Auth emails to your organization's members. Set up a custom SMTP provider to send Auth emails to any user",
},
critical: {
- title: AFTER_26_09_2024
- ? 'Auth emails are restricted'
- : 'Action required: Auth emails to be restricted',
- description: AFTER_26_09_2024
- ? "Your project can only send Auth emails to your organization's members. Set up a custom SMTP provider to send Auth emails to any user."
- : "On 26th September your project will only be able to send Auth emails to your organization's members. Set up a custom SMTP provider before then to avoid disruptions!",
+ title: 'Auth emails are restricted',
+ description:
+ "Your project can only send Auth emails to your organization's members. Set up a custom SMTP provider to send Auth emails to any user.",
},
},
docsUrl: 'https://github.com/orgs/supabase/discussions/29370',