Skip to content

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

Service Status: fix status checks (#33125)

Jordi Enrice59f2794f28d
diff --git a/apps/studio/components/interfaces/Home/ServiceStatus.tsx b/apps/studio/components/interfaces/Home/ServiceStatus.tsx
index 2c189366dfd..cf8bcd01695 100644
--- a/apps/studio/components/interfaces/Home/ServiceStatus.tsx
+++ b/apps/studio/components/interfaces/Home/ServiceStatus.tsx
@@ -35,11 +35,11 @@ const StatusMessage = ({
status?: ProjectServiceStatus
}) => {
if (isLoading) return 'Checking status'
- if (isProjectNew) return 'Coming up...'
- if (isSuccess) return 'No issues'
if (status === 'UNHEALTHY') return 'Unhealthy'
if (status === 'COMING_UP') return 'Coming up...'
if (status === 'ACTIVE_HEALTHY') return 'Healthy'
+ if (isProjectNew) return 'Coming up...'
+ if (isSuccess) return 'No issues'
return 'Unable to connect'
}
@@ -62,10 +62,12 @@ const StatusIcon = ({
isProjectNew: boolean
projectStatus?: ProjectServiceStatus
}) => {
- if (isLoading || isProjectNew) return <LoaderIcon />
- if (isSuccess) return <CheckIcon />
+ if (isLoading) return <LoaderIcon />
if (projectStatus === 'UNHEALTHY') return <AlertIcon />
if (projectStatus === 'COMING_UP') return <LoaderIcon />
+ if (projectStatus === 'ACTIVE_HEALTHY') return <CheckIcon />
+ if (isProjectNew) return <LoaderIcon />
+ if (isSuccess) return <CheckIcon />
return <AlertIcon />
}