The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Show ConnectingState for a project that's in restoring state
Joshen Lim8725ea05d6df
diff --git a/studio/components/layouts/ProjectLayout/ProjectLayout.tsx b/studio/components/layouts/ProjectLayout/ProjectLayout.tsxindex 1eba9da18cb..eea659ba41e 100644--- a/studio/components/layouts/ProjectLayout/ProjectLayout.tsx+++ b/studio/components/layouts/ProjectLayout/ProjectLayout.tsx@@ -94,9 +94,7 @@ const ContentWrapper: FC<ContentWrapperProps> = observer(({ isLoading, childrenconst { ui } = useStore()const router = useRouter()const requiresDbConnection: boolean = router.pathname !== '/project/[ref]/settings/general'- const isProjectBuilding = [PROJECT_STATUS.COMING_UP, PROJECT_STATUS.RESTORING].includes(- ui.selectedProject?.status ?? ''- )+ const isProjectBuilding = [PROJECT_STATUS.COMING_UP].includes(ui.selectedProject?.status ?? '')const isProjectOffline = ui.selectedProject?.postgrestStatus === 'OFFLINE'return (diff --git a/studio/stores/app/ProjectStore.ts b/studio/stores/app/ProjectStore.tsindex bd0a9af0f1d..cac07cfe6f8 100644--- a/studio/stores/app/ProjectStore.ts+++ b/studio/stores/app/ProjectStore.ts@@ -27,10 +27,12 @@ export default class ProjectStore extends PostgresMetaInterface<Project> {const url = `${this.url}/${projectRef}`const headers = constructHeaders(this.headers)const response = await get(url, { headers })+if (!response.error) {const project = response as Projectif (- project.status === PROJECT_STATUS.ACTIVE_HEALTHY &&+ (project.status === PROJECT_STATUS.ACTIVE_HEALTHY ||+ project.status === PROJECT_STATUS.RESTORING) &&project.restUrl &&project.internalApiKey) {