From 5784df8bc3a9e13aeb912d16e02724748e320c3b Mon Sep 17 00:00:00 2001 From: Danny White <3104761+dnywh@users.noreply.github.com> Date: Wed, 18 Mar 2026 11:53:00 +1100 Subject: [PATCH 1/2] use admonition and rewrite --- .../Account/Preferences/AnalyticsSettings.tsx | 50 ++++++++----------- 1 file changed, 22 insertions(+), 28 deletions(-) diff --git a/apps/studio/components/interfaces/Account/Preferences/AnalyticsSettings.tsx b/apps/studio/components/interfaces/Account/Preferences/AnalyticsSettings.tsx index 45b2c8cecc..9dc8ea15e6 100644 --- a/apps/studio/components/interfaces/Account/Preferences/AnalyticsSettings.tsx +++ b/apps/studio/components/interfaces/Account/Preferences/AnalyticsSettings.tsx @@ -1,16 +1,15 @@ import { zodResolver } from '@hookform/resolvers/zod' -import { X } from 'lucide-react' -import { useForm } from 'react-hook-form' -import { toast } from 'sonner' -import * as z from 'zod' - import { useConsentState } from 'common' import { LOCAL_STORAGE_KEYS } from 'common/constants/local-storage' +import { ButtonTooltip } from 'components/ui/ButtonTooltip' +import { InlineLink } from 'components/ui/InlineLink' import { useSendResetMutation } from 'data/telemetry/send-reset-mutation' import { useLocalStorageQuery } from 'hooks/misc/useLocalStorage' -import { Alert_Shadcn_, AlertDescription_Shadcn_, AlertTitle_Shadcn_, Badge } from 'ui' -import { ButtonTooltip } from 'components/ui/ButtonTooltip' -import { Card, CardContent, FormControl_Shadcn_, FormField_Shadcn_, Form_Shadcn_, Switch } from 'ui' +import { X } from 'lucide-react' +import { useForm } from 'react-hook-form' +import { toast } from 'sonner' +import { Card, CardContent, Form_Shadcn_, FormControl_Shadcn_, FormField_Shadcn_, Switch } from 'ui' +import { Admonition } from 'ui-patterns/admonition' import { FormItemLayout } from 'ui-patterns/form/FormItemLayout/FormItemLayout' import { PageSection, @@ -20,6 +19,7 @@ import { PageSectionSummary, PageSectionTitle, } from 'ui-patterns/PageSection' +import * as z from 'zod' export const PrivacyUpdateBanner = () => { const [privacyUpdateAcknowledged, setPrivacyUpdateAcknowledged] = useLocalStorageQuery( @@ -30,25 +30,19 @@ export const PrivacyUpdateBanner = () => { if (privacyUpdateAcknowledged) return null return ( - - - - NOTICE - - Privacy Policy Update – Effective March 16, 2026 - - - We've updated our{' '} - - Privacy Policy - {' '} - to clarify our use of analytics, cookies, and advertising audience management tools. By - continuing to use Supabase after March 16, you agree to the new terms. Questions? Contact{' '} - - our team - - . - + + We’ve clarified how we use analytics, cookies, and advertising tools in our{' '} + privacy policy, effective + March 16, 2026. By continuing to use Supabase, you agree to the updated terms.{' '} + Contact us with any questions.{' '} + + } + className="mb-10 relative" + > } @@ -56,7 +50,7 @@ export const PrivacyUpdateBanner = () => { onClick={() => setPrivacyUpdateAcknowledged(true)} tooltip={{ content: { side: 'bottom', text: 'Dismiss' } }} /> - + ) } From c10288c9649761b26acf6726847b5e4c6ef659b0 Mon Sep 17 00:00:00 2001 From: Danny White <3104761+dnywh@users.noreply.github.com> Date: Wed, 18 Mar 2026 12:03:36 +1100 Subject: [PATCH 2/2] format --- .../interfaces/Account/Preferences/AnalyticsSettings.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/studio/components/interfaces/Account/Preferences/AnalyticsSettings.tsx b/apps/studio/components/interfaces/Account/Preferences/AnalyticsSettings.tsx index 9dc8ea15e6..8a8baaf7b2 100644 --- a/apps/studio/components/interfaces/Account/Preferences/AnalyticsSettings.tsx +++ b/apps/studio/components/interfaces/Account/Preferences/AnalyticsSettings.tsx @@ -38,7 +38,8 @@ export const PrivacyUpdateBanner = () => { We’ve clarified how we use analytics, cookies, and advertising tools in our{' '} privacy policy, effective March 16, 2026. By continuing to use Supabase, you agree to the updated terms.{' '} - Contact us with any questions.{' '} + Contact us with any + questions.{' '} } className="mb-10 relative"