The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: hideable TOS link on sign in/up page (#39530)
Alaister Young2d986e5b7f78
diff --git a/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx b/apps/studio/components/layouts/SignInLayout/SignInLayout.tsxindex 0ef51bb710a..0785b981c5c 100644--- a/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx+++ b/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx@@ -30,8 +30,15 @@ const SignInLayout = ({const { resolvedTheme } = useTheme()const ongoingIncident = useFlag('ongoingIncident')- const { dashboardAuthShowTestimonial: showTestimonial, brandingLargeLogo: largeLogo } =- useIsFeatureEnabled(['dashboard_auth:show_testimonial', 'branding:large_logo'])+ const {+ dashboardAuthShowTestimonial: showTestimonial,+ brandingLargeLogo: largeLogo,+ dashboardAuthShowTos: showTos,+ } = useIsFeatureEnabled([+ 'dashboard_auth:show_testimonial',+ 'branding:large_logo',+ 'dashboard_auth:show_tos',+ ])// This useEffect redirects the user to MFA if they're already halfway signed inuseEffect(() => {@@ -126,7 +133,7 @@ const SignInLayout = ({{children}</div>- {showDisclaimer && (+ {showDisclaimer && showTos && (<div className="sm:text-center"><p className="text-xs text-foreground-lighter sm:mx-auto sm:max-w-sm">By continuing, you agree to Supabase's{' '}diff --git a/packages/common/enabled-features/enabled-features.json b/packages/common/enabled-features/enabled-features.jsonindex e5204a6f50f..5e51a564817 100644--- a/packages/common/enabled-features/enabled-features.json+++ b/packages/common/enabled-features/enabled-features.json@@ -34,6 +34,7 @@"dashboard_auth:sign_in_with_sso": true,"dashboard_auth:sign_in_with_email": true,"dashboard_auth:show_testimonial": true,+ "dashboard_auth:show_tos": true,"database:replication": true,"database:roles": true,diff --git a/packages/common/enabled-features/enabled-features.schema.json b/packages/common/enabled-features/enabled-features.schema.jsonindex 8fe3d88dbcc..37cfcfdf325 100644--- a/packages/common/enabled-features/enabled-features.schema.json+++ b/packages/common/enabled-features/enabled-features.schema.json@@ -120,6 +120,10 @@"type": "boolean","description": "Enable the testimonial on the sign in/up page"},+ "dashboard_auth:show_tos": {+ "type": "boolean",+ "description": "Enable the terms of service link on the sign in/up page"+ },"database:replication": {"type": "boolean",@@ -430,6 +434,7 @@"dashboard_auth:sign_in_with_github","dashboard_auth:sign_in_with_sso","dashboard_auth:sign_in_with_email",+ "dashboard_auth:show_tos","database:replication","database:roles","database:restore_to_new_project",