mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
Update all links that were pointing to settings/auth to their respective updated pages (#35281)
This commit is contained in:
1 parent
a915f3d7e7
commit
d75b7c37bb
5 files changed
+12
-16
No files matched your search
@@ -7,6 +7,7 @@ import { toast } from 'sonner'
|
||||
import * as z from 'zod'
|
||||
|
||||
import { useParams } from 'common'
|
||||
import { ScaffoldSection } from 'components/layouts/Scaffold'
|
||||
import AlertError from 'components/ui/AlertError'
|
||||
import NoPermission from 'components/ui/NoPermission'
|
||||
import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'
|
||||
@@ -14,9 +15,6 @@ import { useAuthConfigQuery } from 'data/auth/auth-config-query'
|
||||
import { useAuthConfigUpdateMutation } from 'data/auth/auth-config-update-mutation'
|
||||
import { useCheckPermissions } from 'hooks/misc/useCheckPermissions'
|
||||
import {
|
||||
AlertDescription_Shadcn_,
|
||||
AlertTitle_Shadcn_,
|
||||
Alert_Shadcn_,
|
||||
Button,
|
||||
Card,
|
||||
CardContent,
|
||||
@@ -25,14 +23,12 @@ import {
|
||||
FormField_Shadcn_,
|
||||
Form_Shadcn_,
|
||||
Input_Shadcn_,
|
||||
WarningIcon,
|
||||
Tooltip,
|
||||
TooltipContent,
|
||||
TooltipTrigger,
|
||||
} from 'ui'
|
||||
import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout'
|
||||
import { isSmtpEnabled } from '../SmtpForm/SmtpForm.utils'
|
||||
import { ScaffoldSection } from 'components/layouts/Scaffold'
|
||||
|
||||
const RateLimits = () => {
|
||||
const { ref: projectRef } = useParams()
|
||||
@@ -199,7 +195,7 @@ const RateLimits = () => {
|
||||
</p>
|
||||
<div className="mt-3">
|
||||
<Button asChild type="default" size="tiny">
|
||||
<Link href={`/project/${projectRef}/settings/auth`}>
|
||||
<Link href={`/project/${projectRef}/auth/smtp`}>
|
||||
View SMTP settings
|
||||
</Link>
|
||||
</Button>
|
||||
@@ -375,7 +371,7 @@ const RateLimits = () => {
|
||||
<p className="mt-1">Enable anonymous logins to update this rate limit</p>
|
||||
<div className="mt-3">
|
||||
<Button asChild type="default" size="tiny">
|
||||
<Link href={`/project/${projectRef}/settings/auth`}>
|
||||
<Link href={`/project/${projectRef}/auth/providers`}>
|
||||
View auth settings
|
||||
</Link>
|
||||
</Button>
|
||||
|
||||
@@ -240,7 +240,7 @@ export const lintInfoMap: LintInfo[] = [
|
||||
name: 'password_requirements_min_length',
|
||||
title: 'Minimum password length not set or inadequate',
|
||||
icon: <Ruler className="text-foreground-muted" size={15} strokeWidth={1} />,
|
||||
link: ({ projectRef }) => `/project/${projectRef}/settings/auth`,
|
||||
link: ({ projectRef }) => `/project/${projectRef}/auth/providers?provider=Email`,
|
||||
linkText: 'View settings',
|
||||
docsLink: 'https://supabase.com/docs/guides/platform/going-into-prod#security',
|
||||
category: 'security',
|
||||
@@ -258,7 +258,7 @@ export const lintInfoMap: LintInfo[] = [
|
||||
name: 'auth_leaked_password_protection',
|
||||
title: 'Leaked Password Protection Disabled',
|
||||
icon: <LockIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
|
||||
link: ({ projectRef }) => `/project/${projectRef}/settings/auth`,
|
||||
link: ({ projectRef }) => `/project/${projectRef}/auth/providers?provider=Email`,
|
||||
linkText: 'View settings',
|
||||
docsLink:
|
||||
'https://supabase.com/docs/guides/auth/password-security#password-strength-and-leaked-password-protection',
|
||||
@@ -268,7 +268,7 @@ export const lintInfoMap: LintInfo[] = [
|
||||
name: 'auth_insufficient_mfa_options',
|
||||
title: 'Insufficient MFA Options',
|
||||
icon: <LockIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
|
||||
link: ({ projectRef }) => `/project/${projectRef}/settings/auth`,
|
||||
link: ({ projectRef }) => `/project/${projectRef}/auth/mfa`,
|
||||
linkText: 'View settings',
|
||||
docsLink: 'https://supabase.com/docs/guides/auth/auth-mfa',
|
||||
category: 'security',
|
||||
@@ -277,7 +277,7 @@ export const lintInfoMap: LintInfo[] = [
|
||||
name: 'auth_password_policy_missing',
|
||||
title: 'Password Policy Missing',
|
||||
icon: <LockIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
|
||||
link: ({ projectRef }) => `/project/${projectRef}/settings/auth`,
|
||||
link: ({ projectRef }) => `/project/${projectRef}/auth/providers?provider=Email`,
|
||||
linkText: 'View settings',
|
||||
docsLink: 'https://supabase.com/docs/guides/auth/password-security',
|
||||
category: 'security',
|
||||
@@ -295,7 +295,7 @@ export const lintInfoMap: LintInfo[] = [
|
||||
name: 'no_backup_admin',
|
||||
title: 'No Backup Admin Detected',
|
||||
icon: <LockIcon className="text-foreground-muted" size={15} strokeWidth={1} />,
|
||||
link: ({ projectRef }) => `/project/${projectRef}/settings/auth`,
|
||||
link: ({ projectRef }) => `/project/${projectRef}/auth/mfa`,
|
||||
linkText: 'View settings',
|
||||
docsLink: 'https://supabase.com/docs/guides/auth/auth-mfa',
|
||||
category: 'security',
|
||||
|
||||
@@ -25,7 +25,7 @@ export function useProjectSettingsGotoCommands(options?: CommandOptions) {
|
||||
{
|
||||
id: 'nav-project-settings-auth',
|
||||
name: 'Auth Settings',
|
||||
route: `/project/${ref}/settings/auth`,
|
||||
route: `/project/${ref}/auth/providers`,
|
||||
defaultHidden: true,
|
||||
},
|
||||
{
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
interface ResourceWarningMessage {
|
||||
// should match pathnames, ex: ('/', 'project/[ref]/auth', 'project/[ref]/database', '/project/[ref]/settings/auth')
|
||||
// should match pathnames, ex: ('/', 'project/[ref]/auth', 'project/[ref]/database', '/project/[ref]/settings/api')
|
||||
restrictToRoutes?: string[]
|
||||
|
||||
bannerContent: {
|
||||
|
||||
+2
-2
@@ -73,8 +73,8 @@ export const ResourceExhaustionWarningBanner = () => {
|
||||
null: '/project/[ref]/settings/[infra-path]',
|
||||
disk_space: '/project/[ref]/settings/compute-and-disk',
|
||||
read_only: '/project/[ref]/settings/compute-and-disk',
|
||||
auth_email_rate_limit: '/project/[ref]/settings/auth',
|
||||
auth_restricted_email_sending: '/project/[ref]/settings/auth',
|
||||
auth_email_rate_limit: '/project/[ref]/auth/rate-limits',
|
||||
auth_restricted_email_sending: '/project/[ref]/auth/smtp',
|
||||
default: (metric: string) => `/project/[ref]/settings/[infra-path]#${metric}`,
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user