Skip to content

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

updating text

Jonathan Summers-Muir0961562be1af
diff --git a/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageBars.tsx b/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageBars.tsx
index e291b7fcc1a..edb4ab3b1cf 100644
--- a/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageBars.tsx
+++ b/studio/components/interfaces/Settings/ProjectUsageBars/ProjectUsageBars.tsx
@@ -281,26 +281,45 @@ const ProjectUsage: FC<Props> = ({ projectRef }) => {
)}
</table>
- {isReadOnlyMode && product.title === 'Database' && (
+ {!isReadOnlyMode && product.title === 'Database' && (
<div className="p-6">
- <Alert title="Database in read-only mode" variant="warning" withIcon>
+ <Alert title={'Database is in read-only mode'} variant="danger" withIcon>
<div className="grid gap-4">
- <p>Your disk has reached 95% capacity and has entered Read Only mode.</p>
+ <p>
+ Your disk has reached 95% capacity and has entered{' '}
+ <a
+ href={`https://supabase.com/docs/guides/platform/database-usage#${
+ isPaidTier
+ ? 'paid-tier-disk-auto-scaling'
+ : 'free-tier-project-read-only-mode'
+ }`}
+ className="underline transition hover:text-scale-1200"
+ >
+ read-only mode
+ </a>
+ .
+ </p>
{isPaidTier ? (
<>
<p>
For Pro and Enterprise projects,{' '}
- <a href="https://supabase.com/docs/guides/platform/database-usage#paid-tier-disk-auto-scaling">
- Disk Size expands ~1.5x automatically
- </a>
- (e.g., 8GB to 12GB) when it reaches 90% capacity, but can only occur{' '}
+ <a
+ href="https://supabase.com/docs/guides/platform/database-usage#paid-tier-disk-auto-scaling"
+ className="underline transition hover:text-scale-1200"
+ >
+ Disk Size expands automatically
+ </a>{' '}
+ when it reaches 90% capacity, but can only occur{' '}
<u>once every six hours</u>.
</p>
<p>
- If the disk size has already expanded within 6 hours, and then reaches
- 95% capacity,{' '}
- <a href="https://supabase.com/docs/guides/platform/database-usage#paid-tier-project-read-only-mode">
- your disk will enter read only mode
+ If the disk size has already expanded and then reaches 95% capacity
+ within 6 hours, then{' '}
+ <a
+ href="https://supabase.com/docs/guides/platform/database-usage#paid-tier-project-read-only-mode"
+ className="underline transition hover:text-scale-1200"
+ >
+ your disk will enter read-only mode
</a>{' '}
until it can resize again after 6 hours.
</p>
@@ -311,39 +330,61 @@ const ProjectUsage: FC<Props> = ({ projectRef }) => {
projectRef ? projectRef : ''
}&category=Database_unresponsive&Subject=Read%20only%20mode%20issue`}
>
- <a className="underline">you can contact the support team</a>
+ <a className="underline transition hover:text-scale-1200">
+ you can contact the support team
+ </a>
</Link>
.
</p>
</>
) : (
<p>
- This project is on the Free tier. Your disk size cannot auto scale.
- Consider{' '}
+ This project is on the Free tier. Your disk size cannot auto scale to
+ avoid read-only mode. You can either{' '}
+ <a
+ href="https://supabase.com/docs/guides/platform/database-usage#increasing-available-disk-size"
+ className="underline transition hover:text-scale-1200"
+ >
+ reduce your disk usage
+ </a>{' '}
+ or{' '}
<Link
href={`/project/${
projectRef ? projectRef : ''
}/settings/billing/subscription`}
>
- <a className="underline">upgrading this project</a>
- </Link>{' '}
- to resume service as usual.
+ <a className="underline transition hover:text-scale-1200">
+ upgrade your project
+ </a>
+ </Link>
+ .
</p>
)}
- {/* <p>
- <Button
- type="default"
- icon={<IconBookOpen size={14} strokeWidth={1.5} />}
- >
- <a
- target="_blank"
- href="https://supabase.com/docs/guides/platform/database-usage#database-storage-management"
+ <p>
+ {!isPaidTier ? (
+ <Button type="danger">
+ <a
+ target="_blank"
+ href="https://supabase.com/docs/guides/platform/database-usage#database-storage-management"
+ >
+ Upgrade this project
+ </a>
+ </Button>
+ ) : (
+ <Button
+ type="danger"
+ icon={<IconBookOpen size={14} strokeWidth={1.5} />}
>
- Database storage management
- </a>
- </Button>
- </p> */}
+ <a
+ target="_blank"
+ href="https://supabase.com/docs/guides/platform/database-usage#database-storage-management"
+ >
+ Database storage management
+ </a>
+ </Button>
+ )}
+ </p>
</div>
</Alert>
</div>
diff --git a/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx b/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx
index 4b2a129b33d..2d53a284b4a 100644
--- a/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx
+++ b/studio/components/layouts/ProjectLayout/LayoutHeader/LayoutHeader.tsx
@@ -89,13 +89,11 @@ const LayoutHeader = ({ customHeaderComponents, breadcrumbs = [], headerBorder =
{/* [Terry] Temporary until we figure out how we want to display this permanently */}
{/* context: https://www.notion.so/supabase/DB-Disk-Size-Free-tier-Read-only-Critical-f2b8937c13a149e3ac769fe5888f6db0*/}
- {isReadOnlyMode && (
+ {!isReadOnlyMode && (
<div className="ml-2">
<Link href={`/project/${projectRef}/settings/billing/usage`}>
<a>
- <Badge color="red">
- Project limits exceeded. Project in read-only mode.
- </Badge>
+ <Badge color="red">Project is in read-only mode.</Badge>
</a>
</Link>
</div>