Commit Graph
40502 Commits
Author SHA1 Message Date
supabase-vercel-tedd[bot] 9298ed68c1 docs(functions): list all supported sync Deno APIs and cover self-hosted workers (#53971)
## Problem

The list of synchronous Deno APIs on the Edge Functions ephemeral
storage page leaves out three APIs that the runtime allows during
initial script evaluation. The self-hosted Functions guide doesn't say
whether these limits apply to self-hosted functions, or where to find
them.

Related to
[FDBKIN-8800](https://linear.app/supabase/issue/FDBKIN-8800/document-which-deno-sync-functions-are-supported-in-self-hosted-edge)
Closes
[DOCS-1762](https://linear.app/supabase/issue/DOCS-1762/list-every-supported-sync-deno-api-and-say-they-apply-to-self-hosted)

## Solution

The ephemeral storage page now lists all 12 sync APIs that edge-runtime
allows during initial script evaluation, adding `Deno.lstatSync`,
`Deno.makeTempFileSync`, and `Deno.copyFileSync`. The self-hosted
Functions guide gets a short "Synchronous file APIs" section: user
workers get the same init-only rule and the `blocklisted on the current
context` error, and the main worker router isn't restricted. It links to
the list instead of repeating it.

## How to verify

1. On `/docs/guides/functions/ephemeral-storage`, the "Using synchronous
file APIs" list shows 12 APIs, including `Deno.lstatSync`,
`Deno.makeTempFileSync`, and `Deno.copyFileSync`.
2. On `/docs/guides/self-hosting/self-hosted-functions`, a "Synchronous
file APIs" section says user-worker functions can use these APIs only
during initial script evaluation, names the error thrown otherwise, and
says the main worker isn't restricted.
3. The link in that section opens the list on the ephemeral storage
page, and the self-hosted page doesn't repeat the list.

## Checks

Ran `pnpm exec oxfmt --check` on both pages. Checked the API list, the
error text, and the `kind === "user"` gate against
`ext/runtime/js/bootstrap.js` in `supabase/edge-runtime` at `v1.79.2`,
the version `docker/docker-compose.yml` pins. Checked that
`docker/volumes/functions/main/index.ts` doesn't set
`useReadSyncFileAPI` when it creates user workers. `pnpm
build:guides-markdown` couldn't run in the sandbox: it needs GitHub
credentials for federated content.

## Checklist

- [x] I have read the [contributing
guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md).
- [x] The change is docs content only.

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1762](https://linear.app/supabase/issue/DOCS-1762/list-every-supported-sync-deno-api-and-say-they-apply-to-self-hosted).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-24 13:55:50 -07:00
supabase-vercel-tedd[bot] ada003c3d7 docs(auth): explain how the SSR session carries over between requests (#53975)
## Problem

The "How it works" section of the SSR advanced guide says the tokens
must be stored in cookies, but not that `@supabase/ssr` does this. A
reader who signs a user in on one server route can't tell how a later
request gets the session back, so they may pass tokens around and call
`setSession` themselves.

Related to
[FDBKIN-20417](https://linear.app/supabase/issue/FDBKIN-20417/clarify-server-side-session-management-across-multiple-http-requests)
Closes
[DOCS-1765](https://linear.app/supabase/issue/DOCS-1765/explain-how-a-server-side-session-carries-over-to-the-next-request)

## Solution

Two paragraphs in "How it works" on the SSR advanced guide explain the
cookie round trip. On sign-in, a code exchange, a refresh, or a user
update, the server client writes the session through `setAll`. On the
next request, a new server client reads it back through `getAll`, with
no `setSession` call. The framework setup stays on "Creating a Supabase
client for SSR", which the new text links to.

## How to verify

1. Open `/docs/guides/auth/server-side/advanced-guide` on the preview
and go to "How it works".
2. Check that the section says a server-side sign-in with
`createServerClient` writes the session, access and refresh tokens
included, to the `sb-<project_ref>-auth-token` cookie through `setAll`.
3. Check that it says a new server client on a later request restores
the session through `getAll`, with no `setSession` call.
4. Click the "Creating a Supabase client for SSR" link and check that it
opens that page.

## Checks

Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm
turbo run lint --filter='[origin/master]'`, and `pnpm exec oxfmt
--check` on the changed file. Checked the facts against `@supabase/ssr`
0.12.7 (`createServerClient.js`, `cookies.js`, `utils/chunker.js`) and
the cookie name on "Creating a Supabase client for SSR". Skipped the
docs tests: they need Docker.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] 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)

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1765](https://linear.app/supabase/issue/DOCS-1765/explain-how-a-server-side-session-carries-over-to-the-next-request).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-24 13:54:10 -07:00
supabase-vercel-tedd[bot] 3a9459fef2 docs: say which requests count toward the Management API rate limits (#53974)
## Problem

The Management API rate limits section explains the limit, its scope,
and its headers, but not which traffic it applies to. Readers can't tell
whether CLI commands or calls to their own project, such as Edge
Function invocations, count toward it.

Related to
[FDBKIN-22153](https://linear.app/supabase/issue/FDBKIN-22153/clarify-documentation-for-management-api-rate-limits-and-what-actions)
Closes
[DOCS-1764](https://linear.app/supabase/issue/DOCS-1764/say-which-requests-count-toward-the-management-api-rate-limit)

## Solution

The "Rate limits" section of the Management API introduction now opens
by saying that only requests to `https://api.supabase.com` count, and
that requests to a project's own URL don't. The "Rate limit scope"
subsection ends with a CLI example: `supabase functions deploy` sends at
least one Management API request per function, so a large deploy to one
project might reach the per-endpoint limit. The example sits after the
scope rules so it reads as an application of them. The limits, tables,
scope rules, and headers are unchanged.

## How to verify

1. Open `/docs/reference/api/introduction` in the preview and go to
"Rate limits".
2. The intro says only requests to `https://api.supabase.com` count, and
that requests to `https://<project-ref>.supabase.co`, such as Edge
Function invocations and Data API calls, don't.
3. The end of "Rate limit scope" says the Supabase CLI uses the
Management API, and that `supabase functions deploy` to one project with
many functions might reach the per-endpoint limit.
4. The limit tables, scope list, and response headers match production.

## Checks

Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm
turbo run lint --filter='[origin/master]'` (no errors), and `pnpm exec
oxfmt --check` on the changed file. Checked the CLI claim against
`supabase/cli` `apps/cli/src/shared/functions/deploy.ts`. By default it
bundles with Docker and calls `POST /v1/projects/{ref}/functions` or
`PATCH /v1/projects/{ref}/functions/{slug}` per function, then one bulk
`PUT /v1/projects/{ref}/functions`. With `--use-api`, or when Docker
isn't running, it calls `POST /v1/projects/{ref}/functions/deploy` per
function. Because of that, the text doesn't name a single endpoint. The
Edge Function invocation URL comes from the Edge Functions quickstart.

## Checklist

- [x] I have read the [Contributing
Guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] I have checked that the change works in the preview deployment

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1764](https://linear.app/supabase/issue/DOCS-1764/say-which-requests-count-toward-the-management-api-rate-limit).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-24 13:53:09 -07:00
supabase-vercel-tedd[bot] 101afae233 docs(auth): warn that users can change their own user metadata (#53973)
## Problem

The "Adding and retrieving user metadata" section of the Managing user
data guide shows how to set and read user metadata, but never says that
users can change it themselves. A reader could store roles or tenant IDs
there and trust them in RLS policies or app logic.

Related to
[FDBKIN-25396](https://linear.app/supabase/issue/FDBKIN-25396/document-that-raw-user-meta-data-is-client-mutable)
Closes
[DOCS-1763](https://linear.app/supabase/issue/DOCS-1763/warn-that-users-can-change-their-own-user-metadata-in-user-management)

## Solution

Adds a danger admonition at the end of the section. It explains that any
signed-in user can rewrite their own `user_metadata`, including the
claim in the JWT, so it must not hold authorization data or be trusted
in RLS. It points readers to `app_metadata` for values users must not
change, which only a trusted server with the secret key can set. It
links to the existing warnings on the Users page and in the RLS guide
instead of repeating them.

## How to verify

1. Open `/docs/guides/auth/managing-user-data` on the preview and scroll
to "Adding and retrieving user metadata".
2. Below the retrieval code tabs, a danger callout says that users can
change their own user metadata and that it must not hold roles or tenant
IDs or be trusted in RLS policies.
3. The callout says to store values that users must not change in
`app_metadata`.
4. The links to the user object
(`/docs/guides/auth/users#the-user-object`), `auth.jwt()`
(`/docs/guides/database/postgres/row-level-security#authjwt`), the
secret key page, and `auth.admin.updateUserById()` resolve and land on
the right sections.

## Checks

Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm
turbo run lint --filter='[origin/master]'`, and `pnpm exec oxfmt
--check` on the changed file; all pass. Docs tests skipped because they
need Docker. Checked behavior against `supabase/auth`
`internal/api/user.go` (`UserUpdate`: `data` updates user metadata with
no admin check; `app_metadata` from a non-admin returns `not_admin`) and
`internal/models/user.go` (`UpdateUserMetaData` merges keys and deletes
null ones).

## Checklist

- [x] I have read the [contributing
guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] The change is scoped to one docs section and adds no code samples

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1763](https://linear.app/supabase/issue/DOCS-1763/warn-that-users-can-change-their-own-user-metadata-in-user-management).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-24 13:52:36 -07:00
supabase-vercel-tedd[bot] 962ea89399 docs: show which roles can delete the production branch (#53972)
## Problem

The project permissions table on the access control page lists Read and
Write for the production branch, but not Delete. Readers can't tell
whether a Developer can delete the production branch, though the table
shows that one can delete development branches.

Related to
[FDBKIN-36106](https://linear.app/supabase/issue/FDBKIN-36106/clarify-docs-on-branch-deletion-behavior-with-rbac-for-different-user)
Closes
[DOCS-1760](https://linear.app/supabase/issue/DOCS-1760/show-which-roles-can-delete-the-production-branch-in-the-project)

## Solution

The Branching rows on the Access Control page now have a Delete
permission for the production branch. Only Owner and Administrator can
use it. This matches the minimum role that the authorization model sets
for deleting the production branch. The other rows and the footnotes
stay the same.

## How to verify

1. Open `/docs/guides/platform/access-control#branching-permissions` on
the preview.
2. Under Production Branch, a Delete row shows a check for Owner and
Administrator and a cross for Developer and Read-Only.
3. The Development Branches rows (List, Create, Update, Delete) and the
footnotes read as before.
4. The new row has the same columns and icons as the rows around it.

## Checks

Ran `pnpm turbo run typecheck --filter='...[origin/master]'`, `pnpm
turbo run lint --filter='[origin/master]'`, and `pnpm exec oxfmt
--check` on the changed file. All passed. I checked the roles against
`branching_production_delete: 'administrator'` in
`apps/studio/components/interfaces/Account/AccessTokens/AccessToken.roles.ts`
and against the delete-branch endpoint requirements in
`packages/api-types/types/fga-requirements.ts`. I skipped the docs tests
because they need Docker.

## Checklist

- [x] I have read the [contributing
guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md).
- [x] The PR title follows the Conventional Commits format.
- [x] The change is limited to the scope described above.

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1760](https://linear.app/supabase/issue/DOCS-1760/show-which-roles-can-delete-the-production-branch-in-the-project).
Tedd doesn't read comments on this PR.

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-24 13:50:05 -07:00
supabase-vercel-tedd[bot] cce655195d docs(rls): explain how policy conditions let Postgres use partial indexes (#53970)
## Problem

The "Add indexes" section of the Row Level Security guide covers plain
and composite btree indexes, but not partial indexes. A reader whose
policy filters on a fixed condition, such as a status flag, can't tell
how to index it.

Related to
[FDBKIN-31278](https://linear.app/supabase/issue/FDBKIN-31278/clarify-coordination-between-rls-policies-and-partial-indexes-for)
Closes
[DOCS-1761](https://linear.app/supabase/issue/DOCS-1761/explain-how-rls-policy-predicates-let-postgres-use-partial-indexes)

## Solution

"Add indexes" in the RLS guide now explains that Postgres applies a
policy's condition like a `where` clause. A condition that doesn't
depend on the user therefore lets queries use a partial index with the
same predicate. Postgres matches only some equivalent forms, so the
section tells readers to write the policy condition and the index
predicate the same way. The example follows the section's existing
pattern, a `test_table` policy followed by the index that serves it, and
the section links to the partial indexes section of the indexes guide.

## How to verify

1. Open `/docs/guides/database/postgres/row-level-security#add-indexes`
on the preview.
2. The section explains that a policy's fixed condition lets queries use
a partial index with the same predicate, and that both should be written
the same way.
3. The section has a `test_table` policy `using ( not is_archived )`,
then a partial index `where not is_archived`, in the same style as the
other examples in the section.
4. The section says a `using ( is_archived is false )` policy can't use
that index.
5. The "partial index" link opens the Partial indexes section of the
indexes guide.

## Checks

I ran `pnpm turbo run typecheck`, `pnpm turbo run lint`, and `pnpm exec
oxfmt --check` on the changed file. To test the snippets, I ran them in
PGlite (Postgres 17) on a 200k-row `test_table`, then ran `explain` as
`authenticated` on an `order by created_at desc limit 10` query.
Policies `not is_archived` and `is_archived = false` both used the
partial index. Policies `is_archived is false` and `using (true)` both
used a sequential scan. Behavior checked against the Postgres docs for
[partial
indexes](https://www.postgresql.org/docs/current/indexes-partial.html)
and [CREATE
POLICY](https://www.postgresql.org/docs/current/sql-createpolicy.html).
I skipped the docs tests because they need Docker.

## Checklist

- [x] I have read the [contributing
guidelines](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md).
- [x] My change follows the docs style guide.
- [x] I have checked that the links resolve.

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[DOCS-1761](https://linear.app/supabase/issue/DOCS-1761/explain-how-rls-policy-predicates-let-postgres-use-partial-indexes).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-24 13:49:27 -07:00
Jordi Enric 9c4fdbf249 feat(studio): add custom report blocks in batches DEBUG-32 (#53932) 2026-11-24 18:26:48 +01:00
Etienne Stalmans 76b8dfd2e5 chore: ssl enforcement doesn't restart db (#53860)
## Problem

SSL enforcement currently warns that the database will be restarted.
This is no longer the case.

## Solution

SSL enforcement no longer restarts the database. Update references to
indicate that only non-SSL enabled connections are disabled. Only
display warning when enabling SSL enforcement.


## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] 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)
2026-11-24 17:51:11 +01:00
supabase-vercel-tedd[bot] 1f6ee9e8b9 chore(www): replace markdown-toc with the local TOC helper to drop vulnerable toml (#53879)
## Problem

`markdown-toc@1.2.0` (its latest release) depends on
`gray-matter@2.1.1`, which pins `toml@^2.3.2`. That leaves `toml@2.3.6`
in the lockfile, and `pnpm audit` flags it with several high-severity
advisories (fixed in `>=5.0.1`). Neither parent has a release that moves
off toml 2.x, so a lockfile-only bump or a temporary override can't
remove it.

## Solution

The customer story (`/customers/[slug]`) and alternatives
(`/alternatives/[slug]`) pages built a `toc` prop at build time, but
neither page nor `LayoutComparison` ever read it. This PR removes that
prop, the `markdown-toc` dependency, and `apps/www/lib/toc.ts`, which
had no other callers. With `markdown-toc` gone from
`apps/www/package.json`, `gray-matter@2.1.1` and `toml` leave the
dependency tree. www keeps using `gray-matter@4.0.3` directly. The
lockfile change only removes entries.

## Review instructions

1. Run `pnpm why toml --recursive` and check it finds no `toml`.
2. Run `pnpm tsx scripts/fix-audit-vulnerability.ts --json` and check
`toml` is not in `vulnerabilities`.
3. Open a customer story on the preview, for example
`/customers/asap-work`, and an alternatives page, for example
`/alternatives/supabase-vs-auth0`. Each page builds and renders as it
does on production.

Checks run: `pnpm install --frozen-lockfile`, `pnpm run typecheck` in
`apps/www` (next typegen + tsc), eslint on both changed pages (no
errors), and `oxfmt --check` on the changed files.

## Checklist

Check all before review:

- [ ] 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)


[FE-5192](https://linear.app/supabase/issue/FE-5192/bump-a-single-vulnerable-dependency)

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[FE-5192](https://linear.app/supabase/issue/FE-5192/bump-a-single-vulnerable-dependency).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-24 16:44:02 +01:00
supabase-vercel-tedd[bot] 8fe6df84f3 chore(deps): bump vitest to 5.1.1 (#53945)
## Problem

`pnpm audit` reports a moderate advisory for `@vitest/mocker` 5.0.0,
which `vitest` 5.0.0 pulls in. An override can't fix it, because
`vitest` pins its own `@vitest/mocker` version.

## Solution

Raise the workspace catalog entries for `vitest`, `@vitest/coverage-v8`
and `@vitest/ui` from `^5.0.0` to `^5.1.1`, and regenerate the lockfile
with `pnpm install`. The three packages ship together, so they move
together to keep their peer versions matched. Every workspace package
uses `catalog:` for them, so no `package.json` changes.

## Checks

- `pnpm install` resolves `vitest` and `@vitest/mocker` to 5.1.1. `pnpm
audit` no longer reports `@vitest/mocker`, and `pnpm peers check`
reports no vitest peer issues.
- `pnpm --filter common exec vitest run`: 302 tests pass. `pnpm --filter
ui exec vitest run`: 85 tests pass.
- `pnpm --filter dev-tools exec vitest run` has one failing test
(`getEventCountBadge > returns a capped pill for large counts`). It
fails the same way on master before this change.
- Full typecheck and the other test suites are left to CI.

## How to verify

- CI passes: typecheck, lint, and the unit test jobs for every package
that uses vitest.
- `pnpm why vitest --recursive` shows only 5.1.1.
- `pnpm audit` lists no advisory for `@vitest/mocker`.

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[FE-5188](https://linear.app/supabase/issue/FE-5188/bump-a-single-vulnerable-dependency).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-24 16:07:40 +01:00
Jordi Enric 15fcb7dc49 fix(studio): refresh observability charts for the selected range FE-5122 (#53931)
## Problem

A custom date range in a Storage report URL could show one window in the
header and another in the charts. Refresh also left Database Size and
several Auth charts showing cached results.

## Fix

Use the selected window for all Storage report requests, run the
Database Size query on refresh, and refresh Auth Usage, Errors and
Latency alongside the shared API charts.

## How to test

- Open Storage with a custom start and end time in the URL. Inspect the
chart requests on load and after Refresh. Both sets should use those
exact timestamps.
- Refresh the Database report and check that the large objects query
runs again.
- Open Auth with a fixed range and press Shift+R. The Usage, Errors,
Latency and API charts should request fresh data for the same range.

Fixes [FE-5122](https://linear.app/supabase/issue/FE-5122).
2026-11-24 15:31:11 +01:00
Fernando 9c0e1c7dc3 Add myself to humans.txt (#53948)
Add myself to humans.txt
2026-11-24 15:26:00 +01:00
anthony lio d885fc7458 feat(www): shared account menu (#53666)
## Problem

- www keeps its own copy of the account menu items separate from the
shared top nav menu in kb and docs
- www header buttons stay hidden until auth loads and the mobile menu
shows no account links during that time
- on app router page such as the home page sign out does not reload the
page

## Solution

- moves the www desktop account menu onto the shared top nav menu so www
docs and kb show the same account items
- fixes "Command Menu" shortcut label to follow the platform, so windows
and linux readers see "Ctrl K"
- changes the header and the mobile menu to read the signed-in mark
while auth loads
- moves the mobile menu account links onto the shared mobile actions, so
www, docs and kb use one component
- changes the desktop "Sign in" links to open the sign-in page, so
desktop and mobile open the same page
- fixes sign out on app router pages so the page reloads after sign out
on every page

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions


1. visit
[homepage](https://zone-www-dot-com-git-antlio-fix-www-shared-account-menu-supabase.vercel.app/)
2. open the browser console, and run this snippet, which stores a fake
dashboard session with no real token:
   ```js
const user = { id: 'test', aud: 'authenticated', email:
'you@example.com', user_metadata: { avatar_url:
'https://github.com/supabase.png' } }
   const key = 'supabase.dashboard.auth.token'
localStorage.setItem(key, JSON.stringify({ access_token: 'a.b.c',
refresh_token: 'r', token_type: 'bearer', expires_in: 3600, expires_at:
Math.floor(Date.now() / 1000) + 3600, user }))
   localStorage.setItem(`${key}-user`, JSON.stringify({ user }))```
3. reload the page

## Checklist

Check all before review:

- [x] 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)
2026-11-24 16:08:54 +02:00
anthony lio c2292c97f2 fix(docs): shared account menu (#53620)
## Problem

- docs menu keeps its own copy of the account items, separate from the
shared top nav menu that #53558 adds for kb
- docs header waits for auth, so a signed-out reader sees "Sign up"
appear after load and the header shifts

## Solution

- moves the docs desktop account menu onto the shared top nav menu, so
docs and kb show the same account items and sign out
- changes the shared menu button to show the avatar of the reader or a
person icon when there is no avatar, so kb gets the avatar too
- changes the docs "Sign up" link and the menu button to read that mark
while auth loads so the header is correct at first paint

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. open
[/docs/guides/getting-started](https://docs-git-antlio-fix-docs-shared-account-menu-supabase.vercel.app/docs/guides/getting-started)
with the network set to "Slow 4G" in devtools
2. make sure that "Sign up" shows on the first frame and that the header
does not shift when the page finishes loading
3. make sure that the browser console shows no react error 418
4. open the browser console on the preview, and run this snippet, which
stores a fake dashboard session with no real token:
   ```js
const user = { id: 'test', aud: 'authenticated', email:
'you@example.com', user_metadata: { avatar_url:
'https://github.com/supabase.png' } }
   const key = 'supabase.dashboard.auth.token'
localStorage.setItem(key, JSON.stringify({ access_token: 'a.b.c',
refresh_token: 'r', token_type: 'bearer', expires_in: 3600, expires_at:
Math.floor(Date.now() / 1000) + 3600, user }))
   localStorage.setItem(`${key}-user`, JSON.stringify({ user }))
5. reload the page

## Checklist

Check all before review:

- [x] 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)
2026-11-24 16:08:54 +02:00
anthony lio ef8005d863 fix(kb): header sign in state (#53558)
## Problem

- the kb header shows "Sign up" to every reader, also to readers who are
signed in to the dashboard
- kb never reads the dashboard session, so a signed-in reader has no
link to the dashboard and no way to sign out

## Solution

- reads the dashboard session in the kb header with the shared
`AuthProvider` from `common/auth`, the same as docs and www
- changes the header link to "Dashboard" for a signed-in reader, and
keeps "Sign up" for other readers and in the server html, so the header
does not move on load
- adds the email, "Account Preferences", "All Projects" and "Sign out"
to the header menu for a signed-in reader, the same as the docs menu
- changes the mobile menu footer to "Sign in" and "Start your project",
or to "Dashboard" for a signed-in reader, the same as the docs drawer
- adds tests that store a session and check the header and mobile menu
links

| before | after |
| --- | --- |
| <img width="760" height="1000" alt="image"
src="https://github.com/user-attachments/assets/424feb44-4008-4d8e-b994-bd7d5c103bc3"
/> | <img width="760" height="1000" alt="image"
src="https://github.com/user-attachments/assets/54be6c7d-39e1-45ac-9a79-9fc0650d251c"
/> |

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. open
[/kb](https://kb-git-antlio-fix-kb-header-sign-in-state-supabase.vercel.app/kb)
at a desktop width, and make sure that the header link shows "Sign up"
2. open the browser console on the preview, and run this snippet, which
stores a fake dashboard session with no real token:
   ```js
const user = { id: 'test', aud: 'authenticated', email:
'you@example.com' }
   const key = 'supabase.dashboard.auth.token'
localStorage.setItem(key, JSON.stringify({ access_token: 'a.b.c',
refresh_token: 'r', token_type: 'bearer', expires_in: 3600, expires_at:
Math.floor(Date.now() / 1000) + 3600, user }))
   localStorage.setItem(`${key}-user`, JSON.stringify({ user }))
3. reload page

## Checklist

Check all before review:

- [x] 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)
2026-11-24 16:08:54 +02:00
Kody Jackson 5aed230adb content(kb) - react native auth listicle (#53550)
## Context

React native auth listicle

## Preview link


https://kb-git-kody-devrel-855-react-native-auth-supabase.vercel.app/kb/guides/best-react-native-authentication-providers
2026-11-24 08:01:56 -06:00
Ivan VasilovandClaude Sonnet 5.5 50bab5657f chore: bump pnpm to 12.21.0 (#53676)
Splits the pnpm bump out of #53589 so the Node 26 bump can land on its
own.

Updates `packageManager`, `engines.pnpm`, the studio Dockerfile, the www
turbo-build fixture, and the lockfile header.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 14:33:40 +01:00
claude[bot]andClaude d6c9751f16 legal: add Supplemental Terms version 2 (November 24, 2026) (#53944)
<!-- claude-slack-attribution -->
_Requested by **Nicole Kramer** · [Slack
thread](https://supabase.slack.com/archives/C0161K73J1J/p1795524649703999)_

**Before:** The hidden Supplemental Terms page
(`/legal/customer-resources/supplemental-terms`) lists only Version 1
(October 27, 2026).

**After:** The page lists Version 2 (November 24, 2026) first, with
Version 1 still available in the version list. The page remains unlinked
from navigation and `noindex`/`nofollow`.

Adds version 2 of the Supplemental Terms (Germany: Professional Secrecy)
from the supplied Word file.

**How:** The docx was converted with `pandoc -f docx -t gfm --wrap=none`
and written to `v2.mdx` following the v1 conventions (Heading 1 becomes
`##`, Heading 2 becomes `###`, no title heading, no `_Last Modified:_`
line, the Google Form link kept as `[url](url)`). Text is verbatim from
the source. `supplemental-terms.tsx` imports `V2` and adds it as the
first entry in `versions`; the v1 entry is unchanged.

## Review instructions

1. Open the preview at `/legal/customer-resources/supplemental-terms`
and confirm Version 2 is the default and Version 1 is selectable.
2. Compare `v2.mdx` against the source docx for text accuracy.

---
_Generated by [Claude Code](https://claude.ai/code)_

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-24 13:09:59 +00:00
Gildas Garcia 8583896114 feat(studio): Improve OAuth app consent screen loading state (#53927)
## Problem

The OAuth consent screen appears before the preflight data has loaded,
briefly showing the default state.

## Solution

Keep the loading animation visible until that request completes so users
do not see the intermediate state

## Review instructions

- Throttle the network speed in the browser devtool 
- Using the OAuth example app, reauthorize an app (preferably one that
targets projects as it's easier to see the preflight has loaded)
- Verify you only see the consent form with the existing grant settings
applied (the projects are pre-selected)
2026-11-24 12:28:35 +01:00
Alaister YoungandAlaister Young ff4638535e chore(dev-tools): remove next dependency (#53902)
Removes the `next` dependency from `packages/dev-tools` so it works
cleanly across both Next.js apps (`www`, `docs`) and TanStack Start
(`studio`).

**Removed:**

- `next/image` imports in `DevToolbar` and `DevToolbarTrigger`
- `next/image` mock and `next/navigation` test mock in
`packages/dev-tools`
- `next` and `next-router-mock` from `packages/dev-tools/package.json`
- `apps/studio/public/img/logo-pixel-small-light.png` (now unused)

**Added:**

- `DevToolbarLogo` component using an inline data URI for the 244-byte
pixel logo (also fixes the missing `/img/logo-pixel-small-light.png`
icon in `docs` and `www`). It's decorative (`alt=""` + `aria-hidden`)
since the trigger and sheet are already labelled

## To test

- Open the dev toolbar in Studio, Docs, and WWW in local dev
(`window.devToolbar()`) and verify the pixel logo renders in both the
trigger button and the toolbar header
- Run `packages/dev-tools` tests and typecheck (`getEventCountBadge >
returns a capped pill for large counts` also fails on master and isn't
touched here)

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-24 19:25:28 +08:00
supabase-vercel-tedd[bot]andIvan Vasilov 245d052f9a chore(api-types): regenerate types from production API specs (#53870)
## Problem

The committed platform API types in `packages/api-types` were behind the
production OpenAPI specifications.

## Solution

Regenerated the types with `pnpm api:codegen:prod`. The v2 spec adds
Warehouse replication endpoints (`add`, `remove`, `resync`, `restart`)
with their request and response schemas, and the matching FGA
requirements. It also restructures the Warehouse table layout update
request. Nothing in the repo used that request, so no consumer needed a
change. The platform spec adds an optional runtime `diagnostic` on
pipeline status and `423` responses for operations that are already in
progress, and updates several descriptions. This PR has no hand edits
and no runtime changes.

## Review instructions

1. Run `pnpm api:codegen:prod` from the repo root and confirm that the
working tree stays clean.
2. Run `pnpm turbo run typecheck --filter='...[origin/master]'` and
confirm that it passes.

## Checks

- `pnpm turbo run typecheck --filter='...api-types' --filter='!studio'
--continue`: 23/23 passed.
- Studio's `tsc --noEmit` (TypeScript 7) passed on its own, both
single-threaded and multi-threaded. Under turbo's parallel run it can
run out of memory in an 8 GB environment.
- `oxfmt --check` passed on the three generated files.

## Checklist

Check all before review:

- [x] 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)


[FE-5193](https://linear.app/supabase/issue/FE-5193/update-the-api-types)

## Feedback for Tedd

To ask Tedd for a change to this PR, reply in Tedd's session on
[FE-5193](https://linear.app/supabase/issue/FE-5193/update-the-api-types).
Tedd doesn't read comments on this PR.

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2026-11-24 12:21:50 +01:00
Joshen Lim 04b7b003f9 Autoscale fields should only be disabled if HA (#53922)
## Context

Realised that we're disabling Autoscale input fields in project settings
if the project's disk size change is on cooldown, but it shouldn't be
coupled to the cooldown to update autoscale values

## To test
Have verified myself on staging preview, but just to sure:
- [ ] Verify that you can update your project's autoscaling values
- [ ] Trigger a disk size cooldown (e.g update disk size)
- [ ] Verify that you can still update your project's autoscaling values
2026-11-24 17:50:18 +07:00
fc228529bc chore: bump to Node 26 (#53589)
Aligns with our backend and updates to the latest LTS version of Node.

Vercel already supports Node 26, so we can switch the Vercel
configuration as well, but that shouldn't need immediate coordination as
part of the deployment. To prevent errors on Vercel builds, we are using
`>=24` in the `package.json`, so this can be deployed on 24.x and 26.x.
Once all Vercel deployments are switched to 26.x, we can pin this to 26.

The pnpm bump lives in a separate PR.

---------

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-24 10:43:35 +00:00
supabase-cli-releaser[bot]andgithub-actions[bot] 81becce538 chore: update cli config schemas (#53844)
Updates the published JSON Schemas from the supabase/cli release
workflow.

Generated by `scripts/publish-schemas.ts` in supabase/cli from
`apps/cli/schemas`. Regenerate them in supabase/cli rather than editing
this folder.
Published versions below the current one are frozen and never rewritten.

Auto-merge is enabled: the PR squash-merges once a reviewer approves it.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-24 10:42:14 +00:00
Pamela Chia d2709729d6 feat(studio): track the plan change flow after the plan CTA click (#53916)
Studio sends no events between the plan CTA click and the backend's
subscription update, so we can't see where people stop in the plan
change flow. The redesigned plan change screen from #53670 is also gated
by a ConfigCat flag, and ConfigCat flag values are not attached to
events, so its rollout can't be compared against the legacy dialog. I
added the missing events and a property for the flag state.

**Changed:**
- **Which screen a user gets**: I added `planUpdateRedesignEnabled` and
`origin` (the `source` query param the panel was opened with) to
`studio_pricing_plan_cta_clicked`.
- **Confirm and completion**: the redesigned screen now sends
`studio_pricing_plan_change_confirm_clicked` on the confirm button and
`studio_pricing_plan_change_completed` once the change succeeds. A
payment confirmation that the API answers with 202 (payment taken, plan
still syncing) counts as completed too.
- **Compute explainer and docs links**: expanding "Billed every hour,
even when idle" sends `studio_pricing_compute_billing_explainer_opened`,
and the compute and project transfer docs links send
`studio_pricing_plan_change_docs_link_clicked`.
- **Stale origin**: closing the pricing panel now removes `source` from
the URL. Before, reopening the panel from the billing page reported the
previous entry point as the origin.

**Note:** the legacy dialog gets no new events, and
`planUpdateRedesignEnabled` should be removed together with it.

## To test
Needs the `billingPlanUpdateRedesign` flag on. Watch the
`telemetry/event` requests in the network tab.

Tested on the PR preview:
- [x] Open `/org/<slug>/billing?panel=subscriptionPlan&source=backups`
on a Free org and click "Upgrade to Pro", expect
`studio_pricing_plan_cta_clicked` with `planUpdateRedesignEnabled: true`
and `origin: "backups"`. Observed, and the redesigned screen opened.
- [x] On the same panel, click the Enterprise card's "Contact us",
expect exactly one `studio_pricing_plan_cta_clicked` with `selectedPlan:
"Enterprise"`, `planUpdateRedesignEnabled: true` and `origin:
"backups"`. Observed, one event.
- [x] Expand "Billed every hour, even when idle", expect one
`studio_pricing_compute_billing_explainer_opened`. Collapse it, expect
no event. Observed, and a second expand sent a second event.
- [x] Click "Learn about compute", expect
`studio_pricing_plan_change_docs_link_clicked` with `docsLink:
"compute"`. Observed, and the "Transfer" link sent `docsLink:
"project_transfer"`.
- [x] Go back and close the pricing panel, expect `source` to be gone
from the URL. Observed: the URL ended at `/billing` with no `panel` or
`source`.
- [x] With the flag overridden off and the page reloaded, click "Upgrade
to Pro", expect `planUpdateRedesignEnabled: false` and the legacy
dialog. Observed.
- [x] Confirm with a declining card, expect
`studio_pricing_plan_change_confirm_clicked` and no
`studio_pricing_plan_change_completed`. Observed: the subscription
update returned 402 and no completion was sent.
- [x] Confirm the upgrade with a test card, expect
`studio_pricing_plan_change_confirm_clicked` then one
`studio_pricing_plan_change_completed` with `currentPlan: "Free"`,
`selectedPlan: "Pro"`, `origin: "backups"` and no project group.
Observed, with `groups` holding only `organization`.
- [x] Upgrade again with a card that requires 3D Secure, expect one
`studio_pricing_plan_change_completed`, sent only after the challenge.
Observed on a Pro to Team change.

I also confirmed ingestion by querying the staging PostHog project: all
five events from this run arrived from the preview host with the
properties above. The run included the CTA click with both `true` and
`false` for `planUpdateRedesignEnabled`, `docsLink` values `compute` and
`project_transfer`, completions for Free to Pro and Pro to Team, and
only an organization group on every event.

## Linear
- fixes GROWTH-1565
2026-11-24 18:40:22 +08:00
Pamela Chia 5e68983307 fix(studio): send the pricing panel opened event after the org loads (#53919)
`studio_pricing_side_panel_opened` fires as soon as the pricing panel is
visible. On a page load that lands on `?panel=subscriptionPlan`, that is
before the organization and subscription have loaded, so the event went
out without `currentPlan` (about 45% of these events) and sometimes
without the organization group. I now send it once the selected
organization has loaded, and read `currentPlan` from the organization.
The tracking lives in a small `useTrackPanelOpened` hook in the same
file.

**Note:** I read the plan from the organization instead of the
subscription because the subscription query waits on a billing
permission check and never runs for members without billing access.
`EnterpriseCard` already sources `currentPlan` the same way.

## To test
Watch the `telemetry/event` requests in the network tab.

Tested on the PR preview:
- [x] Load `/org/<slug>/billing?panel=subscriptionPlan&source=backups`
with a full page load, expect one `studio_pricing_side_panel_opened`
with `currentPlan` set, `origin: "backups"` and `groups.organization`
set. Observed on three consecutive full loads, one event each.
- [x] From the billing page, click "Change subscription plan", expect
one `studio_pricing_side_panel_opened` with `currentPlan` set. Observed,
with the organization group set.
- [x] Close the panel and open it again, expect one more event. Leave it
open, expect no further events. Observed.

I also confirmed ingestion by querying the staging PostHog project:
every event from this run arrived from the preview host with
`currentPlan` and the organization group set.

## Linear
- fixes GROWTH-1566
2026-11-24 18:18:10 +08:00
Pamela ChiaandJoshen Lim 86ab87efd7 chore(studio): remove the onboarding survey experiment flag (#53918)
The onboarding survey experiment on the new-org form is finished and the
survey version is now the default. I removed the
`onboardingSurveyPlacement` flag from Studio: the form always shows the
survey, and I deleted the old form path.

**Changed:**
- **New-org form**: always renders the name field plus the optional
"Help improve Supabase" survey card. Org type and size are saved through
the survey endpoint only, as they already were for the survey variant.
- **Experiment plumbing removed**: I deleted the flag read, its exposure
event (`onboarding_survey_placement_experiment_exposed`) and the variant
constants, so the form no longer starts on the old layout while flags
load.
- **Tests**: the survey tests keep their assertions with the flag setup
removed. I deleted the test for the old form (org type sent at creation,
no survey) because that behavior no longer exists.

**Note:** I removed the `renderFieldWrapper` option from
`OrganizationDetailsFields`, which only the old form path used. The
cloud marketplace org form still uses the component unchanged.

## To test

Tested on the PR preview:
- [x] Sign in and open `/new`: expect a Name field with no Type field
above the plan picker, and a "Help improve Supabase" card with the org
type, "What are you building?" and "Do you know how to code?" questions.
Observed: Name, Plan, then the card with "Who is this org for?" (default
Personal) and both questions.
- [x] Create a free org with the survey untouched: expect the create
request body to carry no `kind` or `size`, no `onboarding-survey`
request, and the follow-up card on the new org's projects page.
Observed: create body `{"name":"…","tier":"tier_free"}` (201), no survey
request, and the follow-up card with Answer and Skip on the org page.
- [x] Create a free org with type Company, a company size and a "What
are you building?" answer: expect one `POST
/platform/organizations/onboarding-survey` with those answers returning
204, and no follow-up card. Observed: one request with `kind:
"COMPANY"`, `size: "50"`, `building: "b2b_saas"` (204), create body
again without `kind` or `size`, no follow-up card.
- [x] Watch telemetry requests while `/new` loads: expect no
`onboarding_survey_placement_experiment_exposed` event. Observed: none
across both org creations, while `onboarding_survey_dismissed` and
`onboarding_survey_submit_button_clicked` (both `surface: org_form`)
were sent.
- [x] Added: the survey card is in the first render of `/new` and the
Name input keeps focus, with no layout switch after flags load.

## Linear
- fixes GROWTH-1562

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-11-24 18:13:38 +08:00
Pamela Chia 06fc7c4f4e fix(studio): clear telemetry cookies on sign-out (#53915)
Studio's sign-out never called the API to clear the HttpOnly telemetry
cookies (`user_id`, `organization_slug`, `project_ref`). Events sent
from the sign-in page after a sign-out were still recorded under the
user who had just signed out, and the next user on that browser
inherited the previous user's org and project cookies. I call the
existing `resetServerTelemetryCookies` helper (already used when consent
is withdrawn) from `useSignOut`, right after the auth sign-out, and only
when a session existed. A stored session whose refresh fails during
sign-out counts as existing.

**Note:** `withAuth` also calls `useSignOut` when a visitor with no
session opens a protected page. I skip the reset there because the
endpoint also clears the anonymous id and session id cookies, and a
visitor who has not signed in yet needs them until sign-in links them to
the account. When the reset does run, I make sign-out wait for it
(capped at 1 second by the helper) so the sign-in page cannot send an
event with the old cookies first.

## To test

Tested on the PR preview:
- [x] Sign in, open the network tab, then click "Sign out" in the avatar
menu: expect one `POST /platform/telemetry/reset` with a 2xx response.
Observed: one reset request (201), sent right after the auth `logout`
request (204).
- [x] While signed out, open a protected page such as
`/dashboard/organizations`: expect a redirect to sign-in and no `POST
/platform/telemetry/reset`. Observed: redirect to
`/dashboard/sign-in?returnTo=%2Forganizations`, no reset request.

The preview is cross-site to the staging API, so the browser never
stores these `SameSite=Lax` cookies there and the cookie-clearing effect
cannot be observed on it. I'll check that on the staging dashboard after
merge.

## Linear
- fixes GROWTH-1556
2026-11-24 18:12:36 +08:00
anthony lio 1a37362821 chore(billing): plan selection styling (#53841)
## Problem

- plan cards on the studio upgrade screen do not match recent plan cards
updates to the pricing page
- add-on illustrations on the pricing page sometimes show the light
image in dark mode
- spend cap bars on the pricing page flash when a user toggles the spend
cap


## Solution

- changes the upgrade screen plan cards to the pricing page design +
shows enterprise as a fourth column
- moves the lifted card style to the current plan of the organization +
gives it a neutral "current plan" badge
- moves the compare plans and pricing faq links below the plan cards +
removes the stagger animation on the cards
- changes the pricing page illustrations to pick the light or dark image
with css because the server render does not know the theme
- changes the spend cap animation to resize the bars instead of
remounting them
2026-11-24 18:04:01 +08:00
K-Dog (Kevin) aa0fb9e84b fix: plan upgrade price rounding (#53924)
While we want to round up the price for compute, so it does not display
$9.87 or the likes, we do not want any type of rounding for taxes or
amount due.
2026-11-24 17:23:50 +08:00
Guillaume Faas 411e81bbd6 docs(csharp): update Client-Side Tracing guide for C# (#53928)
This PR updates the Client-Tracing Guide for C#, with the latest updates
from the tracing initiative.
2026-11-24 11:22:11 +02:00
Firdaws Farukh a7c7685158 Add Firdaws to humans.txt (#53602)
## Problem

Add Firdaws to humans.txt as part of the onboarding tasks

## Solution

Provide a brief description of the change and the key choices you made
when architecting the solution.
Feel free to include screenshots if it includes visual changes.

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

Provide a clear numbered procedure that the PR reviewer can walk
through.

1. For example, `Open the live and preview links side-by-side.`
2. For example, `See the issue is fixed.`

## Checklist

Check all before review:

- [ ] 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)
2026-11-24 12:07:54 +03:00
K-Dog (Kevin) 2d39665757 fix: do not display Free Micro upgrade on Platform Plan (#53920)
Streamline to use common helper function `isEligibleForFreeMicroUpgrade`
2026-11-24 16:54:56 +08:00
anthony lio 6697bd8e8c feat(docs): favor turbopack (#53787)
## Problem

- docs dev server runs on webpack making a css or tailwind edit takes 6
to 9 seconds to show in the browser
- next 16 uses turbopack by default but the `dev` and `build` scripts in
`apps/docs` still pass `--webpack`

## Solution

- changes the `dev` script to turbopack + keeps `build` on webpack
- adds turbopack rules for `.include` and yaml imports because
`next-plugin-yaml` only changes the webpack config
- changes the mdx plugins to module names because turbopack loader
options must be serializable
- changes the spec dynamic imports to a static prefix and suffix because
turbopack ignores `webpackInclude`

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. run `pnpm install` and `pnpm dev:docs`
2. open `http://localhost:3001/docs/guides/getting-started`
3. add a css change for instance in `apps/docs/styles/globals.css`
4. open `http://localhost:3001/docs/guides/local-development/cli/config`
and make sure that the config sections from the yaml spec show
5. open `http://localhost:3001/docs/reference/cli/introduction` and make
sure that the sidebar shows the cli sections
6. open
[/docs/reference/cli/introduction](https://docs-git-antlio-feat-docs-turbopack-supabase.vercel.app/docs/reference/cli/introduction)
on the preview and make sure that the webpack build shows the same
sidebar

## Checklist

Check all before review:

- [x] 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)
2026-11-24 09:43:27 +02:00
anthony lio ca2286dd56 feat(kb): hero refacto (#53626)
## Problem

- kb home and topic heroes stay blank on load because their canvases
wait for react dom and hydration
- the guide lists fade in row by row so the rows show late (i liked it
at first but now doesn't feel right)

## Solution

- changes the heroes to start from a small head script so the first
frame does not wait for react
- changes the heroes to hydrate only the home search button so a
hydration mismatch cannot remove the running canvases
- removes the stagger from the guide lists
- moves the `GlyphLines` canvas code and `toOpaque`, now `flattenColor`
into modules without react

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions

1. open
[/kb](https://kb-git-antlio-kb-hero-refacto-supabase.vercel.app/kb) now
rings should show faster vs prod
2. open
[/kb/topics/auth](https://kb-git-antlio-kb-hero-refacto-supabase.vercel.app/kb/topics/auth),
reload, and make sure that the grid lines and shapes show directly after
the title

## Checklist

Check all before review:

- [x] 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)
2026-11-24 09:18:11 +02:00
claude[bot]andClaude 3e751f8b08 chore(www): bump MCP server card to 0.19.0 (#53914)
<!-- claude-slack-attribution -->
_Requested via [Slack
thread](https://supabase.slack.com/archives/C076KTY11DF/p1795124021188299)_

**Before:** The MCP server card at `/.well-known/mcp/server-card.json`
names version `0.18.0`.

**After:** The card names version `0.19.0`, the latest
`@supabase/mcp-server-supabase` release (published 2026-11-20).

One-line change to the card's `version` field; nothing else in the card
changes.

## To test

- [ ] Open `/.well-known/mcp/server-card.json` on this PR's www preview
and expect `"version": "0.19.0"`.

## Linear

- fixes GROWTH-1564

---
_Generated by [Claude Code](https://claude.ai/code)_

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-24 06:00:32 +00:00
K-Dog (Kevin) 8a49c1e3f9 refactor: plan upgrade screen (#53670)
A fully revamped plan change screen covering Free -> Paid Plan or Paid
Plan <> Paid Plan changes. Out of scope is the downgrade to Free Plan,
which is a separate modal and process. Besides a visual refresher of the
current modal, we are addressing common misconceptions about our pricing and being as transparent as possible.

The new modal is available behind the feature flag
`billingPlanUpdateRedesign`, which is enabled on local/staging and will
be rolled out gradually after further testing in production.
2026-11-24 13:52:36 +08:00
Alaister YoungandAlaister Young fcbdda8107 chore: migrate formatter from Prettier to oxfmt (#53835)
Migrate code formatting across the monorepo from Prettier to `oxfmt`
(`0.79.0`, pinned) for much faster formatting checks locally and in CI
while keeping code churn minimal (78 files total, 0.7% of the repo).

Studio's `@ianvs/prettier-plugin-sort-imports` ordering
(`<BUILTIN_MODULES>`, `<THIRD_PARTY_MODULES>`, blank line, then `@/` and
relative imports) is preserved via `oxfmt`'s native `sortImports`
override for `apps/studio/**/*.{js,jsx,ts,tsx}`.

### Performance (before vs after, uncached)

| Benchmark | Prettier (`3.8.x`) | oxfmt (`0.79.0`) | Speedup |
| --- | ---: | ---: | ---: |
| CI formatting step (`blacksmith-4vcpu-ubuntu-2404`, full repo) | `73s`
| **`7s`** | **~10×** |
| Local `apps/studio` JS/TS (`5,157` files) | `17.74s` | **`0.36s`** |
**~49×** |
| Local full monorepo (`11,131` files) | — | **`2.39s`** | — |

**Added:**

- `.oxfmtrc.jsonc` at repo root with Prettier-matching options,
`sortPackageJson: false`, the Studio `sortImports` override, and ignore
patterns migrated from `.prettierignore`
- `oxfmt` (`0.79.0` exact pin) in `pnpm-workspace.yaml` catalog and
workspace `devDependencies` / `dependencies`
- Shared `.agents/scripts/format_and_lint.sh` hook script and
`.agents/hooks.json` (used by both Claude Code and Antigravity)

**Changed:**

- Replaced `test:prettier` with `format:check` and switched `format` in
root `package.json` to `oxfmt`
- Updated `packages/api-types` (`codegen`,
`verify-production-types.mjs`), `apps/design-system` (`build:registry`),
`apps/docs` (`CodeSample.ts`, `generate-sitemap.ts`, `next.config.mjs`,
`spec/Makefile`), `apps/www` (`generate-sitemap.mjs`), and
`packages/build-icons` (`generateIconFiles.mjs`) from Prettier to
`oxfmt`
- Updated `.github/workflows/prettier.yml` (keeping the `format` job ID
intact), `.github/workflows/autofix_linters.yml`,
`.claude/settings.json`, `AGENTS.md`, `CONTRIBUTING.md`, and
`.github/copilot-instructions.md`
- Applied one-time `oxfmt` formatting pass in a separate commit (78
files: 30 `i18n/README.*.md` trailing spaces, 19 Studio files, 17 other
TS/TSX/generated types, 8 MD/MDX, 3 `package.json`, 2 example CSS files)

**Removed:**

- `prettier`, `@ianvs/prettier-plugin-sort-imports`, and
`prettier-plugin-sql-cst` from `devDependencies` (note: `.sql` files
were not part of the CI formatting glob; `eslint-config-prettier` is
kept for ESLint)
- `prettier.config.mjs`, `.prettierignore`, and
`.claude/scripts/format_and_lint.sh`

## To test

- Run `pnpm run format:check` and confirm it passes cleanly across all
matched files
- Run `pnpm --filter api-types test`, `pnpm --filter docs exec vitest
run features/directives/CodeSample.test.ts`, and `pnpm --filter www exec
vitest run generate-sitemap.test.ts`
- Edit an `apps/studio` file with out-of-order imports and run `pnpm run
format` to confirm builtin/third-party vs `@/`/relative grouping matches
prior behavior
- Check that the `Check Code Formatting` CI workflow passes on this PR

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-24 12:51:31 +08:00
K-Dog (Kevin) 57628c6de0 chore: Free Micro upgrade when filing a performance ticket (#53848)
If a user selects the "Performance" category on the support ticket form
and their project ref maps to a Nano project on a paid plan, show an
inline tip in the form itself, before submission, pointing to a
troubleshooting guide covering the free Micro upgrade and the usual perf
debugging steps (query optimization, advisors, etc.).

<img width="523" height="327" alt="Screenshot 2026-11-23 at 6 56 05 PM"
src="https://github.com/user-attachments/assets/b0b69866-3e34-443a-8405-23279e07e25c"
/>
2026-11-24 12:31:54 +08:00
Nik RichersandNik Richers 2d65bd395a fix(www): date the knowledge base launch post November 23 (#53904)
## Problem

The Knowledge Base launch post is dated 25 November 2026. It should be
23 November 2026.

DOCS-1721.

## Solution

The post date, filename, and image directory now use 23 November 2026.
The public URL stays `/blog/introducing-supabase-knowledge-base`.

## Review instructions

1. Compare
[production](https://supabase.com/blog/introducing-supabase-knowledge-base)
(25 November 2026) with the
[preview](https://zone-www-dot-com-git-nikrichers-docs-1721-kb-blog-date-supabase.vercel.app/blog/introducing-supabase-knowledge-base)
(23 November 2026).
2. Confirm the post still loads at
`/blog/introducing-supabase-knowledge-base`.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] 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)

Co-authored-by: Nik Richers <nik@validmind.ai>
2026-11-23 21:02:37 -07:00
Joshen Lim 85194a05d8 Joshenlim/fe 5190 move off scaffold components in (#53849)
## Context

Housekeeping to deprecate more deprecated UI components, this one's
focusing on the `Scaffold` components.
The main visual differences are just the width within PageSections since
the new components where the right content takes up a bit more width
than the left content. (Ref org billing + usage)

Starting the refactor with the organization pages:
- Billing
- Team
- Usage
- Settings -> SSO
- Settings -> Security
- Settings -> Audit Logs
- Settings -> Documents
2026-11-24 10:39:33 +07:00
Danny White d7c41b014f fix(studio): disambiguate inline SQL editor E2E selector (#53898)
## Problem

The inline editor test added in #53790 fails because its “SQL Editor”
selector matches both the inline editor trigger and the disabled sidebar
button.

## Solution

Target the inline editor's existing `editor-trigger` ID. This changes
only the test selector.

## Review instructions

No visual changes. The SQL Editor E2E test should open the inline editor
and confirm its results remain when expanded into the full SQL Editor.
2026-11-24 12:20:05 +11:00
supabase-vercel-tedd[bot]andAlexis Aguilar bdc7f1a527 docs(auth): add RLS policies for the profiles table in User Management (#53770)
## Problem

The "Accessing user data via API" section of the User Management guide
creates `public.profiles`, enables RLS, and adds a signup trigger, but
shows no policy. A reader who copies it gets a table that no client can
read. The section also never says that the trigger creates the profile
row, so readers try to insert it from the client after `signUp`, and
that insert fails under RLS.

Related to
[FDBKIN-20750](https://linear.app/supabase/issue/FDBKIN-20750/improve-guidance-on-creating-public-user-profile-tables-linked-to-auth)
Closes [DOCS-1728](https://linear.app/supabase/issue/DOCS-1728)

## Solution

The section now says that the trigger creates the profile row at signup,
and why it needs no insert policy: the `security definer` function runs
as `postgres`, which bypasses RLS. It explains that a client insert
fails without an insert policy, and that with no policies clients can't
read the table. Then it adds a select policy and an update policy that
let each signed-in user read and edit only their own row, keyed on this
page's `id` column. Other patterns link to the Row Level Security guide
instead of being repeated. The sentence that introduced the trigger said
it "updates" the table. It now says it creates a row.

## Checks

Ran Prettier on the changed file, plus `pnpm turbo run lint
--filter='[origin/master]'` and `pnpm turbo run typecheck
--filter='...[origin/master]'`, which passed. I ran the section's SQL
blocks in order as one script on PGlite (Postgres 17), with stub
`anon`/`authenticated`/`service_role` roles, an `auth.users` table, and
an `auth.uid()` that reads `request.jwt.claim.sub`. Results:
- The trigger created profile rows with no insert policy.
- As `authenticated`, a user read only their own row and updated only
their own row. Changing `id` to another user's, or inserting from the
client, failed with `new row violates row-level security policy for
table "profiles"`.
- `anon` read no rows.

Facts were checked against the RLS guide's select and update policy
sections and the functions guide's `security definer` section.

## Second reader

Verdict: ready, no blockers. Nits:
- The trigger's intro sentence repeated the new text and said "update".
Fixed: the intro now says it creates a row, and the paragraph after the
caution now opens with what not to do.
- The insert explanation was split around the policies. Fixed: it's now
one paragraph.
- It didn't say why `security definer` skips the insert policy. Fixed:
the page now names the `postgres` owner, which bypasses RLS.
- Link the public-profiles example directly. Fixed.
- Spell out RLS on first use. Left as is: the abbreviation predates this
change, and the page links Row Level Security by name above.

Second read of the reworded insert paragraph: ready, no blockers. Two of
its nits are fixed: the page says the owner is `postgres` when the
function is created in the Dashboard or by a migration, and it uses
"sign-up" instead of the JavaScript method name. Two were left for
review: split the "creates it" and "no insert policy" clauses, and write
"Row Level Security (RLS)". A third read of that fix found no blockers
and no nits.

Follow-ups outside this change:
- The grants block gives `anon` select and `authenticated`
insert/delete, which no policy uses.
- The quickstart SQL partial still adds a client insert policy for
profiles.

## How to verify

1. Open `/docs/guides/auth/managing-user-data` on the preview, section
"Accessing user data via API".
2. The section shows SQL for a select policy and an update policy on
`public.profiles` that use `auth.uid()` and the `id` column.
3. The text says that the trigger creates the profile row at signup and
that the client doesn't insert it.
4. The text says that without policies, clients can't read or change the
table.
5. The section links to the Row Level Security guide for other policy
patterns.
6. Pasting the section's SQL blocks, in order, into the SQL Editor runs
without errors.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] 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)

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com>
2026-11-23 18:17:01 -07:00
Miranda Limonczenko 4e15414929 docs(guides): rework five more explainer pages to the explainer template (#53757)
## Problem

Five more concept pages are close to the explainer template from #53751.
They have short or missing descriptions, generic or question headings, a
pointer-only heading, and no Related resources. Several also have
filler, marketing language, or time phrases.

Closes DOCS-1617. This is a second batch on top of #53755.

## Solution

The PR is one squashed commit. It covers a style pass, the restructure
to the template, critic-pass fixes, tables and lists, the opener change,
content moved in from other pages, and two headings renamed to `X vs Y`.

### Structure

| Page | Change |
| --- | --- |
| `ai/keyword-search` | Value statement, `Using full-text search` (a
pointer-only heading) and `See also` folded into Related resources |
| `ai/vector-indexes` | Value statement, a `## Limits` section for the
dimension limits and version check, `Resources` to Related resources |
| `storage/buckets/fundamentals` | Retitled `Storage buckets`, value
statement, an access model table, the bucket types promoted to H2,
`Example use cases` headings to lead-in sentences, Related resources |
| `storage/analytics/introduction` | Retitled `Analytics buckets`, value
statement, question and generic headings made descriptive, Related
resources |
| `realtime/architecture` | Retitled `Realtime architecture`, value
statement, `Elixir & Phoenix` to `Elixir and Phoenix`, Related resources
|

- **Linked headings**: headings that other pages link to keep their
text: `#distance-operators`, `#public-buckets`, `#private-buckets`, and
`#access-model`. Moving a bucket type from H3 to H2 keeps its slug.
- **Openers and tables**: only the value statement and a cross-reference
come before the first heading, and each concept opener moves into the
first H2, per the template change in #53751. Prose comparisons and
parallel facts become tables and lists. On Realtime architecture, the
WAL streaming steps are a numbered list.
- **Moved content**: each explainer now owns its concept, and the page
that held it links back. Nothing is newly written; every added fact
comes from an existing page:
- Keyword search: `## How keyword search works`, summarized from the
Usage section of [Full text
search](/docs/guides/database/full-text-search#usage), which links back.
- Vector indexes: `## Trade-offs` and `## When to use each index type`,
from [HNSW indexes](/docs/guides/ai/vector-indexes/hnsw-indexes) and
[IVFFlat indexes](/docs/guides/ai/vector-indexes/ivf-indexes). Both now
link back, and their copies of the index list and dimension limits are
replaced with links.
- Analytics buckets: `## Services`, moved from the Architecture overview
in [Iceberg
Catalog](/docs/guides/storage/analytics/connecting-to-analytics-bucket),
and `## Limits`, from [Create an analytics
bucket](/docs/guides/storage/analytics/creating-analytics-buckets) and
[Analytics buckets limits](/docs/guides/storage/analytics/limits).
- **Facts**: unchanged. The value statements, the access model table,
and Related resources are the only new text, and the table summarizes
facts already on the page.

### Style

- **Descriptions**: add or rewrite one per page, 150 to 160 characters.
- **Alt text**: rewrite the Realtime diagram's alt text against the
image. It was `Architecture`.
- **Terms**: `WORD_LIST.md` passes for numbers, _will_, _since_, _allows
you to_, _performant_, _here_ as link text, filler, and marketing
language such as "perfect for" and "an amazing Supabase user".
- **Critic pass**: shorter sentences, repeated points and idioms cut,
fewer repeated links, lowercase SQL, code-formatted type names, and
external links that name their destination.

### Structure numbers

These numbers are from before the opener and table changes.

| Page | Chars before → after | Headings | Generic headings |
Description chars |
| --- | --- | --- | --- | --- |
| `ai/keyword-search` | 2,611 → 2,544 | 3 → 2 | 1 → 0 | 40 → 156 |
| `ai/vector-indexes` | 2,557 → 2,890 | 3 → 4 | 1 → 0 | 28 → 153 |
| `storage/buckets/fundamentals` | 2,128 → 3,189 | 5 → 4 | 2 → 0 | 41 →
156 |
| `storage/analytics/introduction` | 1,698 → 2,332 | 2 → 3 | 0 → 0 | 0 →
158 |
| `realtime/architecture` | 4,474 → 5,185 | 6 → 7 | 0 → 0 | 45 → 153 |

### How the template did

- **New learnings, added to #53751**: an optional `## When to use
<concept>` section, because the template's own reader question asks
"when do I use it?". One H2 per Process stage, for
`realtime/architecture`. More than one Parts section, because
`ai/vector-indexes` has index types and distance operators.
- **Fit well**: `storage/buckets/fundamentals` is a parts table followed
by one H2 per part, which is the rule from the first batch.
- **Still loose**: `realtime/architecture` maps to the template only as
a run of Process stages. A future rework could group them, or split
`Broadcast from Postgres` into its own page.
`storage/analytics/introduction` keeps a descriptive comparison heading
instead of `## Trade-offs`.

Skipped on purpose: the Realtime PNG diagram isn't converted to Mermaid,
because that's new content.

### Preview

| Page | Live | Preview |
| --- | --- | --- |
| Keyword search |
[Live](https://supabase.com/docs/guides/ai/keyword-search) |
[Preview](https://docs-git-docs-explainer-rework-batch-2-supabase.vercel.app/docs/guides/ai/keyword-search)
|
| Vector indexes |
[Live](https://supabase.com/docs/guides/ai/vector-indexes) |
[Preview](https://docs-git-docs-explainer-rework-batch-2-supabase.vercel.app/docs/guides/ai/vector-indexes)
|
| Storage buckets |
[Live](https://supabase.com/docs/guides/storage/buckets/fundamentals) |
[Preview](https://docs-git-docs-explainer-rework-batch-2-supabase.vercel.app/docs/guides/storage/buckets/fundamentals)
|
| Analytics buckets |
[Live](https://supabase.com/docs/guides/storage/analytics/introduction)
|
[Preview](https://docs-git-docs-explainer-rework-batch-2-supabase.vercel.app/docs/guides/storage/analytics/introduction)
|
| Realtime architecture |
[Live](https://supabase.com/docs/guides/realtime/architecture) |
[Preview](https://docs-git-docs-explainer-rework-batch-2-supabase.vercel.app/docs/guides/realtime/architecture)
|

## Review instructions

1. Open each page's live and preview links from the Preview table side
by side.
2. Check that each page opens with a value statement and ends with
Related resources.
3. Open `/docs/guides/ai/vector-indexes#distance-operators` and
`/docs/guides/storage/buckets/fundamentals#public-buckets` on the
preview, and check that each jumps to its heading.
4. On Storage buckets, check that the access model table matches the
Private buckets and Public buckets sections.

## Checklist

Check all before review:

- [ ] 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)
2026-11-23 16:23:21 -08:00
JerryandNik Richers b2f53d70cb fix(docs): use owner_id in the storage delete policy example (#53834)
## Problem

Fixes #53833.

The Delete Objects guide shows a delete policy that compares the
deprecated `storage.objects.owner` column (`uuid`) with
`auth.uid()::text` (`text`). The policy fails to create:

```
ERROR:  operator does not exist: uuid = text
```

`owner` is deprecated, and `owner_id` is the `text` column that stores
the `sub` claim. This is the only Storage guide that still uses `owner`.

## Solution

Compare `owner_id` with the `sub` claim read as text:

```sql
owner_id = (select auth.jwt()->>'sub')
```

`auth.uid()` casts `sub` to `uuid`, so it errors for non-UUID subjects
from third-party auth. Reading the claim as text covers both. This also
matches the Storage access control guide.

This changes one line in one `.mdx` file.

## Verification

Tested against `supabase/postgres:17.6.1.143` with the `storage.objects`
column types from the Storage migrations (`owner uuid`, `owner_id text`)
and the real `auth.jwt()` definition.

Before:

```
using ( owner = (select auth.uid()::text) );
ERROR:  operator does not exist: uuid = text
```

With `owner_id` and `auth.uid()` the policy creates, but a non-UUID
subject fails at delete time with `invalid input syntax for type uuid:
"clerk_user_123"`.

After:

```
using ( owner_id = (select auth.jwt()->>'sub') );
CREATE POLICY
```

With a non-UUID subject (`clerk_user_123`) and with a UUID subject,
deleting as `authenticated` removed only the matching user's row.
Prettier passes on the file.

## Review instructions

1. Open
`apps/docs/content/guides/storage/management/delete-objects.mdx`.
2. Confirm the RLS example uses `owner_id` and reads `sub` with
`auth.jwt()`.
3. Run the policy against a project or local database. It should create
and restrict deletes to the owner.

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] 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)

I used AI to help debug and verify this, but I reviewed the change and
am submitting the PR myself.

---------

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-24 00:21:59 +00:00
Miranda Limonczenko b66bedd1c9 docs(guides): rework five explainer pages to the explainer template (#53755)
## Problem

Five concept pages are close to the explainer template from #53751 but
don't follow it. They have no value statement and no Related resources,
and they have style gaps such as missing descriptions, topic-name alt
text, and a diagram with no accessibility title or description.

Part of DOCS-1617. A second batch of five pages is in #53757.

## Solution

The PR is one squashed commit. It covers a style pass, the restructure
to the template, critic-pass fixes, tables and lists, the opener change,
and content moved in from other pages.

### Structure

| Page | Change |
| --- | --- |
| `auth/architecture` | Value statement, a `## Layers` table from the
numbered list, Related resources |
| `storage/cdn/fundamentals` | Value statement, `## Example` renamed to
`## How caching works`, Related resources |
| `storage/schema/design` | Retitled `Storage schema`, value statement,
`## Tables` heading, the tables paragraph as a table, Related resources
|
| `storage/security/ownership` | Retitled `Storage ownership` with the
sidebar label `Ownership`, value statement, the deprecated `owner` note
moved into body text, Related resources |
| `auth/identities` | Retitled `Auth identities`, value statement,
Related resources |

- **Linked headings**: headings that other pages link to keep their
text: `#client-layer`, `#auth-service`, `#postgres`,
`#public-vs-private-buckets`, and `#the-user-identity-object`.
- **Openers and tables**: only the value statement and a cross-reference
come before the first heading, and each concept opener moves into the
first H2, per the template change in #53751. Prose comparisons and
parallel facts become tables and lists. On Storage CDN, the cache steps
are a numbered list, and a library analogy follows them.
- **Moved content**: each explainer now owns its concept, and the how-to
that held it links back. Nothing is newly written; every added fact
comes from an existing page:
- Identities: `## How Auth links identities` and `## Limits`, moved from
the Automatic linking section and SAML note in [Identity
linking](/docs/guides/auth/auth-identity-linking), which now links back.
- Storage ownership: who owns a copied or moved object, from [Copy
objects](/docs/guides/storage/management/copy-move-objects), which links
back.
- Auth architecture: `## Limits`, the Auth server's single region, from
[JWTs](/docs/guides/auth/jwts#verifying-a-jwt-from-supabase), which now
keeps only its advice and links back.
- Storage CDN: the extra statuses that count as hits, from [Cache
metrics](/docs/guides/storage/cdn/metrics), which links back.
- **Facts**: unchanged. The value statements, Related resources, and the
CDN analogy are the only new text. Tables, lists, and moved content
restate facts already in the docs.

### Style
- **Descriptions**: add or rewrite one per page, 150 to 160 characters.
- **Alt text**: rewrite against the images. The Auth architecture
diagram now names each route and service, and the two CDN images
describe the cache miss and cache hit.
- **Diagram**: add `accTitle` and `accDescr` to the Storage schema
diagram.
- **Admonitions**: lead with their impact, and cut one that restated the
body text on Auth architecture.
- **Terms**: `WORD_LIST.md` passes for _we_, _will_, _since_, _auto-_,
_ID_, numbers, and spelled-out RLS. External links name their
destination.
- **Subtitles**: cut two that repeated the title or description.

The critic-pass fixes come from a clean-context critic pass against the
style guide.

Facts are unchanged. Skipped on purpose:

- The CDN page's two PNG sequence diagrams aren't converted to Mermaid,
because that's new content.
- `Public vs private buckets` keeps `vs`, because other pages link to
that heading.

### Structure numbers

These numbers are from before the opener and table changes.

| Page | Chars before → after | Headings | Generic headings |
Description chars |
| --- | --- | --- | --- | --- |
| `auth/architecture` | 3,437 → 4,839 | 3 → 5 | 0 → 0 | 0 → 159 |
| `storage/cdn/fundamentals` | 2,617 → 3,632 | 2 → 3 | 1 → 0 | 53 → 152
|
| `storage/schema/design` | 2,819 → 3,875 | 1 → 3 | 0 → 0 | 30 → 154 |
| `storage/security/ownership` | 1,628 → 2,006 | 1 → 2 | 0 → 0 | 71 →
155 |
| `auth/identities` | 3,315 → 4,087 | 1 → 2 | 0 → 0 | 0 → 159 |

Characters grow mostly from descriptions, longer alt text, table
padding, and Related resources. Search top-k isn't recorded, because
there's no fixed query set yet.

### How the template did

- **Fit without changes**: the value statement with a how-to link,
Related resources, the `How <concept> works` Process slot, and the
diagram accessibility rule. The rule caught a real gap on Storage
schema.
- **Fit after a fix in #53751**: the concept heading, one H2 per part,
linked headings in a slot, principles, and the repeated how-to link. See
the learnings in #53751.
- **Still loose**: `auth/architecture` has no concept paragraph of its
own, because the layers are the concept. `storage/security/ownership`
has an `## Access control` section that fits no slot, which is a
principle plus one SQL example.

### Preview

| Page | Live | Preview |
| --- | --- | --- |
| Auth architecture |
[Live](https://supabase.com/docs/guides/auth/architecture) |
[Preview](https://docs-git-docs-explainer-rework-supabase.vercel.app/docs/guides/auth/architecture)
|
| Storage CDN |
[Live](https://supabase.com/docs/guides/storage/cdn/fundamentals) |
[Preview](https://docs-git-docs-explainer-rework-supabase.vercel.app/docs/guides/storage/cdn/fundamentals)
|
| Storage schema |
[Live](https://supabase.com/docs/guides/storage/schema/design) |
[Preview](https://docs-git-docs-explainer-rework-supabase.vercel.app/docs/guides/storage/schema/design)
|
| Storage ownership |
[Live](https://supabase.com/docs/guides/storage/security/ownership) |
[Preview](https://docs-git-docs-explainer-rework-supabase.vercel.app/docs/guides/storage/security/ownership)
|
| Identities | [Live](https://supabase.com/docs/guides/auth/identities)
|
[Preview](https://docs-git-docs-explainer-rework-supabase.vercel.app/docs/guides/auth/identities)
|

## Review instructions

1. Open each page's live and preview links from the Preview table side
by side.
2. Check that each page opens with a value statement and ends with
Related resources.
3. Open `/docs/guides/auth/architecture#client-layer` and
`/docs/guides/storage/cdn/fundamentals#public-vs-private-buckets` on the
preview, and check that each jumps to its heading.
4. On Auth architecture and Storage CDN, compare the new alt text with
the images in `apps/docs/public/img`.
5. On Storage schema, check that the diagram renders and that the tables
table matches it.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] 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)
2026-11-23 16:18:11 -08:00
Ziad AshrafandNik Richers d6f02493f3 fix(www): fix typos and duplicated words in blog posts (#53863)
## Problem

Four blog posts contain duplicated words or typos (table in linked
issue). The Flutter multiplayer tutorial references `udpate()` in prose
while its own code samples define `update()`.

Fixes #53861 


## Solution

One-word text corrections in the six MDX files. No code, frontmatter, or
link changes.

<!--
## Preview links

If relevant, include links to changed pages for easy review access.

Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.

| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->

<!-- ## Additional context

Optionally add any other context or screenshots.

-->

## Review instructions
1. Open each changed file's diff and confirm only the listed word
changed.
2. Optionally open the Vercel preview of
`/blog/flutter-real-time-multiplayer-game` and search for "update()".

## Checklist

Check all before review:

- [x] 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)

---------

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-23 16:43:51 -07:00
cd22e67ac2 docs(self-hosting): fix Logflare repository link (#53872)
## Problem
The Logflare repository link has no URL scheme, so GitHub treats it as a
path inside this repository.

## Solution
Add `https://` to the existing repository URL.

## Review instructions
1. Open the link in the changed page and confirm it reaches the intended
destination.

The corrected repository URL returns 200 and `git diff --check` passes.
Prettier reports existing formatting issues in `docker/CONFIG.md`; the
same result occurs on the base version.

## Checklist
- [x] 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)

Co-authored-by: linzch3 <20380442+linzch3@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-24 00:37:17 +01:00
8222420a8e docs: fix backup link in project deletion guide (#53871)
## Problem
The point-in-time recovery link is relative to the deletion guide, which
sends readers to a nested
`/docs/guides/platform/docs/guides/platform/backups` URL and returns
404.

## Solution
Add the leading slash so it points to
`/docs/guides/platform/backups#point-in-time-recovery`, consistent with
the automated-backups link beside it.

## Review instructions
1. Open the link in the changed page and confirm it reaches the intended
destination.

Verified the old URL returns 404, the corrected page returns 200, and
the anchor is present. Prettier, MDX/GFM parsing, and `git diff --check`
pass. `pnpm build:guides-markdown` is blocked by missing GitHub
credentials for federated content; running the generator directly also
stops at the unavailable generated `ai-skills.json`.

## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] 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)

Co-authored-by: linzch3 <20380442+linzch3@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-23 16:26:40 -07:00
81e0a08675 docs: fix dead supabase-kt link in GitHub sign-in guide (#53816)
## Problem
The Kotlin tab of the GitHub sign-in guide links to `Github` in
`Providers.kt` at a path that returns 404 (the repo is now
`supabase/supabase-kt` and the package folder is `io/supabase`).

## Solution
Point the link to the current file. Lines L16-L20 still contain `data
object Github`. Opened the new URL; it loads.

Prepared with Claude Code; I reviewed the change.

Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-23 16:25:30 -07:00