Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update notice banner for TOS update (#45632)

Joshen Lime6f819f7f84c
diff --git a/apps/studio/components/layouts/AppLayout/NoticeBanner.tsx b/apps/studio/components/layouts/AppLayout/NoticeBanner.tsx
index 6b6c61a501a..aa62bb8af59 100644
--- a/apps/studio/components/layouts/AppLayout/NoticeBanner.tsx
+++ b/apps/studio/components/layouts/AppLayout/NoticeBanner.tsx
@@ -1,9 +1,22 @@
import { LOCAL_STORAGE_KEYS } from 'common'
import { useRouter } from 'next/router'
-import { TimestampInfo } from 'ui-patterns'
+import {
+ Button,
+ cn,
+ Dialog,
+ DialogClose,
+ DialogContent,
+ DialogDescription,
+ DialogFooter,
+ DialogHeader,
+ DialogSection,
+ DialogSectionSeparator,
+ DialogTitle,
+ DialogTrigger,
+} from 'ui'
import { HeaderBanner } from '@/components/interfaces/Organization/HeaderBanner'
-import { InlineLink } from '@/components/ui/InlineLink'
+import { InlineLink, InlineLinkClassName } from '@/components/ui/InlineLink'
import { useLocalStorageQuery } from '@/hooks/misc/useLocalStorage'
/**
@@ -13,7 +26,7 @@ export const NoticeBanner = () => {
const router = useRouter()
const [bannerAcknowledged, setBannerAcknowledged, { isSuccess }] = useLocalStorageQuery(
- LOCAL_STORAGE_KEYS.MAINTENANCE_WINDOW_BANNER,
+ LOCAL_STORAGE_KEYS.TERMS_OF_SERVICE_UPDATE,
false
)
@@ -23,22 +36,66 @@ export const NoticeBanner = () => {
return (
<HeaderBanner
- variant="warning"
- title="Upcoming Dashboard and Management API maintenance"
- description={
- <>
- <TimestampInfo
- className="text-sm"
- utcTimestamp={1768530600000}
- label="02:30 UTC on Jan 16, 2026"
- />
- .{' '}
- <InlineLink href="https://status.supabase.com/incidents/lg4j8mcn50zb">
- Learn more
- </InlineLink>
- </>
- }
+ variant="note"
+ title="We've updated our Terms of Service"
+ description={<UpdatedTermsOfServiceDialog onDismiss={() => setBannerAcknowledged(true)} />}
onDismiss={() => setBannerAcknowledged(true)}
/>
)
}
+
+const UpdatedTermsOfServiceDialog = ({ onDismiss }: { onDismiss: () => void }) => {
+ return (
+ <Dialog>
+ <DialogTrigger className={cn(InlineLinkClassName, 'cursor-pointer')}>
+ Learn more
+ </DialogTrigger>
+ <DialogContent>
+ <DialogHeader>
+ <DialogTitle>Terms of Service update</DialogTitle>
+ <DialogDescription>
+ We've updated our Terms of Service to better define the responsibilities of both you and
+ Supabase in the use of AI.
+ </DialogDescription>
+ </DialogHeader>
+
+ <DialogSectionSeparator />
+
+ <DialogSection className="text-sm flex flex-col gap-y-2">
+ <p>
+ We've clarified how we use AI in our customer support tooling, introduced guidelines for
+ the responsible use of AI by our users, and updated our indemnification terms to clarify
+ the allocation of responsibility for claims arising from AI-generated inputs and
+ outputs.
+ </p>
+
+ <p>
+ Additionally, we've made an explicit commitment that Supabase will never use the data
+ you submit to the Supabase services to train or improve any AI without your prior
+ written consent.
+ </p>
+
+ <p>
+ The updated Terms (Version 2) will take effect on June 6, 2026. By continuing to use the
+ Services after that date, you agree to the updated Terms. You can review the changes{' '}
+ <InlineLink href="https://supabase.com/terms">here</InlineLink>.
+ </p>
+
+ <p>
+ This notice applies to users on Supabase's standard Terms of Service only. If you are on
+ an Enterprise plan or with a separately negotiated agreement, your existing terms
+ continue to govern your use of the Services.
+ </p>
+ </DialogSection>
+
+ <DialogFooter>
+ <DialogClose asChild>
+ <Button type="default" className="opacity-100" onClick={onDismiss}>
+ Understood
+ </Button>
+ </DialogClose>
+ </DialogFooter>
+ </DialogContent>
+ </Dialog>
+ )
+}
diff --git a/packages/common/constants/local-storage.ts b/packages/common/constants/local-storage.ts
index ece37119c4f..ff35f0137ef 100644
--- a/packages/common/constants/local-storage.ts
+++ b/packages/common/constants/local-storage.ts
@@ -73,7 +73,7 @@ export const LOCAL_STORAGE_KEYS = {
// Notice banner keys
FLY_POSTGRES_DEPRECATION_WARNING: 'fly-postgres-deprecation-warning-dismissed',
API_KEYS_FEEDBACK_DISMISSED: (ref: string) => `supabase-api-keys-feedback-dismissed-${ref}`,
- MAINTENANCE_WINDOW_BANNER: 'maintenance-window-banner-2026-01-16',
+ TERMS_OF_SERVICE_UPDATE: 'terms-of-service-update-2026-06-06',
REPORT_DATERANGE: 'supabase-report-daterange',
PROJECT_PAUSING_STARTED_AT: (ref: string) => `supabase-project-pausing-started-at-${ref}`,
PROJECT_RESTORING_STARTED_AT: (ref: string) => `supabase-project-restoring-started-at-${ref}`,