The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
deprecated: alert - disk io bandwidth (#30703)
hallidayo9567740566ce
diff --git a/apps/studio/components/interfaces/Billing/Usage/UsageWarningAlerts/DiskIOBandwidthWarnings.tsx b/apps/studio/components/interfaces/Billing/Usage/UsageWarningAlerts/DiskIOBandwidthWarnings.tsxindex ca114a07351..7fda2bb1e39 100644--- a/apps/studio/components/interfaces/Billing/Usage/UsageWarningAlerts/DiskIOBandwidthWarnings.tsx+++ b/apps/studio/components/interfaces/Billing/Usage/UsageWarningAlerts/DiskIOBandwidthWarnings.tsx@@ -1,5 +1,6 @@import Link from 'next/link'-import { Alert, Button } from 'ui'+import { Button } from 'ui'+import { Admonition } from 'ui-patterns'// [Joshen] In the future, conditionals should be from resource exhaustion endpoint as single source of truthinterface DiskIOBandwidthWarningsProps {@@ -21,66 +22,95 @@ const DiskIOBandwidthWarnings = ({}: DiskIOBandwidthWarningsProps) => {if (hasLatest && latestIoBudgetConsumption >= 100) {return (- <Alert withIcon variant="danger" title="Your Disk IO Budget has been used up">- <p className="mb-4">- Your workload has used up all your Disk IO Budget and is now running at the baseline- performance. If you need consistent disk performance, consider upgrading to a larger- compute add-on.- </p>- <Button asChild type="danger">- <Link href={upgradeUrl}>{isFreePlan ? 'Upgrade project' : 'Change compute add-on'}</Link>- </Button>- </Alert>+ <Admonition+ type="destructive"+ title="Your Disk IO Budget has been used up"+ description={+ <>+ <p className="mb-4">+ Your workload has used up all your Disk IO Budget and is now running at the baseline+ performance. If you need consistent disk performance, consider upgrading to a larger+ compute add-on.+ </p>+ <Button asChild type="danger">+ <Link href={upgradeUrl}>+ {isFreePlan ? 'Upgrade project' : 'Change compute add-on'}+ </Link>+ </Button>+ </>+ }+ />)}if (hasLatest && latestIoBudgetConsumption >= 80) {return (- <Alert withIcon variant="danger" title="You are close to running out of Disk IO Budget">- <p className="mb-4">- Your workload has consumed {latestIoBudgetConsumption}% of your Disk IO Budget. If you use- up all your Disk IO Budget, your instance will reverted to baseline performance. If you- need consistent disk performance, consider upgrading to a larger compute add-on.- </p>- <Button asChild type="danger">- <Link href={upgradeUrl}>{isFreePlan ? 'Upgrade project' : 'Change compute add-on'}</Link>- </Button>- </Alert>+ <Admonition+ type="destructive"+ title="You are close to running out of Disk IO Budget"+ description={+ <>+ <p className="mb-4">+ Your workload has consumed {latestIoBudgetConsumption}% of your Disk IO Budget. If you+ use up all your Disk IO Budget, your instance will reverted to baseline performance.+ If you need consistent disk performance, consider upgrading to a larger compute+ add-on.+ </p>+ <Button asChild type="danger">+ <Link href={upgradeUrl}>+ {isFreePlan ? 'Upgrade project' : 'Change compute add-on'}+ </Link>+ </Button>+ </>+ }+ />)}if (currentBillingCycleSelected && highestIoBudgetConsumption >= 100) {return (- <Alert withIcon variant="warning" title="You ran out of IO Budget at least once">- <p className="mb-4">- Your workload has used up all your Disk IO Budget and reverted to baseline performance at- least once during this billing cycle. If you need consistent disk performance, consider- upgrading to a larger compute add-on.- </p>- <Button asChild type="warning">- <Link href={upgradeUrl}>{isFreePlan ? 'Upgrade project' : 'Change compute add-on'}</Link>- </Button>- </Alert>+ <Admonition+ type="warning"+ title="You ran out of IO Budget at least once"+ description={+ <>+ <p className="mb-4">+ Your workload has used up all your Disk IO Budget and reverted to baseline performance+ at least once during this billing cycle. If you need consistent disk performance,+ consider upgrading to a larger compute add-on.+ </p>+ <Button asChild type="warning">+ <Link href={upgradeUrl}>+ {isFreePlan ? 'Upgrade project' : 'Change compute add-on'}+ </Link>+ </Button>+ </>+ }+ />)}if (currentBillingCycleSelected && highestIoBudgetConsumption >= 80) {return (- <Alert- withIcon- variant="warning"+ <Admonition+ type="warning"title="You were close to using all your IO Budget at least once"- >- <p className="mb-4">- Your workload has consumed {highestIoBudgetConsumption}% of your Disk IO budget during- this billing cycle. If you use up all your Disk IO Budget, your instance will reverted to- baseline performance. If you need consistent disk performance, consider upgrading to a- larger compute add-on.- </p>- <Button asChild type="warning">- <Link href={upgradeUrl}>{isFreePlan ? 'Upgrade project' : 'Change compute add-on'}</Link>- </Button>- </Alert>+ description={+ <>+ <p className="mb-4">+ Your workload has consumed {highestIoBudgetConsumption}% of your Disk IO budget during+ this billing cycle. If you use up all your Disk IO Budget, your instance will reverted+ to baseline performance. If you need consistent disk performance, consider upgrading+ to a larger compute add-on.+ </p>+ <Button asChild type="warning">+ <Link href={upgradeUrl}>+ {isFreePlan ? 'Upgrade project' : 'Change compute add-on'}+ </Link>+ </Button>+ </>+ }+ />)}