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

This commit is contained in:
Alaister Young
2025-09-12 07:56:24 +02:00
committed by GitHub
parent 229f5560a6
commit 92587df2e0
3 changed files with 9 additions and 1 deletions

View File

@@ -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>

View File

@@ -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,

View File

@@ -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",