## What
The incident banner links to the status page, but the in-progress and
upcoming maintenance banners had no link.
The maintenance banner titles ("Scheduled maintenance in progress",
"Upcoming scheduled maintenance") now link to that maintenance's own
status page entry (`item.url`).
To support this, `HeaderBanner`'s `title` prop now accepts `ReactNode`
instead of only `string`.
## Problem
Self-hosted Studio still uses `@supabase/mcp-server-supabase` 0.17.0,
two releases behind even before
[0.20.0](https://github.com/supabase/mcp/releases/tag/mcp-server-supabase-v0.20.0).
## Solution
Bump `^0.17.0` to `^0.20.0` in `apps/studio/package.json` and update the
lockfile, which takes `@supabase/mcp-utils` from 0.10.0 to 0.11.1. The
platform interface only gained optional arguments, so the bump itself
compiles without changes.
- The debugging group gains `get_issues`, which covers security and
performance checks on self-hosted. It reports the health check as
unavailable because self-hosted has no health advisors.
- `generate_typescript_types` now accepts an optional `schemas`
parameter. Without this fix, self-hosted would silently ignore it and
could return types for different schemas than the caller requested.
`lib/api/self-hosted/mcp.ts` now passes `schemas` to
`generateTypescriptTypes` in `lib/api/self-hosted/generate-types.ts`,
which sends it to pg-meta as `included_schemas`. When the caller omits
`schemas`, self-hosted still uses the schemas PostgREST exposes. Tests
in `generate-types.test.ts` and `mcp.test.ts` cover both cases.
The MCP Apps support from 0.18.0 and 0.19.0 stays off because Studio
doesn’t opt in.
## Review instructions
1. Confirm CI passes.
2. With self-hosted Studio running, connect an MCP client to `/api/mcp`
and confirm `tools/list` includes `get_issues`.
3. Call `generate_typescript_types` with `schemas: ["auth"]` (or another
schema PostgREST doesn’t expose) and confirm it returns types only for
the requested schema.
Closes [AI-1582](https://linear.app/supabase/issue/AI-1582)
The telemetry skill had no rules for mistakes I keep flagging in
telemetry PR reviews, two of its sections repeated the rest of the file,
and its approved verb list held verbs that no event uses or that another
verb already covers. I added the rules, collapsed the repetition, cut
four verbs, and renamed the three events whose verb is outside the list.
**Changed:**
- **New tracking rules**: I added rules for dismiss and abandonment
events (a property must be able to differ at the call site), values
captured at submit time, `track()` on conditionally rendered elements,
debounced sends, events sent just before leaving the page, experiment
exposure, and org-level events. I also added a rule for actions that
change nothing: a bulk or menu action that changed nothing sends no
result event, and a count property reports only the items that changed.
The verify step now checks that case too.
- **Shorter skill**: I changed "Review Rules" and "Implementing New
Tracking" to link to the section that states each rule. I removed the
verification checklist because each item duplicated a rule stated above
it.
- **Approved verbs**: I removed `intended` and `converted` (no event
uses them) and `sent` and `moved` (one event each, both covered by
another verb), and defined `created` against `added`. The skill now says
the list is the authority. It used to say the list was derived from
`telemetry-constants.ts`, which still holds older events with other
verbs. I also stated when each verb fires: `clicked` and `submitted` in
the handler, the rest once the result has happened. I updated the verb
list in `.coderabbit.yaml` to match.
- **Event renames**: `www_subprocessor_updates_subscribed` is now
`www_subprocessor_updates_form_completed` (still sent after the
successful response, so it keeps counting completed subscriptions),
`realtime_inspector_broadcast_sent` is now
`realtime_inspector_broadcast_submitted`, and `home_section_rows_moved`
is now `home_section_rows_updated`. Nothing else in this repo references
the old names.
**Note:** after each app deploys, the renamed event is a new series, so
a chart that spans the change needs both names.
## To test
Tested on the PR preview:
- [ ] On www, open `/legal/customer-resources/subprocessor-list`, submit
the updates form with a test email, expect one `telemetry/event` request
whose `action` is `www_subprocessor_updates_form_completed`, and no
event after a failed submit.
- [x] In Studio, open a project's Realtime Inspector, join a channel,
send a broadcast message, expect one `telemetry/event` request whose
`action` is `realtime_inspector_broadcast_submitted`. Observed: one
request with that action and a 201 response, and no event after
canceling the modal.
- [x] In Studio, on the project home page, drag a section to a new
position, expect one `telemetry/event` request whose `action` is
`home_section_rows_updated` with `section_moved`, `old_position` and
`new_position`. Observed: one request per drag, with `section_moved:
"usage"`, `old_position: 1`, `new_position: 2`.
I checked the staging analytics project: both new Studio event names
showed up with matching counts, and neither old name did.
## Linear
- fixes GROWTH-1584
Part 1 of a 6-PR stack migrating all `next/router` and
`next/compat/router` imports in `apps/studio` onto TanStack Router hooks
and removing the router shims.
| Part | PR | Scope |
| --- | --- | --- |
| **1** | **#54053 ← this PR** | **Core navigation helpers, `hooks/**`,
`lib/**`, `data/prefetchers/**`** |
| 2 | #54054 | `components/ui/**` |
| 3 | #54055 | `components/layouts/**` and `state/tabs.tsx` |
| 4 | #54056 | Database, Branching, Compute, Edge Functions, Explorer,
SQL Editor, Storage, Table Editor |
| 5 | #54057 | Remaining `components/interfaces/**` and
`QueryInsightsTable` router events |
| 6 | #54058 | Remove `next/router` & `next/compat/router` shims,
`_router-events.ts`, Vite aliases, and test mocks |
Introduces the shared TanStack navigation helpers needed across the
stack and migrates `hooks/**`, `lib/**`, and `data/prefetchers/**` off
`next/router`.
**Added:**
- `navigateToUrl` in `apps/studio/lib/navigation.ts` (plus unit tests in
`lib/navigation.test.ts`): shared helper for navigating to internal
string URLs via TanStack's `useNavigate` (splitting pathname, search
params, and hash via `splitInternalUrl`, and handling
external/protocol-relative URLs)
- `useRoutePattern` in `apps/studio/hooks/misc/useRoutePattern.ts` (plus
`useRoutePattern.test.tsx`): returns the active matched TanStack route
template (e.g. `/project/$ref/editor/$id`) as the replacement for Next's
`router.pathname`
**Changed:**
- Migrated `hooks/misc/*` (`useHydratedQuery`,
`useStudioCommandMenuTelemetry`, `useTableEditorFiltersSort`,
`withAuth`) and `hooks/use-check-latest-deploy.tsx` to TanStack's
`useLocation`, `useNavigate`, `useRoutePattern`, and `useParams` from
`common`
- Migrated `lib/profile.tsx` and `lib/telemetry/track.ts` off
`next/router`
- Migrated `data/prefetchers/project.$ref.tsx`,
`project.$ref.editor.tsx`, and `project.$ref.editor.$id.tsx` to
`useRouter().preloadRoute`
- Wrapped `ReactQueryTestConfig` in `apps/studio/tests/helpers.tsx` with
`RouterContextProvider` and updated hook/navigation tests
(`useTableEditorFiltersSort*.test.*`,
`useFilterLifeCycle.navigation.test.tsx`,
`useTableFilter.navigation.test.tsx`, `useInboundBranding.test.ts`,
`state/tabs.test.ts`)
**Simplified:**
- `navigateToUrl` passes `replace` straight through and documents that
`url` must be an app-relative path or an external URL.
`StudioFrameworkProvider`'s `push` now reuses it.
- `useRoutePattern` reads matches and location in a single
`useRouterState` subscription
- `useTrack` and `useStudioCommandMenuTelemetry` take the pathname from
`useFramework()`, the same source as pageviews, so custom events and
pageviews always send the same pattern (e.g. `/project/[ref]/sql/[id]`).
New tests pin the strings sent, and `toRoutePattern` now has its own
unit tests.
- Removed `useCurrentPath` (a one-line wrapper with one consumer):
`OrganizationSettingsLayout` calls `useLocation` directly
- Dropped the no-op `.catch(() => {})` on `preloadRoute` in the
prefetchers (`preloadRoute` never rejects)
- `useTableEditorFiltersSort` builds the next search with a spread
instead of a delete loop
- Added `createTestRouter()` to `tests/lib/custom-render.tsx`, and
`customRender`/`customRenderHook` now return the `router`. The rest of
the stack uses these instead of hand-copied `createRouter` setups.
Addresses
[FE-5109](https://linear.app/supabase/issue/FE-5109/replace-the-nextrouter-shims-with-tanstack-router-hooks)
## To test
- [ ] Auth redirect flow (`withAuth`) still preserves `returnTo` query
parameters when redirecting unauthenticated users to `/sign-in`
- [ ] Table Editor sort and filter URL sync
(`useTableEditorFiltersSort`) persists and clears `?sort=` / `?filter=`
across table switches
- [ ] Hovering project and table editor links still triggers route/data
prefetching without console errors
- [ ] Page view and command menu telemetry still records route patterns
and paths accurately
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
## Problem
Non-current versions in storage weren't showing the correct expiration
value based on the lifecycle policies settings.
## Solution
Fix client logic and improve communication around expiration.
Adding "Archived at" info make the version history crowded, so some
information has been moved into the dropdown menu of each noncurrent
version.
<img width="445" height="314" alt="Screenshot 2026-11-26 at 16 58 23"
src="https://github.com/user-attachments/assets/efb345f7-9a1c-4a53-b5e2-8b05505f9856"
/>
Note: when the "Newest noncurrent versions to keep" threshold is met,
older versions that exceed such thresholds will expire no earlier than
in 1d.
## Review instructions
- Enable object versioning and set lifecycle policies on a File Storage
bucket
- add new versions to reach and exceed policy threasholds
- check that expiration rules apply as intended
The frontend apps send the current URL and page title with every
analytics event. The redaction added in #53500 and extended in #53955
only covers the `keywords` and `schema` params, so Table Editor filters,
search text, invite tokens, OAuth codes and the auth redirect hash still
go out in URL properties, and Studio's title carries the table, project
and org names.
**Changed:**
- **Query values are redacted by default**: every `name=value` in a URL
property now goes out as `name=redacted`, unless the name is one that
attribution reads downstream (`utm_*`, the click ids the first-referrer
cookie already collects, `dub_id`, `campaign_id`, `cid`, `promo_code`).
Param names and the `?` stay, so reports that match on a param being
present keep working. Fixed-vocabulary params such as `tab` are not on
the list: nothing reads them today, and several of those names carry
customer data on other pages.
- **A change to a redacted value no longer sends a pageview**: picking a
new filter value on the same page used to send a pageview, which would
now be identical to the previous one. The dedupe check compares the
redacted URL, so it is skipped. This lowers Studio pageview counts: on
current traffic, at most about 9% of dashboard pageviews repeat the
previous path with a query string.
- **Events from both transports are covered, and the hash is dropped**:
`identify` and `group` let the SDK stamp its own `$current_url` with the
hash, and `$set_once` pinned that on the person. `before_send` now
strips it, and the SDK no longer captures hashes itself. Custom events
skip `before_send`, so the same redaction also runs on their `pathname`
field, where www was appending the raw query string. The SDK's copy of a
search-engine referrer's query (`ph_keyword`) is dropped too.
- **Studio sends a route-level title**: `Tables | Database | Supabase`
in place of `users | Tables | Database | <project> | <org> | Supabase`.
The tab title users see is unchanged, and so are titles in the other
apps, which are public content.
- **Dead clicks, heatmaps and web vitals are pinned off**: each one puts
page text or the page URL in a nested payload the redaction does not
walk, and each can be switched on from project settings without a
deploy. All three are off today.
**Note:** One path is only partly covered. Feature-flag requests carry
the first URL and referrer the SDK stored for the browser, and they
never pass through `before_send`. The hash is now gone from them; query
values in that first URL (for example an invite link opened in a fresh
browser) still go out on those requests.
## To test
Signed in on the Studio preview, with analytics consent accepted. Check
events in the staging analytics project, filtered to the preview host.
Tested on the PR preview:
- [x] Open the Table Editor, add a filter with the value
`leaktest@example.com` and a sort, type `leaktest` in the Tables search
and in a logs search, then click through a few pages. Expect no event
containing `leaktest`, and `filter=redacted`, `sort=redacted`,
`search=redacted` and `s=redacted` in `$current_url`. Observed: zero
events from the preview host contained `leaktest`; custom events,
`$pageview`, `$pageleave` and `$set` all carried the `=redacted` forms.
The filter and sort were applied by loading the Table Editor URL with
them, which is how the app restores them
- [x] Same session: expect `page_title` and `title` on every event to
hold only page names (for example `Tables | Database | Supabase`), with
no project, org or table name. Observed: `Table Editor | Supabase`,
`Tables | Database | Supabase`, `Postgres Logs | Logs | Supabase`, `Team
| Supabase` and similar; no event carried the project, org or table
name. `explorer_*` events keep their existing fixed title `Explorer`
- [x] Load
`/dashboard/project/<ref>?token=leaktest1&projectName=leaktest2#access_token=leaktest3`,
then open `/join?token=leaktest4&slug=x`. Expect zero events containing
`leaktest`, including `$set`, `$identify` and `$groupidentify`.
Observed: zero, with `token=redacted&projectName=redacted` and no hash
on any stored URL. `$set` and `$groupidentify` fired and were clean; no
`$identify` fired in this session (the user was already identified), so
that event was not observed
- [x] Load any page with `?utm_source=readable5` appended. Expect
`utm_source=readable5` readable in `$current_url`. Observed on Database
> Tables with `?utm_source=readable5&gclid=readable6&tab=readable7`:
both attribution params readable, `tab=redacted`. The Table Editor route
rewrites its own query string and drops unknown params before any event
fires, so use another page
- [x] Open a table in the Table Editor. Expect the browser tab title to
still lead with the table name and include the project and org names.
Observed: `<table> | Table Editor | <project> | <org> | Supabase`
- [x] On the Table Editor with a filter applied, change the filter value
twice, then add a sort. Expect no new `$pageview` for the two value
changes and one for the added sort (a new param name). Observed, all
through the UI with no reload: adding the filter sent one pageview, the
two value changes sent none, adding the sort sent one, and a sidebar
navigation sent one; the staging analytics project shows the same four
pageviews
## Linear
- fixes GROWTH-1572
## I have read the CONTRIBUTING.md file.
YES
## What kind of change does this PR introduce?
**Skill fix + drift check.** This PR fixes stale facts in the
`ask-the-docs` skill after the Next.js 16 upgrade and the AI layout
work. It also gives the skill a cheap way to notice its own drift: each
checked reference file records the commit it was verified at, and the
agent runs one `git log` against that commit before it answers.
Follow-up to #54082.
## What is the current behavior?
- `app-map.md` says the docs app is Next.js 15. It is Next.js 16
(#52045).
- `app-map.md` and `llm-agent-surface.md` point to
`apps/docs/middleware.ts` and `apps/www/middleware.ts`. Both files are
now `proxy.ts` (#52045).
- The skill doesn't say that dev uses Turbopack while the build uses
webpack (#53787), so a loader change can work in dev and fail in the
build.
- The skill doesn't mention layout v2 (#52971 to #52976) or
`apps/docs/style-guide/`.
- No reference file records when it was last checked, so an agent can't
tell an old fact from a new one.
## What is the new behavior?
| File | Change |
| --- | --- |
| `SKILL.md` | New step 1, **Check for drift**: run `git log <Verified
at>..HEAD` for each reference file the answer uses. A file with no stamp
is unverified. New rule: list stale facts under **Skill corrections**
and, with the user's approval, fix them in the user's open PR if it
changes `apps/docs`, else in a new PR. |
| `reference/app-map.md` | Next.js version removed, `proxy.ts`, a
`style-guide/` row, and a short **Layout v2** section (variant, flag,
override, shell files). |
| `reference/llm-agent-surface.md` | Each `middleware.ts` is now
`proxy.ts` (docs and www), including the Mermaid node. A stale line
range is removed. |
| `reference/build-pipeline.md` | Dev uses Turbopack, the build uses
`--webpack`, and a loader change must work in both. |
Only these 3 reference files get a `Verified at: 3089aa3f67
(2026-11-25).` line, because they are the only ones checked claim by
claim. The other 11 files get a stamp when someone checks them.
## Additional context
- **Proof:** none needed. This PR changes skill reference files only,
with no rendered output.
- **Verification:** each changed fact was checked against the code at
this branch's base.
| Fact | Evidence |
| --- | --- |
| Next.js 16 | `pnpm-workspace.yaml` catalog: `next: ^16.4.3` |
| `proxy.ts` | `apps/docs/proxy.ts` and `apps/www/proxy.ts` exist,
`middleware.ts` doesn't |
| Turbopack in dev, webpack in build | `apps/docs/package.json` `build`:
`next build --webpack`; `next.config.mjs` has `webpack` and `turbopack`
blocks |
| `layout-v2:` variant | `apps/docs/styles/globals.css:25` |
| Flag and override | `apps/docs/features/IaNav/constants.ts`
(`docs-ia-mvp-v1`, `option-1`, URL override) |
- `app-map.md` still lists `content/troubleshooting/` on `master`.
#54082 removes it, so this PR leaves those lines alone. The two PRs
touch different lines and can merge in either order.
### Test plan
- [ ] Each fact in the table above matches the code
- [ ] Ask the skill a question about `apps/docs/proxy.ts` and confirm it
runs the drift check first
- [ ] `grep -rn "middleware.ts" .agents/skills/ask-the-docs` returns
nothing
---------
Co-authored-by: Nik Richers <nik@validmind.ai>
## Problem
We don't track clicks on the shared `DocsButton`, so we can't tell which
pages send people to the docs most or where the UI needs more
explanation. Closes FE-5020.
## Solution
Add a `docs_button_clicked` event, fired once per click from the click
handler in the shared `DocsButton`. One call covers every page that
renders it.
- Properties: optional `topic` (a fixed label passed by the caller,
omitted when unset). `pathname` is already attached to every event by
`useTrack`.
- Groups are `Partial<TelemetryGroups>` because the button renders on
project, organization, and account pages.
- Click still stops propagation, as before.
## Review instructions
1. Run `pnpm dev:studio` and open a page with a docs button (e.g. a
project's Auth or Database page).
2. Click it and check the `docs_button_clicked` event is sent once, with
`topic` when the button has one.
3. Run `pnpm --filter studio exec vitest run
components/ui/DocsButton.test.tsx`.
Still to do after merge: verify the event in PostHog on staging.
## Summary
Follow-up to #54070. Removes the `data-attr` attributes added there, as
raised in review: PostHog autocapture is off (`autocapture: false` in
`packages/common/posthog-client.ts`), so they send nothing. Copy,
reveal, create and remove are all tracked with explicit `track()` calls.
Removes `data-attr` from the API key copy and reveal buttons, the delete
menu item, both create dialogs, and the initial-setup "Create keys"
action.
The two docs links and the `DocsButton` `data-attr` prop are removed in
#54119 instead, since that PR also edits `DocsButton`. The two PRs touch
different files and can merge in either order.
No behavior or tracking change.
## Testing
- `tsc`, the lint ratchet and the Studio unit tests pass.
## Context
Final clean up of deprecated Scaffold components, just touches
- Account audit logs
- Project home page
- Database -> Column privileges
- Storage -> Analytics bucket details
- Storage -> Vector bucket details
- Settings -> Infrastructure -> Disk management
- Settings -> Infrastructure -> Read replica details
- Integrations -> Wrappers overview (Only for non supported integration
UI)
- Edge functions -> Empty state
- Auth -> Performance
Also replaces usage of `ScaffoldDivider` with just the `Separator`
component
And also adjusts the page container sizes of database pages from large
to default - these only have visual differences on viewport widths
larger than a laptop
Testing just needs a quick sweep of all these surfaces to make sure
nothing looks weird - will do so on my end too once the builds go
through!
For @supabase/security's review - review requirement was triggered as
`Documents.tsx` was updated in the organization settings page. But it
was just to change the Divider component 🙏
## What kind of change does this PR introduce?
Documentation fix (security footgun).
## What is the current behavior?
Closes#36816.
The RBAC guide's schema block creates `public.user_roles` and
`public.role_permissions` but never enables Row Level Security on
either.
Because both tables are created in the `public` schema, they inherit the
default privileges granted to `anon` and `authenticated`. A reader who
follows the guide as written ends up with the two tables that decide
their entire authorization model readable *and writable* by any
signed-in user — a user can insert `(their_uid, 'admin')` into
`user_roles`, or add a permission to `role_permissions`, and the auth
hook will happily mint them the claim on next token issue.
It also leaves the guide internally inconsistent: the auth hook section
creates
```sql
create policy "Allow auth admin to read user roles" ON public.user_roles ...
```
which has no effect at all while RLS is disabled on that table.
The [Slack Clone
migration](https://github.com/supabase/supabase/blob/master/examples/slack-clone/nextjs-slack-clone/supabase/migrations/20240214102356_init.sql#L74-L79)
that this guide is explicitly based on does have both statements — they
just didn't make it into the doc.
## What is the new behavior?
Adds the two missing statements to the schema block, matching the
example app:
```sql
-- Secure the tables
alter table public.user_roles enable row level security;
alter table public.role_permissions enable row level security;
```
Plus a `caution` admonition explaining why this matters and why neither
table gets an `anon`/`authenticated` policy — `authorize()` is `security
definer`, so it reads `role_permissions` on the caller's behalf without
the caller needing access.
## Additional context
Docs-only change. The `security definer` `authorize()` function and the
`supabase_auth_admin` policy later in the guide continue to work; the
latter in fact only starts working once RLS is enabled.
---------
Co-authored-by: Jeremias Menichelli <jmenichelli@gmail.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
## Problem
The documentation does not make it clear that the support team cannot
extend grace periods or make exceptions to applied restrictions. This
may lead to incorrect expectations about what support can do.
## Solution
Added a note to the documentation:
> The support team cannot extend grace periods or make exceptions to
applied restrictions.
## Review instructions
1. Open the changed documentation page.
2. Confirm the note is displayed in the appropriate context and clearly
communicates the restriction.
## Checklist
- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md).
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide).
## Problem
Upgrade right-sizes the disk to 1.2x the database size (minimum 8 GB).
This was only explained in the docs.
Closes FE-5006
## Solution
Adds a short note to the Disk size field under Infrastructure settings,
with a link to the docs section on reducing disk size.
<img width="2358" height="938" alt="CleanShot 2026-11-25 at 8 38 47
PM@2x"
src="https://github.com/user-attachments/assets/9cbe72db-9de3-4d5c-9064-5265b626f6be"
/>
- The note shows only when the saved disk size is larger than 8 GB,
since a disk at the 8 GB minimum can't be right-sized any smaller.
- It is hidden while the project is new or when disk data fails to load,
so it never appears next to an error message.
- The size check lives in a small helper, `canRightSizeDisk`, with unit
tests.
## Review instructions
1. Open a project with a disk larger than 8 GB, then go to Settings >
Infrastructure > Disk size.
2. Confirm the note appears under "Your plan includes up to X GB…" and
that "Learn more" opens the "Reducing disk size" section of the docs.
3. Open a project with an 8 GB disk and confirm the note does not
appear.
## Problem
Nothing is tracked on the API keys pages (new and legacy), so we can't
tell which keys people copy, how often they create or delete keys, or
how quickly projects disable legacy keys. Closes FE-5030.
## Solution
Adds five events, defined in `packages/common/telemetry-constants.ts`
and fired through `useTrack()`:
| Event | When | Properties |
| --- | --- | --- |
| `api_key_copied` | User copies a publishable, secret, or legacy
anon/service_role key with its Copy button. Keyboard copies aren't
counted. Not fired when blocked by permissions or when the copy fails. |
`keyType` |
| `api_key_reveal_clicked` | User reveals a secret or legacy
service_role key (not on hide) | `keyType` |
| `api_key_created` | Key created from the dialog, or by the first-time
setup (fires once per key) | `keyType`, `source` |
| `api_key_removed` | Key deleted after confirming in the modal |
`keyType` |
| `legacy_api_keys_updated` | Legacy keys disabled or re-enabled |
`enabled` |
- Create, delete, and legacy toggle fire in the mutation hook's
`onSuccess`, so failed attempts aren't counted and the event still fires
if the component unmounts mid-request. They're attributed to the
mutation's own project. Copy and reveal fire in the click handler.
- Delete is tracked in `SecretAPIKeys` / `PublishableAPIKeys`, where the
confirm modal and mutation live, not in the dropdown item.
- No key names or values in properties.
- `data-attr` added to the copy, reveal, create, delete, and docs
controls (static strings; Studio's PostHog autocapture is currently off,
so these send nothing today). `DocsButton` gets an optional `data-attr`
prop.
- `ui-patterns` `Input` gets optional `onReveal` and `onCopied`
callbacks. `onCopied` fires only for the Copy button, so legacy and new
keys count copies the same way.
- The empty-state sample keys are `inert`, so their buttons don't copy
or track.
- New `getLegacyApiKeyType` helper maps the legacy `anon` /
`service_role` tags to the event's `keyType`.
Tests cover copy, reveal, the no-event-on-hide and denied-grant cases,
the legacy toggle, and the key-type helper. Success paths for the create
dialogs and delete aren't covered.
## How to test
- [ ] Open `/project/[ref]/settings/api-keys`, copy a publishable and a
secret key, reveal a secret key, and check `api_key_copied` and
`api_key_reveal_clicked` in PostHog (staging) with the expected
`keyType`
- [ ] Create and delete a publishable and a secret key and check
`api_key_created` / `api_key_removed`
- [ ] On the legacy page, copy anon and service_role, reveal
service_role, then disable and re-enable the keys and check
`legacy_api_keys_updated`
Updates the CLI reference from the supabase/cli release workflow.
The command spec and sidebar are generated from the same CLI command
tree.
For changes, edit the command tree or the content under `apps/cli/docs/`
in supabase/cli.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
<!-- claude-slack-attribution -->
_Requested by **Drew McLellan**, **Ali Waseem** · [Slack
thread](https://supabase.slack.com/archives/C0161K73J1J/p1795452919979329?thread_ts=1795452919.979329&cid=C0161K73J1J)_
## Problem
**Before:** The latest Privacy Policy is Version 5 (effective November
2, 2026). Its cookie table has no entries for the extra PostHog
telemetry (session replay), Usercentrics, ConfigCat, Stape, Vercel or
LinkedIn, and it lists Fly.io and Tableau as recipients.
## Solution
**After:** Adds Privacy Policy Version 6 as
`apps/www/data/legal/privacy/v6.mdx` (a copy of v5 plus the changes
below) and registers it first in the `versions` list in
`apps/www/pages/privacy.tsx`, effective **November 25, 2026** (confirmed
by Legal). v1 to v5 stay available in the version switcher.
This publishes Legal's updated policy (Sofia Calado, "Supabase Privacy
Policy version Nov 25, 2026.docx") so the policy text covers the extra
PostHog telemetry the team needs to collect.
**How:** Changes applied from the docx (tracked changes plus two
untracked edits; the chapter 3 opt-out edit was withdrawn by Legal),
wording kept as written by Legal:
1. Intro: removed the duplicated `"personal information",`.
2. California bullet: the "You can manage your preferences" sentence is
replaced by a new paragraph on "sale"/"sharing" with advertising
partners, the opt-out route (Privacy Settings or privacy@supabase.com)
and Global Privacy Control.
3. User Content: "AI-powered support tools" becomes "AI-powered
services".
4. EEA recipients tables: removed Fly.io (5 tables) and Tableau (3
tables) from the service provider lists; "we may share..." in the law
enforcement row now starts with a capital W.
5. Cookie table (chapter 8): new rows Usercentrics, Vercel (untracked in
the docx, Legal comment: "This is also a new line."), ConfigCat,
Supabase (replaces `_sb_first_referrer`), Stape, PostHog session replay
(30 days) and LinkedIn; YouTube moved from Strictly necessary to
Functional; Cloudflare cookie names added (`_cf_bm`, `__cflb`); Stripe
purpose reworded to "To detect and prevent..." on all three rows; Google
Analytics 4 and Google Ads purposes and cookie names updated; "Google
ads" replaces "one of our ads".
6. Text after the table: adds "We use Functional cookies to help the
Site work more smoothly and consistently." and drops "and, where
applicable, to deliver personalized ads" (an untracked edit in the
docx).
Skipped as docx export artifacts: the "Supabase Pte. Ltd. | Source"
header line, "Contents" list wording, "(at the end of this document)"
instead of the anchor link, heading capitalization/trailing period,
whitespace-only tracked edits ("available here"), curly quotes. Typo
fixed: the docx drops the space in "prevent fraudulent" and in
`"personal information" or`.
Chapter 3 (Modifying Account Information) is unchanged from v5 per
Legal: the consent sentence about sharing data with third-party partners
for AI-powered services stays as it was, so the redline's opt-out
wording is not applied.
Confirmed by Legal: the effective date. The Usercentrics, ConfigCat,
Stape and LinkedIn cells are linked to the vendor policies Legal
supplied; the Supabase row's "This Privacy Policy applies" intentionally
has no extra link (it refers to this policy).
Cloudflare cookie name corrected to `__cflb` (the docx had a stray
space; confirmed by Legal).
The third Stripe row (2 years) was also reworded to "To detect and
prevent fraudulent payments and transactions." to match the other two
(confirmed by Legal). Nothing is left unconfirmed.
## Review instructions
1. Diff `apps/www/data/legal/privacy/v6.mdx` against `v5.mdx` (ignore
table column padding from the formatter) and check it matches the list
above.
2. Check `apps/www/pages/privacy.tsx` lists Version 6 first with
November 25, 2026.
3. Open the Vercel preview of `/privacy` and confirm v6 renders
(California bullet, cookie table) and the switcher still shows v5 to v1.
I could not open previews from the agent session.
## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] N/A: no docs topic written or edited (legal page content only)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01VBvtQX8X7t7w71qMkTvoXp
---------
Co-authored-by: Claude <noreply@anthropic.com>
## Problem
We're building the site for Supabase Builder Day: 14 cities, one day, 10
December. It's its own Next.js app on Vercel (on the Supabase team) and
right now it only lives at `builderday.vercel.app`.
We want it at **supabase.com/builderday** so the links on the Luma pages
and in our emails point at a Supabase address, and so builders can sign
in with the Supabase account they already have instead of making a new
one.
## Solution
- `zoneRewrites('/builderday', ...)` in `apps/www/lib/rewrites.js`, the
same way `/library` and `/design-system` are served, so RSC prefetches
go through too.
- The app runs with `basePath: '/builderday'`, so its `/_next` assets
and `/api` routes stay under the prefix and don't collide with www's.
- `/builder-day` redirects to `/builderday`.
- A test next to the InstantDB one in `next.config.test.ts`.
**Depends on:** supabase/Builderday#5, which adds the base path on our
side. Until that's merged, `/builderday` returns 404.
## Review instructions
1. `cd apps/www && pnpm vitest run next.config.test.ts`
2. Once supabase/Builderday#5 is live, open `/builderday` on the www
preview: the Builder Day page loads, with no 404s for `/_next` or `/api`
in the network tab.
3. `/builder-day` redirects to `/builderday`.
4. `/dashboard`, `/docs` and `/library` still work.
## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
## What
Makes the **Free** plan badge next to the organization name (in the org
dropdown) a clickable entry point into the upgrade funnel.
Resolves [GROWTH-775](https://linear.app/supabase/issue/GROWTH-775).
Feedback verbatim: _"if i hit the 'free' button next to my account name
it should take you to the upgrade to paid account funnel."_
The badge links to
`/org/{slug}/billing?panel=subscriptionPlan&source=org_plan_badge`.
Clicking it fires `upgrade_cta_clicked` with `placement:
'org_plan_badge'`.
## Changes
| File | Change |
|---|---|
| `apps/studio/components/layouts/AppLayout/OrganizationDropdown.tsx` |
Eligibility check and the linked badge. |
| `apps/studio/components/layouts/AppLayout/AppLayoutDropdown.tsx` | New
optional `trailingContent` slot, rendered as a sibling of the nav
`<Link>`. Needed because a clickable badge can't be a `<Link>` nested
inside the org `<Link>` (invalid HTML). Non-breaking — `BranchDropdown`
is unaffected. |
| `packages/common/telemetry-constants.ts` | Adds the `org_plan_badge`
placement to `upgrade_cta_clicked`. |
|
`apps/studio/components/layouts/AppLayout/OrganizationDropdown.test.tsx`
| Free org gets the link; partner-managed, billing-partner, and paid
orgs keep the plain badge. |
## Who sees the link
Orgs on the Free plan, managed by Supabase, with no `billing_partner`.
Everyone else keeps the plain, non-clickable badge. The badge also stays
plain when billing is disabled (`billing:all`) or plan changes are
paused (`disableProjectCreationAndUpdate`), the same two checks
`UpgradePlanButton` applies.
Partner-managed orgs are excluded because they change plans at the
partner (Vercel / AWS Marketplace / Stripe Projects).
`PlanUpdateSidePanel` shows a `PartnerManagedResource` notice and
disables every paid tier for them, so the badge would land them on a
panel with no enabled action. `billing_partner` is checked separately
because `getManagedByFromOrganizationPartner` doesn't map every partner
— `fly` falls through to `supabase`.
Free-plan members without `BILLING_WRITE` still get the link:
`PlanUpdateSidePanel` renders `RequestUpgradeToBillingOwners` per plan
card for them, so the landing is a real next action, not a dead end.
## Testing
`OrganizationDropdown.test.tsx` covers the linked badge for a Free
Supabase-managed org and the plain badge for partner-managed,
billing-partner, and Pro orgs, plus the billing-disabled and
plan-changes-paused cases. Existing partner-icon tests still pass. `tsc
--noEmit` and Prettier are clean for the touched files.
The Studio lint ratchet passes locally.
---------
Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
While reviewing #54070 I hit three tracking placement cases the
telemetry skill either doesn't cover or states in the wrong place. The
`data-attr` note sat in the Privacy section and read as a privacy rule,
and there was no rule for mutation outcomes or for one event fired from
several places. I moved the first and added the other two, each stated
once under Required Pattern, with one Review Rules item that references
them. I also added a property naming rule the skill was missing.
**Changed:**
- **`data-attr` used as tracking**: I added a line next to the required
`track()` pattern: `data-attr` sends nothing while autocapture is off,
so a click you want measured needs a `track()` event.
- **Events lost on unmount**: I ruled out tracking in the callbacks
passed to `mutate()`, which are skipped once the component unmounts, and
named the two safe places: around `await mutateAsync()`, or the mutation
hook's own callbacks when the hook always calls them.
- **One event with two meanings**: when one event name fires from
several places, every call site fires on the same kind of user action.
- **Property values that read as empty**: PostHog keeps one type per
property name across the whole project, so I added a "flag these" item
for a name another event already sends with a different type.
**Note:** `SubscriptionPlanUpdateView` tracks its completion in a
per-call callback because `useConfirmPendingSubscriptionChangeMutation`
returns before the caller's `onSuccess` on a 202. The rule names that
early return as the case where hook-level callbacks are not safe. I did
not change the view.
## Linear
- fixes GROWTH-1577
Moves the remaining `next/navigation` imports in Studio onto TanStack
Router hooks (and `useParams` from `common`), finishes migrating the
remaining `next/link` and `next/router` usages in the touched
components, and removes the `compat/next/navigation.ts` shim and its
Vite alias. Shared packages (`packages/**`) no longer import
`next/navigation`, so the alias can be dropped now.
**Removed:**
- `apps/studio/compat/next/navigation.ts` and the `'next/navigation'`
entry in `apps/studio/vite.config.ts`
- Global `next/navigation` mock in `apps/studio/tests/vitestSetup.ts`
and the obsolete `apps/studio/tests/lib/route-mock.test.tsx`
**Changed:**
- Replaced `usePathname` (12 files) and `useSearchParams` (3 files) with
`useLocation({ select })` from `@tanstack/react-router`
- Replaced `useRouter` in Storage bucket tables, SQL Editor commands,
and `SignInMfaForm` with `useNavigate` from `@tanstack/react-router`,
and updated `createNavigationHandler` in `lib/navigation.ts` to accept
either `NextRouter` or TanStack's `useNavigate`
- Replaced remaining `next/link` imports in touched components
(`SignInMfaForm`, `Restriction`, `DownloadLogsButton`,
`DownloadResultsButton`, `AuthEmailsLayout`, `AuthProvidersLayout`,
`JWTKeysLayout`, `StorageBucketsLayout`) with TanStack Router's `Link`
- Replaced `useParams` in `CreatePublishableAPIKeyDialog` with
`useParams` from `common` (matching `CreateSecretAPIKeyDialog`)
- Wrapped `CustomWrapper` (`tests/lib/custom-render.tsx`) in a default
TanStack `RouterContextProvider` (with optional `router` / `initialUrl`
overrides) and updated affected component tests to drop their
`next/navigation` mocks
Addresses
[FE-5110](https://linear.app/supabase/issue/FE-5110/replace-the-nextnavigation-shim-with-tanstack-router-hooks)
## To test
1. Check active tab highlighting and navigation across Auth Emails, Auth
Providers, JWT Keys, Storage Buckets, and Editor layouts
2. Verify clicking, Cmd/Ctrl-clicking, middle-clicking, and pressing
Enter on Storage bucket rows (Files, Analytics, Vector) navigates as
before
3. Run "Query a table..." and open SQL snippets from the Command Menu
and confirm `/project/$ref/sql/$id` opens with multi-line SQL preserved
in `?content=`
4. In the MFA sign-in flow, verify the recovery code link and
`forgot-password` completion preserve query params (`returnTo`,
`context=forgot-password`), and Cancel signs out and replaces history
with `/sign-in`
5. Confirm Table Editor sort/filter URL sync persists filters per table
without leaking across table switches
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
## Problem
Now that Studio runs on TanStack Start, `apps/studio` still routes 13
`next/dynamic` imports through a local compatibility shim
(`apps/studio/compat/next/dynamic.tsx` aliased in
`apps/studio/vite.config.ts`). Keeping the shim adds unnecessary
indirection during the Next.js teardown (FE-5113).
## Solution
Replaces every `next/dynamic` import in `apps/studio` with `React.lazy`
+ `Suspense` (or static imports where already inside a lazy chunk), then
deletes `compat/next/dynamic.tsx` and its Vite alias.
None of the previously `ssr: false` call sites need `ClientOnly`: Studio
runs TanStack Start with `spa: { enabled: true }` and only prerenders
the signed-out auth routes (`/sign-in`, `/sign-up`, `/sign-in-sso`,
`/forgot-password`), `__root.tsx` gates `<Outlet />` behind
`canRenderPage`, and `StudioCommandMenu` is already gated by
`useCommandMenuInitiated()` (which starts `false` per render).
**Removed:**
- `apps/studio/compat/next/dynamic.tsx` and the `'next/dynamic'` entry
in `nextShims` in `apps/studio/vite.config.ts`
**Changed:**
- Migrated all `next/dynamic` call sites to `React.lazy` + `Suspense`:
- `StudioCommandMenu`, `ContextSearchResults`,
`Marketplace/OverviewTab`, `QueryDetail` (`SqlMonacoBlock`),
`SQLEditorEditorPanel` (`MonacoEditor`, `DiffEditor`),
`SupportAssistantSuccessCard`, `LayoutSidebarProvider`,
`MessageMarkdown` (`Streamdown`), and
`SupportAssistantSuccessCardContent` (`Streamdown`)
- `ConnectStepsSection`: hoisted the lazy component cache out of
`useMemo` to module scope (also clears its
`react/no-unstable-nested-components` warning)
- `Integrations.constants.tsx` and `useAvailableIntegrations.tsx`:
hoisted all lazy integration tab/page definitions (including
`GraphiQLTab`) to module scope so `navigate()` returns stable component
references, added `Suspense` boundaries with `<Loading />` at both
render points (`MarketplaceDetail` and the integration child route), and
keyed integration tab/creation sheet instances (`integration.id` in
`MarketplaceDetail` and `wrapperMeta.name` in `WrappersTab`) so state
cannot leak when switching between wrappers or OAuth integrations;
preserves `umdAmdShortCircuit`, `ssrStubGraphiql`, and
`graphiqlViteWorkers` in `vite.config.ts`
- Replaced `dynamic()` calls for `AiIconAnimation`, `Badge`, and 4
`icons` in `CreateCommands.tsx` with static imports (already inside the
lazy `CommandMenu` chunk)
- Removed the stale `next/dynamic` mention from the
`lib/chunk-load-error.ts` doc comment (`React.lazy` chunk failures
continue bubbling to the root `ErrorBoundary` reload handler)
**Added:**
- Reference-stability tests for `INTEGRATIONS.navigate` in
`Integrations.constants.test.ts` (running in Vitest's Node environment)
## Review instructions
1. Open the SQL Editor and Query Performance query detail panel, and
confirm the Monaco editor and diff view load cleanly.
2. Open the GraphQL integration's GraphiQL tab, and confirm the loading
skeleton displays while the chunk loads and GraphiQL mounts with working
autocomplete/workers.
3. Open a Wrapper integration's Wrappers tab, open the create sheet,
then navigate via history to a different wrapper's create sheet and
confirm the form resets to the new wrapper's defaults.
4. Open the Command Menu (`Cmd+K`), navigate to context search (for
example, Search Database Tables) and Create commands, and confirm icons,
badges, and search results load without flicker.
5. Open the Connect sheet and switch between frameworks/steps,
confirming step content loads with the skeleton fallback.
6. Toggle sidebars (AI Assistant, Inline SQL Editor, Advisor, Help) and
verify markdown streaming in AI Assistant.
7. Confirm CI passes `pnpm --filter studio run build` (including
prerendering and chunk-cycle checks), typecheck, lint ratchet, and
Studio tests.
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>