The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Clean up security notifications feature flag (#40860)
Joshen Lim5cddb432ba7b
diff --git a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreview.constants.tsx b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreview.constants.tsxindex 613710619da..57fecd53176 100644--- a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreview.constants.tsx+++ b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreview.constants.tsx@@ -1,13 +1,6 @@import { LOCAL_STORAGE_KEYS } from 'common'export const FEATURE_PREVIEWS = [- {- key: LOCAL_STORAGE_KEYS.UI_PREVIEW_SECURITY_NOTIFICATIONS,- name: 'Security notification emails',- discussionsUrl: 'https://github.com/orgs/supabase/discussions/40349',- isNew: true,- isPlatformOnly: true,- },{key: LOCAL_STORAGE_KEYS.UI_PREVIEW_UNIFIED_LOGS,name: 'New Logs interface',diff --git a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewContext.tsx b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewContext.tsxindex a127772766f..07d10d00be2 100644--- a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewContext.tsx+++ b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewContext.tsx@@ -28,13 +28,10 @@ export const useFeaturePreviewContext = () => useContext(FeaturePreviewContext)export const FeaturePreviewContextProvider = ({ children }: PropsWithChildren<{}>) => {const { hasLoaded } = useContext(FeatureFlagContext)- const securityNotificationsFlag = useFlag('securityNotifications')// [Joshen] Similar logic to feature flagging previews, we can use flags to default opt in previewsconst isDefaultOptIn = (feature: (typeof FEATURE_PREVIEWS)[number]) => {switch (feature.key) {- case LOCAL_STORAGE_KEYS.UI_PREVIEW_SECURITY_NOTIFICATIONS:- return securityNotificationsFlagdefault:return false}@@ -108,11 +105,6 @@ export const useIsAdvisorRulesEnabled = () => {return flags[LOCAL_STORAGE_KEYS.UI_PREVIEW_ADVISOR_RULES]}-export const useIsSecurityNotificationsEnabled = () => {- const { flags } = useFeaturePreviewContext()- return flags[LOCAL_STORAGE_KEYS.UI_PREVIEW_SECURITY_NOTIFICATIONS]-}-export const useFeaturePreviewModal = () => {const [featurePreviewModal, setFeaturePreviewModal] = useQueryState('featurePreviewModal')diff --git a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsxindex 42fee9c5e3e..e419f197d8d 100644--- a/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx+++ b/apps/studio/components/interfaces/App/FeaturePreview/FeaturePreviewModal.tsx@@ -13,7 +13,6 @@ import { Branching2Preview } from './Branching2Preview'import { CLSPreview } from './CLSPreview'import { FEATURE_PREVIEWS } from './FeaturePreview.constants'import { useFeaturePreviewContext, useFeaturePreviewModal } from './FeaturePreviewContext'-import { SecurityNotificationsPreview } from './SecurityNotificationsPreview'import { UnifiedLogsPreview } from './UnifiedLogsPreview'const FEATURE_PREVIEW_KEY_TO_CONTENT: {@@ -24,7 +23,6 @@ const FEATURE_PREVIEW_KEY_TO_CONTENT: {[LOCAL_STORAGE_KEYS.UI_PREVIEW_API_SIDE_PANEL]: <APISidePanelPreview />,[LOCAL_STORAGE_KEYS.UI_PREVIEW_CLS]: <CLSPreview />,[LOCAL_STORAGE_KEYS.UI_PREVIEW_UNIFIED_LOGS]: <UnifiedLogsPreview />,- [LOCAL_STORAGE_KEYS.UI_PREVIEW_SECURITY_NOTIFICATIONS]: <SecurityNotificationsPreview />,}const FeaturePreviewModal = () => {diff --git a/apps/studio/components/interfaces/App/FeaturePreview/SecurityNotificationsPreview.tsx b/apps/studio/components/interfaces/App/FeaturePreview/SecurityNotificationsPreview.tsxdeleted file mode 100644index 92254271ac7..00000000000--- a/apps/studio/components/interfaces/App/FeaturePreview/SecurityNotificationsPreview.tsx+++ /dev/null@@ -1,39 +0,0 @@-import Image from 'next/image'--import { useParams } from 'common'-import { InlineLink } from 'components/ui/InlineLink'-import { BASE_PATH } from 'lib/constants'--export const SecurityNotificationsPreview = () => {- const { ref } = useParams()-- return (- <div className="text-sm text-foreground-light">- <Image- alt="Security notifications preview"- src={`${BASE_PATH}/img/previews/security-notifications-preview.png`}- width={1296}- height={900}- className="rounded border mb-4"- />- <div className="space-y-2 !mt-4">- <p className=" mb-4">- Try out our expanded set of{' '}- <InlineLink href={`/project/${ref ?? '_'}/auth/templates`}>email templates</InlineLink>{' '}- with support for security-related notifications.- </p>- <p className="text-foreground">Enabling this preview will:</p>- <ul className="list-disc pl-6 space-y-1">- <li>Add a dedicated sidebar section for contact methods like email and SMS</li>- <li>Add new email templates for security-related notifications</li>- <li>Move each (existing and new) template into its own dynamic route</li>- </ul>- <p>- These changes are necessary to support incoming security-related notification templates.- Given that the list of our email templates is doubling in size, this change requires some- wider interface changes. Ones that we think make for a clearer experience overall.- </p>- </div>- </div>- )-}diff --git a/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx b/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsxindex bc91aea9a9a..7b2d9a72203 100644--- a/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx+++ b/apps/studio/components/interfaces/Auth/EmailTemplates/EmailTemplates.tsx@@ -8,8 +8,6 @@ import { toast } from 'sonner'import { z } from 'zod'import { LOCAL_STORAGE_KEYS, useParams } from 'common'-import { FEATURE_PREVIEWS } from 'components/interfaces/App/FeaturePreview/FeaturePreview.constants'-import { useIsSecurityNotificationsEnabled } from 'components/interfaces/App/FeaturePreview/FeaturePreviewContext'import AlertError from 'components/ui/AlertError'import { InlineLink } from 'components/ui/InlineLink'import { GenericSkeletonLoader } from 'components/ui/ShimmeringLoader'@@ -28,10 +26,6 @@ import {FormControl_Shadcn_,FormField_Shadcn_,Switch,- Tabs_Shadcn_,- TabsContent_Shadcn_,- TabsList_Shadcn_,- TabsTrigger_Shadcn_,Tooltip,TooltipContent,TooltipTrigger,@@ -47,7 +41,6 @@ import {import { TEMPLATES_SCHEMAS } from '../AuthTemplatesValidation'import { EmailRateLimitsAlert } from '../EmailRateLimitsAlert'import { slugifyTitle } from './EmailTemplates.utils'-import { TemplateEditor } from './TemplateEditor'const notificationEnabledKeys = TEMPLATES_SCHEMAS.filter((t) => t.misc?.emailTemplateType === 'security'@@ -65,13 +58,8 @@ const NotificationsFormSchema = z.object({),})-const SECURITY_NOTIFICATIONS_DISCUSSIONS_URL = FEATURE_PREVIEWS.find(- (f) => f.key === LOCAL_STORAGE_KEYS.UI_PREVIEW_SECURITY_NOTIFICATIONS-)?.discussionsUrl-export const EmailTemplates = () => {const { ref: projectRef } = useParams()- const isSecurityNotificationsEnabled = useIsSecurityNotificationsEnabled()const { can: canUpdateConfig } = useAsyncCheckPermissions(PermissionAction.UPDATE,'custom_config_gotrue'@@ -153,225 +141,176 @@ export const EmailTemplates = () => {)}{isSuccess && (<>- {builtInSMTP ? (+ {builtInSMTP && (<div className="mt-12"><EmailRateLimitsAlert /></div>- ) : null}- {isSecurityNotificationsEnabled ? (- <>- <PageSection className="!pt-0">- <PageSectionMeta>- <PageSectionSummary>- <PageSectionTitle>Authentication</PageSectionTitle>- </PageSectionSummary>- </PageSectionMeta>- <PageSectionContent>+ )}+ <PageSection className="!pt-0">+ <PageSectionMeta>+ <PageSectionSummary>+ <PageSectionTitle>Authentication</PageSectionTitle>+ </PageSectionSummary>+ </PageSectionMeta>+ <PageSectionContent>+ <Card>+ {TEMPLATES_SCHEMAS.filter(+ (t) => t.misc?.emailTemplateType === 'authentication'+ ).map((template) => {+ const templateSlug = slugifyTitle(template.title)++ return (+ <CardContent key={`${template.id}`} className="p-0">+ <Link+ href={`/project/${projectRef}/auth/templates/${templateSlug}`}+ className="flex items-center justify-between hover:bg-surface-200 transition-colors py-4 px-6 w-full h-full"+ >+ <div className="flex flex-col">+ <h3 className="text-sm text-foreground">{template.title}</h3>+ {template.purpose && (+ <p className="text-sm text-foreground-lighter">{template.purpose}</p>+ )}+ </div>++ <div className="flex items-center gap-4">+ <ChevronRight size={16} className="text-foreground-muted" />+ </div>+ </Link>+ </CardContent>+ )+ })}+ </Card>+ </PageSectionContent>+ </PageSection>++ <PageSection>+ <PageSectionMeta>+ <PageSectionSummary>+ <PageSectionTitle>Security</PageSectionTitle>+ </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>- {TEMPLATES_SCHEMAS.filter(- (t) => t.misc?.emailTemplateType === 'authentication'- ).map((template) => {- const templateSlug = slugifyTitle(template.title)+ {TEMPLATES_SCHEMAS.filter((t) => t.misc?.emailTemplateType === 'security').map(+ (template) => {+ const templateSlug = slugifyTitle(template.title)+ const templateEnabledKey =+ `MAILER_NOTIFICATIONS_${template.id?.replace('_NOTIFICATION', '')}_ENABLED` as keyof typeof authConfig- return (- <CardContent key={`${template.id}`} className="p-0">- <Link- href={`/project/${projectRef}/auth/templates/${templateSlug}`}- className="flex items-center justify-between hover:bg-surface-200 transition-colors py-4 px-6 w-full h-full"+ return (+ <CardContent+ key={`${template.id}`}+ className="p-0 flex items-center justify-between hover:bg-surface-200 transition-colors w-full h-full">- <div className="flex flex-col">+ <Link+ href={`/project/${projectRef}/auth/templates/${templateSlug}`}+ className="flex flex-col flex-1 py-4 px-6"+ ><h3 className="text-sm text-foreground">{template.title}</h3>{template.purpose && (<p className="text-sm text-foreground-lighter">{template.purpose}</p>)}- </div>+ </Link>- <div className="flex items-center gap-4">- <ChevronRight size={16} className="text-foreground-muted" />- </div>- </Link>- </CardContent>- )- })}- </Card>- </PageSectionContent>- </PageSection>-- <PageSection>- <PageSectionMeta>- <PageSectionSummary>- <PageSectionTitle>Security</PageSectionTitle>- </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- {SECURITY_NOTIFICATIONS_DISCUSSIONS_URL && (- <>- {' '}- and as we{' '}- <InlineLink- href={SECURITY_NOTIFICATIONS_DISCUSSIONS_URL}- target="_blank"- >- 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>- {TEMPLATES_SCHEMAS.filter(- (t) => t.misc?.emailTemplateType === 'security'- ).map((template) => {- const templateSlug = slugifyTitle(template.title)- const templateEnabledKey =- `MAILER_NOTIFICATIONS_${template.id?.replace('_NOTIFICATION', '')}_ENABLED` as keyof typeof authConfig+ <div className="flex items-center gap-4 h-full pl-2 relative">+ <FormField_Shadcn_+ control={notificationsForm.control}+ name={templateEnabledKey}+ render={({ field }) => (+ <FormControl_Shadcn_>+ <Switch+ checked={field.value}+ onCheckedChange={field.onChange}+ disabled={!canUpdateConfig}+ />+ </FormControl_Shadcn_>+ )}+ />- return (- <CardContent- key={`${template.id}`}- className="p-0 flex items-center justify-between hover:bg-surface-200 transition-colors w-full h-full"- ><Linkhref={`/project/${projectRef}/auth/templates/${templateSlug}`}- className="flex flex-col flex-1 py-4 px-6"+ className="py-6 pr-6">- <h3 className="text-sm text-foreground">{template.title}</h3>- {template.purpose && (- <p className="text-sm text-foreground-lighter">- {template.purpose}- </p>- )}+ <ChevronRight size={16} className="text-foreground-muted" /></Link>-- <div className="flex items-center gap-4 h-full pl-2 relative">- <FormField_Shadcn_- control={notificationsForm.control}- name={templateEnabledKey}- render={({ field }) => (- <FormControl_Shadcn_>- <Switch- checked={field.value}- onCheckedChange={field.onChange}- disabled={!canUpdateConfig}- />- </FormControl_Shadcn_>- )}- />-- <Link- href={`/project/${projectRef}/auth/templates/${templateSlug}`}- className="py-6 pr-6"- >- <ChevronRight size={16} className="text-foreground-muted" />- </Link>- </div>- </CardContent>- )- })}- <CardFooter className="justify-end space-x-2">- {notificationsForm.formState.isDirty && (- <Button type="default" onClick={() => notificationsForm.reset()}>- Cancel- </Button>- )}- <Button- type="primary"- htmlType="submit"- disabled={- !canUpdateConfig ||- isUpdatingConfig ||- !notificationsForm.formState.isDirty- }- loading={isUpdatingConfig}- >- Save changes- </Button>- </CardFooter>- </Card>- </form>- </Form_Shadcn_>- </PageSectionContent>- </PageSection>- </>- ) : (- <PageSection className="!pt-0">- <PageSectionContent>- <Card className="mt-12">- <Tabs_Shadcn_ defaultValue={slugifyTitle(TEMPLATES_SCHEMAS[0].title)}>- <TabsList_Shadcn_ className="pt-2 px-6 gap-5 mb-0 overflow-x-scroll no-scrollbar mb-4">- {TEMPLATES_SCHEMAS.filter(- (t) => t.misc?.emailTemplateType === 'authentication'- ).map((template) => (- <TabsTrigger_Shadcn_- key={`${template.id}`}- value={slugifyTitle(template.title)}- >- {template.title}- </TabsTrigger_Shadcn_>- ))}- </TabsList_Shadcn_>- {TEMPLATES_SCHEMAS.filter(- (t) => t.misc?.emailTemplateType === 'authentication'- ).map((template) => {- const panelId = slugifyTitle(template.title)- return (- <TabsContent_Shadcn_ key={panelId} value={panelId} className="mt-0">- <TemplateEditor key={template.title} template={template} />- </TabsContent_Shadcn_>- )- })}- </Tabs_Shadcn_>- </Card>- </PageSectionContent>- </PageSection>- )}+ </div>+ </CardContent>+ )+ }+ )}+ <CardFooter className="justify-end space-x-2">+ {notificationsForm.formState.isDirty && (+ <Button type="default" onClick={() => notificationsForm.reset()}>+ Cancel+ </Button>+ )}+ <Button+ type="primary"+ htmlType="submit"+ disabled={+ !canUpdateConfig ||+ isUpdatingConfig ||+ !notificationsForm.formState.isDirty+ }+ loading={isUpdatingConfig}+ >+ Save changes+ </Button>+ </CardFooter>+ </Card>+ </form>+ </Form_Shadcn_>+ </PageSectionContent>+ </PageSection></>)}</>diff --git a/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx b/apps/studio/components/layouts/AuthLayout/AuthLayout.tsxindex 32817eda82f..6e2d27b96a8 100644--- a/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx+++ b/apps/studio/components/layouts/AuthLayout/AuthLayout.tsx@@ -2,7 +2,6 @@ import { useRouter } from 'next/router'import { PropsWithChildren } from 'react'import { useFlag, useParams } from 'common'-import { useIsSecurityNotificationsEnabled } from 'components/interfaces/App/FeaturePreview/FeaturePreviewContext'import { ProductMenu } from 'components/ui/ProductMenu'import { useAuthConfigPrefetch } from 'data/auth/auth-config-query'import { useIsFeatureEnabled } from 'hooks/misc/useIsFeatureEnabled'@@ -16,7 +15,6 @@ const AuthProductMenu = () => {const authenticationShowOverview = useFlag('authOverviewPage')const authenticationOauth21 = useFlag('EnableOAuth21')- const authenticationShowSecurityNotifications = useIsSecurityNotificationsEnabled()const {authenticationSignInProviders,@@ -48,7 +46,6 @@ const AuthProductMenu = () => {authenticationAttackProtection,authenticationAdvanced,authenticationShowOverview,- authenticationShowSecurityNotifications,authenticationOauth21,})}/>diff --git a/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts b/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.tsindex 8146b52d40b..e321dee53b3 100644--- a/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts+++ b/apps/studio/components/layouts/AuthLayout/AuthLayout.utils.ts@@ -11,7 +11,6 @@ export const generateAuthMenu = (authenticationAttackProtection: booleanauthenticationAdvanced: booleanauthenticationShowOverview: boolean- authenticationShowSecurityNotifications: booleanauthenticationOauth21: boolean}): ProductMenuGroup[] => {@@ -23,7 +22,6 @@ export const generateAuthMenu = (authenticationAttackProtection,authenticationAdvanced,authenticationShowOverview,- authenticationShowSecurityNotifications,authenticationOauth21,} = flags ?? {}@@ -47,7 +45,7 @@ export const generateAuthMenu = (: []),],},- ...(authenticationEmails && authenticationShowSecurityNotifications && IS_PLATFORM+ ...(authenticationEmails && IS_PLATFORM? [{title: 'Notifications',@@ -115,17 +113,6 @@ export const generateAuthMenu = (},]: []),- ...(authenticationEmails && !authenticationShowSecurityNotifications- ? [- {- name: 'Emails',- key: 'emails',- pages: ['templates', 'smtp'],- url: `/project/${ref}/auth/templates`,- items: [],- },- ]- : []),...(authenticationMultiFactor? [{diff --git a/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsx b/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsxindex 9ff95a3a5f9..de2cfb1d8ce 100644--- a/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsx+++ b/apps/studio/pages/project/[ref]/auth/templates/[templateId].tsx@@ -8,7 +8,6 @@ import { toast } from 'sonner'import { z } from 'zod'import { useParams } from 'common'-import { useIsSecurityNotificationsEnabled } from 'components/interfaces/App/FeaturePreview/FeaturePreviewContext'import { TEMPLATES_SCHEMAS } from 'components/interfaces/Auth/AuthTemplatesValidation'import { slugifyTitle } from 'components/interfaces/Auth/EmailTemplates/EmailTemplates.utils'import { TemplateEditor } from 'components/interfaces/Auth/EmailTemplates/TemplateEditor'@@ -66,7 +65,6 @@ const RedirectToTemplates = () => {const router = useRouter()const { templateId, ref } = router.queryconst { ref: projectRef } = useParams()- const isSecurityNotificationsEnabled = useIsSecurityNotificationsEnabled()const { can: canReadAuthSettings, isSuccess: isPermissionsLoaded } = useAsyncCheckPermissions(PermissionAction.READ,@@ -134,12 +132,6 @@ const RedirectToTemplates = () => {updateAuthConfig({ projectRef: projectRef, config: { ...values } })}- useEffect(() => {- if (isPermissionsLoaded && !isSecurityNotificationsEnabled) {- router.replace(`/project/${ref}/auth/templates/`)- }- }, [isPermissionsLoaded, isSecurityNotificationsEnabled, ref, router])-useEffect(() => {if (authConfig && templateEnabledKey) {templateForm.reset({@@ -153,7 +145,7 @@ const RedirectToTemplates = () => {return <NoPermission isFullPage resourceText="access your project's email settings" />}- if (!isSecurityNotificationsEnabled || !templateId) {+ if (!templateId) {return null}diff --git a/packages/common/constants/local-storage.ts b/packages/common/constants/local-storage.tsindex efd8c929341..81f071f6a07 100644--- a/packages/common/constants/local-storage.ts+++ b/packages/common/constants/local-storage.ts@@ -17,7 +17,6 @@ export const LOCAL_STORAGE_KEYS = {UI_ONBOARDING_NEW_PAGE_SHOWN: 'supabase-ui-onboarding-new-page-shown',UI_PREVIEW_BRANCHING_2_0: 'supabase-ui-branching-2-0',UI_PREVIEW_ADVISOR_RULES: 'supabase-ui-advisor-rules',- UI_PREVIEW_SECURITY_NOTIFICATIONS: 'security-notifications',NEW_LAYOUT_NOTICE_ACKNOWLEDGED: 'new-layout-notice-acknowledge',TABS_INTERFACE_ACKNOWLEDGED: 'tabs-interface-acknowledge',