Skip to content

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

Update CTAs for disk space exhaustion

Joshen Lim464b51d791a4
diff --git a/studio/components/ui/UsageWarnings/UsageWarningBanner.constants.ts b/studio/components/ui/UsageWarnings/UsageWarningBanner.constants.ts
index 2cb01037184..51855ae57ec 100644
--- a/studio/components/ui/UsageWarnings/UsageWarningBanner.constants.ts
+++ b/studio/components/ui/UsageWarnings/UsageWarningBanner.constants.ts
@@ -42,17 +42,19 @@ export const RESOURCE_WARNING_MESSAGES = {
warning: {
title:
'Your project is about to exhaust its disk space budget, and your instance may become unresponsive once fully exhausted',
- description: 'Some CTA description here',
+ description:
+ 'You can opt to increase your disk size up to 200GB if required on the database settings page.',
},
critical: {
title:
'Your project has exhausted its disk space budget, and your instance may become unresponsive',
- description: 'Some CTA description here',
+ description:
+ 'You can opt to increase your disk size up to 200GB if required on the database settings page.',
},
},
- docsUrl: undefined,
+ docsUrl: 'https://supabase.com/docs/guides/platform/database-size#disk-management',
buttonText: undefined,
- metric: undefined,
+ metric: 'disk_space',
},
cpu_exhaustion: {
content: {
diff --git a/studio/components/ui/UsageWarnings/UsageWarningBanner.tsx b/studio/components/ui/UsageWarnings/UsageWarningBanner.tsx
index 19b7fd6e1d8..e058b084801 100644
--- a/studio/components/ui/UsageWarnings/UsageWarningBanner.tsx
+++ b/studio/components/ui/UsageWarnings/UsageWarningBanner.tsx
@@ -86,6 +86,8 @@ const UsageWarningBanner = () => {
? undefined
: metric === null
? '/project/[ref]/settings/[infra-path]'
+ : metric === 'disk_space'
+ ? '/project/[ref]/settings/database'
: `/project/[ref]/settings/[infra-path]#${metric}`
)
?.replace('[ref]', ref ?? 'default')