The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(studio): hide observability from sidebar for self-hosted (#43862)
Jordi Enric3b010f146f39
diff --git a/apps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsx b/apps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsxindex 4885b327494..fb1c5140345 100644--- a/apps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsx+++ b/apps/studio/components/interfaces/App/CommandMenu/CreateCommands.tsx@@ -363,17 +363,20 @@ export function useCreateCommands(options?: CommandOptions) {.filter(Boolean) as ICommand[]}, [ref, allIntegrations, installedIntegrationIds])+ // Observability commands are only available on the platform, not for self-hosted/CLIconst observabilityCommands = useMemo(() => [- ...(IS_PLATFORM && reportsEnabled- ? ([- {- id: 'create-observability-report',- name: 'Create Custom Report',- route: `/project/${ref}/observability/api-overview?newReport=true`,- icon: () => <Telescope />,- },- ].filter(Boolean) as ICommand[])+ ...(IS_PLATFORM+ ? reportsEnabled+ ? ([+ {+ id: 'create-observability-report',+ name: 'Create Custom Report',+ route: `/project/${ref}/observability/api-overview?newReport=true`,+ icon: () => <Telescope />,+ },+ ].filter(Boolean) as ICommand[])+ : []: []),],[ref, reportsEnabled]diff --git a/apps/studio/components/layouts/Navigation/NavigationBar/NavigationBar.utils.tsx b/apps/studio/components/layouts/Navigation/NavigationBar/NavigationBar.utils.tsxindex 0bab5712ebf..92d2d101457 100644--- a/apps/studio/components/layouts/Navigation/NavigationBar/NavigationBar.utils.tsx+++ b/apps/studio/components/layouts/Navigation/NavigationBar/NavigationBar.utils.tsx@@ -141,16 +141,19 @@ export const generateOtherRoutes = (icon: <Lightbulb size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/advisors/security`),},- ...(IS_PLATFORM && reportsEnabled- ? [- {- key: 'observability',- label: 'Observability',- disabled: !isProjectActive,- icon: <Telescope size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,- link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/observability`),- },- ]+ // Observability is only available on the platform, not for self-hosted/CLI+ ...(IS_PLATFORM+ ? reportsEnabled+ ? [+ {+ key: 'observability',+ label: 'Observability',+ disabled: !isProjectActive,+ icon: <Telescope size={ICON_SIZE} strokeWidth={ICON_STROKE_WIDTH} />,+ link: ref && (isProjectBuilding ? buildingUrl : `/project/${ref}/observability`),+ },+ ]+ : []: []),{key: 'logs',