The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(enabled-features): auth providers settings link (#39138)
Alaister Young4dcf78342e1c
diff --git a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsxindex 7ab7becd756..52123de65e1 100644--- a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx+++ b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsLayout.tsx@@ -35,6 +35,7 @@ const SettingsLayout = ({ title, children }: PropsWithChildren<SettingsLayoutProconst {projectAuthAll: authEnabled,+ authenticationShowProviders: authProvidersEnabled,projectEdgeFunctionAll: edgeFunctionsEnabled,projectStorageAll: storageEnabled,billingInvoices: invoicesEnabled,@@ -43,6 +44,7 @@ const SettingsLayout = ({ title, children }: PropsWithChildren<SettingsLayoutProbillingAll,} = useIsFeatureEnabled(['project_auth:all',+ 'authentication:show_providers','project_edge_function:all','project_storage:all','billing:invoices',@@ -53,6 +55,7 @@ const SettingsLayout = ({ title, children }: PropsWithChildren<SettingsLayoutProconst menuRoutes = generateSettingsMenu(ref, project, organization, {auth: authEnabled,+ authProviders: authProvidersEnabled,edgeFunctions: edgeFunctionsEnabled,storage: storageEnabled,invoices: invoicesEnabled,diff --git a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsx b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsxindex 3ec68b9cc24..75a37bd46e2 100644--- a/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsx+++ b/apps/studio/components/layouts/ProjectSettingsLayout/SettingsMenu.utils.tsx@@ -11,6 +11,7 @@ export const generateSettingsMenu = (organization?: Organization,features?: {auth?: boolean+ authProviders?: booleanedgeFunctions?: booleanstorage?: booleaninvoices?: boolean@@ -23,6 +24,7 @@ export const generateSettingsMenu = (const buildingUrl = `/project/${ref}`const authEnabled = features?.auth ?? true+ const authProvidersEnabled = features?.authProviders ?? trueconst edgeFunctionsEnabled = features?.edgeFunctions ?? trueconst storageEnabled = features?.storage ?? trueconst legacyJwtKeysEnabled = features?.legacyJwtKeys ?? true@@ -128,7 +130,9 @@ export const generateSettingsMenu = ({name: 'Authentication',key: 'auth',- url: `/project/${ref}/auth/providers`,+ url: authProvidersEnabled+ ? `/project/${ref}/auth/providers`+ : `/project/${ref}/auth/policies`,items: [],rightIcon: <ArrowUpRight strokeWidth={1} className="h-4 w-4" />,},