The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: have an update for when a post upgrade backup is in progress (#27591)
angelicod47de9d0b9cc
diff --git a/apps/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx b/apps/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsxindex f9bef79540d..616112f4153 100644--- a/apps/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx+++ b/apps/studio/components/layouts/ProjectLayout/UpgradingState/UpgradingState.tsx@@ -1,5 +1,5 @@import * as Tooltip from '@radix-ui/react-tooltip'-import { DatabaseUpgradeStatus } from '@supabase/shared-types/out/events'+import { DatabaseUpgradeProgress, DatabaseUpgradeStatus } from '@supabase/shared-types/out/events'import dayjs from 'dayjs'import Link from 'next/link'import { useState } from 'react'@@ -46,6 +46,10 @@ const UpgradingState = () => {const isFailed = status === DatabaseUpgradeStatus.Failedconst isCompleted = status === DatabaseUpgradeStatus.Upgraded+ const isPerformingFullPhysicalBackup =+ status === DatabaseUpgradeStatus.Upgrading &&+ progress === DatabaseUpgradeProgress.CompletedUpgrade+const initiatedAtUTC = dayjs.utc(initiated_at ?? 0).format('DD MMM YYYY HH:mm:ss')const initiatedAt = dayjs.utc(initiated_at ?? 0)@@ -123,11 +127,26 @@ const UpgradingState = () => {<IconCircle className="text-foreground-lighter" size={50} strokeWidth={1.5} /></div><div className="space-y-2">- <p className="text-center">Upgrading in progress</p>- <p className="text-sm text-center text-foreground-light">- Upgrades can take from a few minutes up to several hours depending on the size- of your database. Your project will be offline while it is being upgraded.- </p>+ {isPerformingFullPhysicalBackup ? (+ <div>+ <p className="text-center">Performing a full backup</p>+ <p className="text-sm text-center text-foreground-light">+ Upgrade is now complete, and your project is online. A full backup is now+ being performed to ensure that there is a proper base backup available+ post-upgrade. This can take from a few minutes up to several hours depending+ on the size of your database.+ </p>+ </div>+ ) : (+ <div>+ <p className="text-center">Upgrading in progress</p>+ <p className="text-sm text-center text-foreground-light">+ Upgrades can take from a few minutes up to several hours depending on the+ size of your database. Your project will be offline while it is being+ upgraded.+ </p>+ </div>+ )}<divclassName="!mt-4 !mb-2 py-3 px-4 transition-all overflow-hidden border rounded relative"