Skip to content

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

chore: add show testimonial as an enabled feature (#38651)

Alaister Young92587df2e0b5
diff --git a/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx b/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx
index 5a97ecb7b26..6c21c1bc7f4 100644
--- a/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx
+++ b/apps/studio/components/layouts/SignInLayout/SignInLayout.tsx
@@ -7,6 +7,7 @@ import { PropsWithChildren, useEffect, useState } from 'react'
import { useFlag } from 'common'
import { DocsButton } from 'components/ui/DocsButton'
+import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'
import { BASE_PATH } from 'lib/constants'
import { auth, buildPathWithParams, getAccessToken, getReturnToPath } from 'lib/gotrue'
import { tweets } from 'shared-data'
@@ -30,6 +31,8 @@ const SignInLayout = ({
const { resolvedTheme } = useTheme()
const ongoingIncident = useFlag('ongoingIncident')
+ const showTestimonial = useIsFeatureEnabled('dashboard_auth:show_testimonial')
+
// This useEffect redirects the user to MFA if they're already halfway signed in
useEffect(() => {
auth
@@ -148,7 +151,7 @@ const SignInLayout = ({
</main>
<aside className="flex-col items-center justify-center flex-1 flex-shrink hidden basis-1/4 xl:flex">
- {quote !== null && (
+ {quote !== null && showTestimonial && (
<div className="relative flex flex-col gap-6">
<div className="absolute select-none -top-12 -left-11">
<span className="text-[160px] leading-none text-foreground-muted/30">{'“'}</span>
diff --git a/packages/common/enabled-features/enabled-features.json b/packages/common/enabled-features/enabled-features.json
index 17203725ab8..440a8484327 100644
--- a/packages/common/enabled-features/enabled-features.json
+++ b/packages/common/enabled-features/enabled-features.json
@@ -28,6 +28,7 @@
"dashboard_auth:sign_in_with_github": true,
"dashboard_auth:sign_in_with_sso": true,
"dashboard_auth:sign_in_with_email": true,
+ "dashboard_auth:show_testimonial": 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.json
index 78fe597adf5..d68bad99e30 100644
--- a/packages/common/enabled-features/enabled-features.schema.json
+++ b/packages/common/enabled-features/enabled-features.schema.json
@@ -102,6 +102,10 @@
"type": "boolean",
"description": "Enable the sign in with email/password provider"
},
+ "dashboard_auth:show_testimonial": {
+ "type": "boolean",
+ "description": "Enable the testimonial on the sign in/up page"
+ },
"database:replication": {
"type": "boolean",