Skip to content

Commit 9686f90

Browse files
authored
Update auth banner text copy (supabase#29714)
* Update auth banner text copy * Update copy * Update copy * Update copy * Update copy
1 parent 96ede89 commit 9686f90

File tree

1 file changed

+13
-26
lines changed

1 file changed

+13
-26
lines changed

apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.constants.ts

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
const AFTER_26_09_2024 = Date.now() >= new Date('2024-09-26T00:00:00Z').getTime()
2-
31
interface ResourceWarningMessage {
42
// should match pathnames, ex: ('/', 'project/[ref]/auth', 'project/[ref]/database', '/project/[ref]/settings/auth')
53
restrictToRoutes?: string[]
@@ -214,42 +212,31 @@ export const RESOURCE_WARNING_MESSAGES: Record<string, ResourceWarningMessage> =
214212
buttonText: 'Check usage',
215213
metric: null,
216214
},
215+
// [Joshen] We can remove this once auth team gives the signal to
217216
auth_restricted_email_sending: {
218217
restrictToRoutes: ['/project/[ref]/auth', '/project/[ref]/settings/auth'], // project home, auth, settings
219218
bannerContent: {
220219
warning: {
221-
title: AFTER_26_09_2024
222-
? "Auth emails are restricted to your organization's members"
223-
: "On 26th September: Auth email sending will be restricted to your organization's members",
224-
description: AFTER_26_09_2024
225-
? "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."
226-
: "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.",
220+
title: "Authentication emails are only sent to organization members' email addresses",
221+
description:
222+
'Set up a custom SMTP provider to handle flows like password reset which require sending emails to any user',
227223
},
228224
critical: {
229-
title: AFTER_26_09_2024
230-
? "Auth emails are restricted to your organization's members"
231-
: "On 26th September: Auth email sending will be restricted to your organization's members",
232-
description: AFTER_26_09_2024
233-
? "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."
234-
: "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.",
225+
title: "Authentication emails are only sent to organization members' email addresses",
226+
description:
227+
'Set up a custom SMTP provider to handle flows like password reset which require sending emails to any user',
235228
},
236229
},
237230
cardContent: {
238231
warning: {
239-
title: AFTER_26_09_2024
240-
? 'Auth emails are restricted'
241-
: 'Action required: Auth emails to be restricted',
242-
description: AFTER_26_09_2024
243-
? "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."
244-
: "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!",
232+
title: 'Auth emails are restricted',
233+
description:
234+
"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",
245235
},
246236
critical: {
247-
title: AFTER_26_09_2024
248-
? 'Auth emails are restricted'
249-
: 'Action required: Auth emails to be restricted',
250-
description: AFTER_26_09_2024
251-
? "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."
252-
: "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!",
237+
title: 'Auth emails are restricted',
238+
description:
239+
"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.",
253240
},
254241
},
255242
docsUrl: 'https://github.com/orgs/supabase/discussions/29370',

0 commit comments

Comments
 (0)