Skip to content

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

chore: tidy up

phamhieu00710f786d24
diff --git a/studio/components/layouts/ProjectLayout/BuildingState.tsx b/studio/components/layouts/ProjectLayout/BuildingState.tsx
index 34dc90d4eeb..8be01001081 100644
--- a/studio/components/layouts/ProjectLayout/BuildingState.tsx
+++ b/studio/components/layouts/ProjectLayout/BuildingState.tsx
@@ -23,19 +23,12 @@ const ProjectBuildingState: FC<ProjectBuildingState> = ({ project }) => {
const projectStatus = await getWithTimeout(`${API_URL}/projects/${project.ref}/status`, {
timeout: 2000,
})
-
if (projectStatus && !projectStatus.error) {
const { status } = projectStatus
if (status === PROJECT_STATUS.ACTIVE_HEALTHY) {
clearInterval(checkServerInterval.current)
- // re-fetch project detail
+ // re-fetch project detail. This will trigger UI state change to show the welcome screen
await app.projects.fetchDetail(project.ref)
-
- // const res = await get(`${API_URL}/props/project/${project.ref}/connection-string`)
- // if (res && res.connectionString) {
- // app.onProjectConnectionStringUpdated(project.id, res.connectionString)
- // }
- // app.onProjectStatusUpdated(project.id, status)
}
}
}
diff --git a/studio/stores/app/AppStore.ts b/studio/stores/app/AppStore.ts
index 03e4d6a4f0c..772e83835fe 100644
--- a/studio/stores/app/AppStore.ts
+++ b/studio/stores/app/AppStore.ts
@@ -15,7 +15,6 @@ export interface IAppStore {
onProjectCreated: (project: any) => void
onProjectUpdated: (project: any) => void
onProjectDeleted: (project: any) => void
- onProjectConnectionStringUpdated: (projectId: number, value: string) => void
onProjectStatusUpdated: (projectId: number, value: string) => void
onProjectPostgrestStatusUpdated: (projectId: number, value: 'OFFLINE' | 'ONLINE') => void
onOrgAdded: (org: any) => void
@@ -76,12 +75,6 @@ export default class AppStore implements IAppStore {
}
}
- onProjectConnectionStringUpdated(projectId: number, value: string) {
- const clone = cloneDeep(this.projects.data[projectId])
- clone.connectionString = value
- this.projects.data[projectId] = clone
- }
-
onProjectStatusUpdated(projectId: number, value: string) {
const clone = cloneDeep(this.projects.data[projectId])
clone.status = value