The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(auth): remove banner from email notification templates (#44887)
fadymakfd427bbe092d
diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsxindex 9ce0fa83604..8b275aecab4 100644--- a/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx@@ -1,13 +1,12 @@import { zodResolver } from '@hookform/resolvers/zod'import { PermissionAction } from '@supabase/shared-types/out/constants'-import { LOCAL_STORAGE_KEYS, useParams } from 'common'-import { ChevronRight, ExternalLink, X } from 'lucide-react'+import { useParams } from 'common'+import { ChevronRight } from 'lucide-react'import Link from 'next/link'import { useEffect } from 'react'import { useForm } from 'react-hook-form'import { toast } from 'sonner'import {- Badge,Button,Card,CardContent,@@ -16,9 +15,6 @@ import {FormControl_Shadcn_,FormField_Shadcn_,Switch,- Tooltip,- TooltipContent,- TooltipTrigger,} from 'ui'import { Admonition } from 'ui-patterns/admonition'import {@@ -38,7 +34,6 @@ import { InlineLink } from '@/components/ui/InlineLink'import { useAuthConfigQuery } from '@/data/auth/auth-config-query'import { useAuthConfigUpdateMutation } from '@/data/auth/auth-config-update-mutation'import { useAsyncCheckPermissions } from '@/hooks/misc/useCheckPermissions'-import { useLocalStorageQuery } from '@/hooks/misc/useLocalStorage'import { DOCS_URL } from '@/lib/constants'const notificationEnabledKeys = TEMPLATES_SCHEMAS.filter(@@ -64,11 +59,6 @@ export const EmailTemplates = () => {'custom_config_gotrue')- const [acknowledged, setAcknowledged] = useLocalStorageQuery(- LOCAL_STORAGE_KEYS.SECURITY_NOTIFICATIONS_ACKNOWLEDGED(projectRef ?? ''),- false- )-const {data: authConfig,error: authConfigError,@@ -202,51 +192,6 @@ export const EmailTemplates = () => {</PageSectionSummary></PageSectionMeta><PageSectionContent>- {!acknowledged && (- <Admonition showIcon={false} type="tip" className="relative mb-6">- <Tooltip>- <TooltipTrigger- onClick={() => setAcknowledged(true)}- className="absolute top-3 right-3 opacity-30 hover:opacity-100 transition-opacity"- >- <X size={14} className="text-foreground-light" />- </TooltipTrigger>- <TooltipContent side="bottom">Dismiss</TooltipContent>- </Tooltip>- <div className="flex flex-col md:flex-row md:items-center gap-y-2 md:gap-x-8 justify-between px-2 py-1">- <div className="flex flex-col gap-y-0.5">- <div className="flex flex-col gap-y-2 items-start">- <Badge variant="success" className="-ml-0.5 uppercase">- New- </Badge>- <p className="text-sm font-medium">- Notify users about security-sensitive actions on their accounts- </p>- </div>- <p className="text-sm text-foreground-lighter text-balance">- We’ve expanded our email templates to handle security-sensitive actions. The- list of templates will continue to grow as our feature-set changes, and as- we{' '}- <InlineLink href="https://github.com/orgs/supabase/discussions/40349">- gather feedback- </InlineLink>{' '}- from our community .- </p>- </div>- <Button- asChild- type="default"- icon={<ExternalLink strokeWidth={1.5} />}- className="mt-2"- >- <Link href={`${DOCS_URL}/guides/auth/auth-email-templates`} target="_blank">- Docs- </Link>- </Button>- </div>- </Admonition>- )}-<Form_Shadcn_ {...notificationsForm}><form onSubmit={notificationsForm.handleSubmit(onSubmit)} className="space-y-4"><Card>diff --git a/packages/common/constants/local-storage.ts b/packages/common/constants/local-storage.tsindex dc64600f289..695933ded31 100644--- a/packages/common/constants/local-storage.ts+++ b/packages/common/constants/local-storage.ts@@ -50,10 +50,6 @@ export const LOCAL_STORAGE_KEYS = {SQL_EDITOR_SECTION_STATE: (ref: string) => `sql-editor-section-state-${ref}`,SQL_EDITOR_SORT: (ref: string) => `sql-editor-sort-${ref}`,- // Key to track if the user has acknowledged the security notifications preview- SECURITY_NOTIFICATIONS_ACKNOWLEDGED: (ref: string) =>- `security-notifications-acknowledged-${ref}`,-LOG_EXPLORER_SPLIT_SIZE: 'supabase_log-explorer-split-size',GRAPHIQL_RLS_BYPASS_WARNING: 'graphiql-rls-bypass-warning-dismissed',CLS_DIFF_WARNING: 'cls-diff-warning-dismissed',