438 Commits
Author SHA1 Message Date
Joshen LimandDanny White 6dda807c58 chore: cherry-pick #54282 and #54350 to release (#54459)
Cherry-picks #54282 and #54350 from master to be deployed during code
freeze - these are changes that are related to the DB access tokens

---------

Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com>
2026-12-02 16:26:53 +07:00
2bdfe3558b Cherry pick/53658 (#54465)
## Context

Cherry picks https://github.com/supabase/supabase/pull/53658/ into the
`release` branch, in view of code freeze

Co-authored-by: Gregor <gregor@supabase.io>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-12-02 15:13:53 +07:00
anthony lio 6bd006dc08 feat(docs): layout toggle (#53688)
## Problem

- docs layout v2 (variant `option-1` of the `docs-ia-mvp-v1` flag) is
about to roll out and a reader in the rollout has no way back to the
classic layout

## Solution

- adds a toggle button bottom of the guide right column so user in the
rollout can switch back
- adds a dialog that asks for an optional reason when a reader switches
back to classic, and stores the reason in `feedback_comments` with
`metadata.source = 'docs_layout_switch'` so we relying on existing
- adds the `docs_layout_updated` event and stops new experiment
exposures for readers who picked a layout

| toggle | survey |
| -------|------|
| <img width="654" height="312" alt="image"
src="https://github.com/user-attachments/assets/69bcd4b8-7dd2-4fd3-9045-e3246625ccf9"
/> | <img width="654" height="312" alt="image"
src="https://github.com/user-attachments/assets/4b18eb76-b9f1-4d96-be25-14a960b11475"
/> |

<!--
## 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/database/prisma?docs-ia-mvp-v1=option-1](https://docs-git-antlio-feat-docs-layout-switch-v2-supabase.vercel.app/docs/guides/database/prisma?docs-ia-mvp-v1=option-1)
2. click "Switch to classic layout" in the notice and make sure that a
dialog asks "What made you switch back?"

## 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-12-01 11:43:40 +02:00
anthony lio 02e61b9cda fix(docs): layout v2 reference fixtures (#54233)
## Problem

- after #53761 the option-1 sidebar reference list has no row for
server, middleware and tanstack db
- list marks no row as current on a library page, for example on
`/reference/javascript/select`
- management api intro shows its endpoint list in the right rail and its
toc in an extra column inside the content

## Solution

- adds the server, middleware and tanstack db rows with the new and
experimental badges of the current nav
- fixes the reference list so it marks the library of the current page
- changes the management api to open as its own sidebar level with the
endpoint list on the left
- moves the toc, the links and the feedback of the management api intro
into the right rail + removes the rail on endpoint pages
- adds the "on this page" menu to the management api intro below `lg`
- adds the reference library column to the option-1 nav size allowlist
because it is a list of peer libraries

| before | after |
| -------|------|
| <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/3a216c0b-31c1-4629-82a1-0590c7e639ae"
/> | <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/c53afc0e-8d15-45d7-9dc8-320443761ed2"
/> |

| before | after |
| -------|------|
| <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/5dc79bb9-b160-44e6-a3c5-39182fb71d4f"
/> | <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/9e0dff3c-5261-4c70-b1f1-f74314231a08"
/> |

<!--
## 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/reference?docs-ia-mvp-v1=option-1](https://docs-ivb0vb1qq-supabase.vercel.app/docs/reference?docs-ia-mvp-v1=option-1)
and do all steps in the same tab because the flag override lasts only
for the tab
2. make sure that the reference list shows server and middleware
3. open
[/docs/reference/javascript/select](https://docs-ivb0vb1qq-supabase.vercel.app/docs/reference/javascript/select)
and make sure that the sidebar marks only the javascript row
4. click `Management API` in the sidebar and make sure that the sidebar
shows `< Management API` with the endpoint list
5. make sure that the right rail shows the toc, the additional links and
the feedback buttons
6. open
[/docs/guides/database/overview](https://docs-ivb0vb1qq-supabase.vercel.app/docs/guides/database/overview)
and make sure that the sidebar and the right rail did not change

## 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-30 20:19:04 +00:00
anthony lioandalexisintech 25ceafcb3f fix(kb): guide tabs (#54046)
## Problem

- on kb topic pages the guide row text is misaligned vs tab title
- community guide row shows the favicon and the author before the title
leading to inconsistence when among other list items
- kb guide list and the docs code tabs each keep a copy of the folder
tab indicator

## Solution

- extracts the folder tab indicator to `ui` + the curve variables to the
shared tailwind config
- changes the tab corner to follow the active tab because chrome does
not update a `:has()` rule on the tabs root
- fixes the square corner + the background flash on the active kb tab
before hydration
- changes the kb guide rows to align with the tab labels + adds padding
to the tabs and the row hover
- moves the community favicon and author after the title

| before | after |
| -------|------|
| <img width="2304" height="1533" alt="image"
src="https://github.com/user-attachments/assets/585a1b1c-0314-4708-818c-69b324028d18"
/> | <img width="2304" height="1517" alt="image"
src="https://github.com/user-attachments/assets/5eb9614f-1873-42ed-86f4-1f7c8fa5e4f6"
/> |

<!--
## 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 the live and preview
[/kb/topics/database](https://kb-git-antlio-kb-guide-tabs-supabase.vercel.app/kb/topics/database)
2. make sure that the row titles start at the same position as the "All"
tab label

## 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: alexisintech <98043211+alexisintech@users.noreply.github.com>
2026-11-30 22:09:49 +02:00
anthony lio 77a62ffab4 fix(docs): sidebar section (#54251)
## Problem

- layout v2 nav (`?docs-ia-mvp-v1=option-1`) sidebar picks its section
from the url prefix and not from the tree that lists the page
- tree lists `/guides/platform/read-replicas` under database, but the
sidebar opens "projects, organizations and compute" and the page is not
in that list
- nine pages have this problem and on load or back the sidebar stays at
the top while the active link of a deep page is out of view

## Solution

- changes the sidebar to open the section whose tree lists the page +
uses the url prefix only for a page that no tree lists
- changes the header breadcrumbs to come from the same tree
- adds a scroll of the active link into view on load, reload and back or
forward, with no scroll when the link is already visible
- changes a closed sidebar group to open when the user goes to a page
inside it
- changes the default nav for one page:
`/guides/database/postgres/testing-row-level-security` now opens in
local development, the tree that lists it
- adds a test that resolves every option-1 guide page and checks that
its sidebar lists it

`read replicas`

| before | after |
|
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
| <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/7ac6eae2-9141-4f0b-9046-dbcf3c1fb5df"
/> | <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/98fbfffa-4141-416d-9c65-98dc3f1a8584"
/> |

`hypopg`

| before | after |
|
---------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
| <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/690b6b41-db7d-49af-99e2-126ee5ee9324"
/> | <img width="2880" height="1800" alt="image"
src="https://github.com/user-attachments/assets/52e15ad8-484a-4e37-860d-024da58dfe50"
/> |


<!--
## 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 [read
replicas](https://docs-ka3i13eje-supabase.vercel.app/docs/guides/platform/read-replicas?docs-ia-mvp-v1=option-1)
and make sure that the sidebar shows "database" and highlights
"overview" under "read replicas"
2. make sure that the header breadcrumbs show "database replication",
"read replicas" and "about read replicas"
3. visit
[hypopg](https://docs-ka3i13eje-supabase.vercel.app/docs/guides/database/extensions/hypopg?docs-ia-mvp-v1=option-1)
and make sure that the sidebar scrolls to "hypopg: hypothetical indexes"
under "performance and monitoring"
4. reload the page and make sure that the active link stays in view

## 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-30 20:05:33 +00:00
Miranda Limonczenko 450939ce86 docs: fix the pages the Option 1 nav friction logs got stuck on (#53881)
Part of DOCS-1739

## Problem

People who tried the Option 1 navigation got stuck on these pages:

- **Slow queries:** readers looked for a way to debug a slow query and
didn't find the guide in the nav. Its title, "Log slow and failing
queries", names the mechanism, not the task.
- **JWT:** The Supabase way to build says Auth "issues a signed JWT"
without saying what a JWT is.
- **Docker self-hosting:** the guide opens with its own contents list,
which repeats the table of contents beside it.
- **Launch readiness:** readers who opened Deploy to production to ask
"am I ready to launch?" found a page about branching and environments.
Neither checklist is linked from it.

## Solution

- **Slow-query title.** The title becomes "Find slow and failing
queries", and the nav label in both navigations becomes "Find slow
queries". The description still says "log slow queries", so search keeps
matching. Five inbound links now use the new title.
- **JWT link.** The first mention reads "JSON Web Token (JWT)" and links
to the JWT guide.
- **Launch intro.** Two sentences near the top of Deploy to production
link the production checklist and the production security checklist.
- **Docker contents list.** The in-page list is gone. Nothing linked to
its anchor.


## Manual testing

1. Open [the slow-query guide on the
preview](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/observability/log-slow-queries).
The title reads "Find slow and failing queries", and the sidebar entry
reads "Find slow queries".
2. Open [The Supabase way to
build](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/getting-started/the-supabase-way-to-build).
Under Auth, "JSON Web Token (JWT)" links to the JWT guide.
3. Open [Deployment and
branching](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/deployment).
The third paragraph links both production checklists.

4. Open [Self-hosting with
Docker](https://docs-git-docs-nav-friction-content-supabase.vercel.app/docs/guides/self-hosting/docker).
The page goes from the intro straight to Before you begin, with no
Contents list.
2026-11-30 11:10:20 -08:00
Miranda Limonczenko 64051f3977 docs: move the Option 1 nav pages readers couldn't find (#53882)
Part of DOCS-1738

## Problem

People who tried the Option 1 navigation couldn't find some pages in the
nav:

- **Preview branches on Vercel:** five of eight readers struggled. The
item sat two rows below Vercel Marketplace and started with "Preview",
so a scan for "Vercel" stopped too early.
- **Rotate a leaked API key:** readers looked under Security and
compliance. The nav listed it under Start, inside API keys.
- **Pause a paid-plan project:** the page sat inside organization
transfers.
- **Start:** API keys came before the quickstarts and tutorials that new
readers come to Start for.
- **Realtime:** readers expected it next to Database, Auth and Storage,
in the home page's order. The nav put it inside "REST, GraphQL and
Realtime".
- **Auth sign-in providers:** about 20 OAuth providers filled the Auth
sidebar, above the other sign-in methods.
- **Observability:** Logs and monitoring kept the layout from before the
Observability regroup in #50074. It also left out the Observability
overview and Logs in the CLI.

## Solution

- **Vercel.** The item becomes "Vercel preview branches" and sits next
to Vercel Marketplace. The Marketplace page and Deploy to production
link to it. Those two page edits ship to all readers, not only Option 1.
- **Rotate a leaked API key.** The item moves to Security and
compliance. The API keys page already links to it.
- **Paid-plan pausing.** The item moves next to Free project pausing.
- **Start order.** Quickstarts and tutorials come first. API keys and
the legacy-key migration follow.
- **Realtime.** Realtime gets its own sidebar and sits after Storage in
Products. The APIs sidebar becomes "REST and GraphQL APIs". Products now
has 8 items, one over the proposal's 7-item rule, by decision.
- **Observability groups.** Logs and monitoring uses today's task
groups: Read project data, Detect and diagnose, Agent prompts, and
Configure and export. It lists the overview and Logs in the CLI again.
The label stays "Logs and monitoring". Metrics API and Platform webhooks
keep their own groups.
- **Auth SDK entries.** "Server SDK" and "Middleware SDK" become "Server
SDK reference" and "Middleware SDK reference", so readers know the link
leaves the guides. The Self-hosting reference entries already use that
pattern.
- **Sign-in options.** "Social sign-in (OAuth)" and "Other sign-in
methods" merge into one "Sign-in options" group. The providers sit in a
collapsible "Social sign-in (OAuth)" group inside it. The level-size
allowlist follows the new path.


## Manual testing

1. Open [Broadcast with Option 1 on the
preview](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/realtime/broadcast?docs-ia-mvp-v1=option-1).
The sidebar header reads "Realtime", with a button back to Products.
2. Open [Vercel Marketplace with Option
1](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/integrations/vercel-marketplace?docs-ia-mvp-v1=option-1).
The sidebar lists "Vercel preview branches" under Vercel Marketplace,
and the page links to Preview branches on Vercel.
3. Open [Logs in the CLI with Option
1](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/observability/cli-logs?docs-ia-mvp-v1=option-1).
The sidebar lists it under Logs and monitoring > Read project data.
4. Run `pnpm run -F docs test:local:unwatch features/IaNav
components/Navigation`. Expect all tests to pass.
5. Open [Vercel Marketplace without the
flag](https://docs-git-docs-nav-page-moves-supabase.vercel.app/docs/guides/integrations/vercel-marketplace).
The page links to Preview branches on Vercel.
2026-11-30 11:04:59 -08:00
Miranda Limonczenko 7636e18f8d docs: shorten and sentence-case the Option 1 sidebar labels (#53880)
Part of DOCS-1737

## Problem

People who tried the Option 1 navigation reported labels that wrap onto
two lines, such as "Architecture, limits and pricing". The old
35-character limit let that label through at 32 characters.

They also reported labels that aren't in sentence case, such as
"Framework Quickstarts" and "ORM Quickstarts". The docs style guide asks
for sentence case.

## Solution

- **28-character limit, enforced.** A new test in `option1.test.ts`
fails on any Option 1 sidebar label over 28 characters. 97 labels were
over the limit. They're shortened.
- **Sentence case.** About 120 more labels are recased. Proper nouns and
product feature names keep their capitals, such as Edge Functions, Row
Level Security and Auth Hooks. "Self-Hosting" becomes "Self-hosting" in
the top nav and the sidebar title.
- **Parallel Start labels.** "Web app demos" becomes "Web app
tutorials", to match "Mobile tutorials".
- **Build becomes Products.** The tree test ran each candidate label
against the shipped Option 1 tree, with 93 tasks and 3 runs each.
Products raised direct success from 51% to 59%, and first clicks on the
right section from 78% to 88%.
- **Test fixtures.** `DocsSidebarNav.test.tsx` and the level-size
allowlist reference labels by name, so they change too.


## Manual testing

1. Open [Getting started with Option 1 on the
preview](https://docs-git-docs-nav-label-casing-supabase.vercel.app/docs/guides/getting-started?docs-ia-mvp-v1=option-1).
The sidebar shows "Framework quickstarts" and "Web app tutorials".
2. Run `pnpm run -F docs test:local:unwatch features/IaNav
components/Navigation`. Expect all tests to pass.
2026-11-30 11:00:01 -08:00
anthony lio f05fe34966 feat(ui): scroll area (#54023)
## Problem

- on `/kb/guides/migrate-from-auth0` in safari 27 on macos, the mouse
wheel does not scroll the page and a trackpad does
- radix scroll area bar in the table of contents adds a non-passive
`wheel` listener on `document`
- webkit stops mouse-wheel page scroll when that listener meets
`overscroll-behavior-y: none` on `html`, which kb sets

## Solution

- replaces radix with base ui in the `ui` scroll area parts because base
ui binds its wheel listener to the scrollbar element
- replaces the radix `display: table` workarounds in the studio token
sheets and the connect sheet with a reset of the base ui content
`min-width`
- changes the docs ask ai scroll area to use the `ui` scroll area
- adds an inset focus ring to the scroll area viewport because base ui
makes an overflowing viewport focusable
- adds a `getAnimations` stub to the jsdom test setups because the base
ui viewport calls it
- adds `@base-ui/react` to the pnpm catalog + points the design system
scroll area page at the base ui docs

<!--
## 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 the preview
[/kb/guides/migrate-from-auth0](https://kb-git-antlio-ui-scroll-area-supabase.vercel.app/kb/guides/migrate-from-auth0)
in safari on macos with a mouse
2. turn the mouse wheel and make sure that the page scrolls and the
table of contents marks the active heading
3. open the preview
[/design-system/docs/components/scroll-area](https://design-system-git-antlio-ui-scroll-area-supabase.vercel.app/design-system/docs/components/scroll-area)
and make sure that each demo shows its bar on hover and scrolls with the
wheel
4. make sure that the horizontal demo scrolls sideways
5. press `tab` until a demo takes focus and make sure that it shows an
inset focus ring
6. open a project in the [studio
preview](https://studio-staging-git-antlio-ui-scroll-area-supabase.vercel.app/dashboard),
click `Connect` and make sure that a long code line scrolls inside its
code block and the sheet body does not scroll sideways
7. open the [docs
preview](https://docs-git-antlio-ui-scroll-area-supabase.vercel.app/docs),
press `cmd+k`, search for `auth` and make sure that the results list
scrolls

## 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-28 13:25:55 +02:00
Pamela Chia e0beeba832 fix(docs): keep the home prompt panel text inside on phones (#54122) 2026-11-26 18:41:21 +08:00
Guilherme Souza 0d9e021060 docs(ref): add Swift v3 alpha reference (#53896)
## Problem

supabase-swift v3 is in alpha (`3.0.0-alpha.2`). The docs have no
reference for it. v3 renames many public APIs, so the v2 reference does
not help people who try the alpha.

## Solution

Add a v3 reference at `/reference/swift/v3`. v2 stays the default at
`/reference/swift`.

- **Prerelease flag.** A version in `REFERENCES` can now set
`prerelease: 'alpha'` (or another stage). Swift versions are `['v2',
'v3', 'v1']`. `versions[0]` is still the latest stable version, so the
existing URL and "latest" logic does not change. Other SDKs can use the
same flag.
- **Alpha notice.** A prerelease page shows "This version is in alpha"
with a link to the stable version. It does not show the "Version out of
date" warning.
- **Version menu.** Prerelease versions show in a separate "Prereleases"
group with a stage badge.
- **Spec.** `spec/supabase_swift_v3.yml` ports the v2 spec to the v3
API. The examples were checked against the v3 source at the
`v3.0.0-alpha.2` tag. It adds the new v3 APIs: MFA recovery codes,
`AuthAdminClient`, admin custom providers, `functions.stream`, and the
Realtime streams API.
- **Pages.** New introduction, installing (Xcode 26, Swift 6.2), and
upgrade guide pages under `docs/ref/swift/v3/`.
- **Navigation.** Nav entries for v3. v3 is excluded from the
"TypeScript support" section.

Not in this PR:

- Search indexing for v3. Search still covers v2 only.
- In the v2 spec, 7 filter ids use camelCase (for example `containedBy`
and `textSearch`). They match no section, so they do not render in the
v2 docs today. The v3 spec uses the matching kebab-case ids. The v2 fix
can be a separate PR.

## Review instructions

1. Open `/docs/reference/swift/v3` on the preview. See the alpha notice
and the v3 sections.
2. Open the version menu. See "Stable releases" (v2.0 with a "Latest"
badge, v1.0) and "Prereleases" (v3.0 with an "Alpha" badge).
3. Open `/docs/reference/swift`. See that it still shows v2 with no
notice.
4. Read the upgrade guide at `/docs/reference/swift/v3/upgrade-guide`.

Typecheck, Prettier, and ESLint pass locally. I did not run the docs
unit tests. The Swift examples were not compiled.

<img width="318" height="236" alt="Screenshot 2026-11-25 at 10 36 01"
src="https://github.com/user-attachments/assets/0f0caf18-7a4a-4835-8f6a-b76df9c66fa9"
/>
<img width="685" height="417" alt="Screenshot 2026-11-25 at 10 36 10"
src="https://github.com/user-attachments/assets/1c55bc44-1fc1-4390-8d8c-48bc55822bd3"
/>

## 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-25 13:54:58 -03:00
anthony lio 041c363873 fix(docs): layout v2 fixtures (#53761)
## Problem

- keyboard users hit focus problems in the option-1 docs layout because
the on this page rail clips focus rings and Firefox adds an unlabeled
tab stop on the sidebar scroll area
- skip link to the content does not render
- reference sits in a dropdown next to the logo which doesn't feel
optimal
- header breadcrumbs repeat the sidebar section with group crumbs that
never link

## Solution

- fixes the focus rings and tab stops in the sidebar, the rails and the
footers so each ring is inset and is not clipped
- changes the header breadcrumbs to show the parent and the page + links
a group crumb to its overview page when it has one
- moves reference into the sidebar section list with a back button +
removes the sections dropdown and points the logo to the docs home
- moves the knowledge base to the top of the sidebar footer and removes
the changelog link
- removes the hover backgrounds and color transitions from the sidebar
and rail rows + fades the sidebar list under the back button on scroll
- aligns the home agent prompt with the second framework column and
changes the footer separator to a square

<!--
## 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.

-->

1. visit
[/docs/guides/database/replication/pipelines?docs-ia-mvp-v1=option-1](https://docs-git-antlio-fix-docs-layout-v2-nits-supabase.vercel.app/docs/guides/database/replication/pipelines?docs-ia-mvp-v1=option-1)
2. reload the page and press Tab once to make sure that the first stop
is the skip link to the content
3. press Tab through the sidebar, the on this page rail and the page
footer to make sure that each ring is inset and round and is not clipped
4. click the back button in the sidebar until the section list shows,
then click `Reference` to make sure that it opens the reference list
with a back button

## 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-25 15:45:44 +02:00
Alaister YoungandAlaister Young d6e4089b1a feat(common): add FrameworkProvider and remove next imports (#53905)
Introduces a lightweight `FrameworkProvider` React context in
`packages/common` (`Link`, `Image`, `pathname`, `asPath`, `isReady`,
`params`, `push`), wires it up in the consuming apps, and removes the
`next` dependency from `packages/common`.

**Added:**

- `FrameworkProvider`, `useFramework`, `FrameworkLink`, and
`FrameworkImage` in `packages/common/framework.tsx`, with plain HTML
defaults (`DefaultFrameworkLink` / `DefaultFrameworkImage`).
`useFramework().push` always exists and falls back to
`window.location.assign`
- App-level framework providers wiring `next/link`, `next/image`, and
router state in `www` (App + Pages routers), `docs`, `design-system`,
`learn`, and `ui-library`, and native TanStack Router bindings in
`studio` (`StudioFrameworkProvider`)
- `StudioFrameworkProvider` reuses the common defaults (its image only
applies the basePath) and reports `isReady` once the first route load
commits, so the first page view carries the final route after any
redirect
- Unit tests for `StudioFrameworkProvider` (`useParams`,
`FrameworkLink`, `FrameworkImage`, query/hash-only navigation,
`isReady`) and for `PageTelemetry` route-change sends and the
`TelemetryTagManager` consent gate

**Changed:**

- `common/hooks/useParams.ts`: read params from `useFramework()` instead
of `next/compat/router`
- `common/telemetry.tsx`: replace `next/script` in `TelemetryTagManager`
with `useEffect` script injection, and read route state from
`useFramework()` in `PageTelemetry`
- `common/MetaFavicons/app-router.ts`: drop type-only `Metadata` import
from `next`
- Moved `MetaFaviconsPagesRouter` to
`apps/www/components/MetaFaviconsPagesRouter.tsx` (its sole consumer)
- Studio: `toRoutePattern` and `applyBasePath` now live once in
`lib/internal-url.ts`, shared by the provider and the `compat/next`
shims
- `PageTelemetry` throws outside production when no `FrameworkProvider`
is mounted, since it would otherwise send only the landing pageview.
`useFramework()` itself still falls back to the defaults
- `ui-library`: renamed its code-sample framework context to
`FrameworkPreferenceProvider` / `useFrameworkPreference` so
`FrameworkProvider` only means the `common` one

**Removed:**

- `learn`'s unused copy of that context (`useCourse` had no callers)

- `next` from `packages/common/package.json` peerDependencies

App Router adapters set `asPath` to the pathname only, same as the
`usePathname`-based telemetry on master (reading search params at the
root would opt static pages out of static rendering).

## To test

- Run `packages/common` tests and typecheck, and `apps/studio`
`StudioFrameworkProvider` / `route-render` / `telemetry` tests
- Navigate between routes in Studio, Docs, and WWW and confirm page
telemetry fires once per navigation (and does not duplicate on hash-only
changes)
- Load Studio at `/` (which redirects) and confirm the first page event
has the final route
- Verify URL params (`useParams`) continue resolving route and search
params in Studio

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-25 20:13:22 +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
Kody Jackson c0ae88e2b6 feat(docs) - add techarticle schema to mgmt api (#53646)
## Context

Missing `TechArticle` schemas from Mgmt API docs.

## Preview links

[preview
url](https://docs-git-kody-devrel-878-mgmt-api-structured-data-supabase.vercel.app/docs/reference/api/introduction)


[validation](https://validator.schema.org/#url=https%3A%2F%2Fdocs-git-kody-devrel-878-mgmt-api-structured-data-supabase.vercel.app%2Fdocs%2Freference%2Fapi%2Fintroduction)

**Screenshot**

<img width="1024" height="670" alt="image"
src="https://github.com/user-attachments/assets/cc3578ff-330f-461b-bf5d-c4b29053fbba"
/>
2026-11-23 08:49:26 -06:00
Illia Basalaiev 1eb8684d60 docs: rewrite the project transfers guide (#53540)
## Problem

Rewrite apps/docs/content/guides/platform/project-transfer.mdx so
readers can answer their own transfer questions. Support sees a steady
stream of tickets on project transfers, and most of the questions aren’t
answered by the current page.
Preview:
https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer

## Solution

The guide is seven pages. The four task pages follow the [how-to guide
template](https://github.com/supabase/supabase/blob/master/apps/docs/style-guide/templates/how-to-guide.md),
applied the way #53650 applies it. The other three have no template yet,
so they follow the document types in `03-page-structure.md`.

<img width="275" height="239" alt="CleanShot 2026-11-20 at 14 32 51"
src="https://github.com/user-attachments/assets/bdbf7d39-df13-4418-a5c3-32a4ae1b9e3d"
/>

| Page | Type | What it holds |
| ------------------------------------------------ | --------------- |
---------------------------------------------------------------------------------------------------
|
| `project-transfer.mdx` | How-to | Transfer a project with the
Dashboard or the Management API, then verify it |
| `project-transfer/transfer-ownership.mdx` | How-to | Move a project to
another person's organization, or hand over the whole organization |
| `project-transfer/vercel-marketplace.mdx` | How-to | Move projects out
of an organization managed through the Vercel Marketplace |
| `project-transfer/pause-project.mdx` | How-to | Pause a project from
the Pro Plan or Team Plan by transferring it to a Free Plan organization
first |
| `project-transfer/requirements.mdx` | Reference | Every check a
transfer runs, what blocks it, and partner-managed projects |
| `project-transfer/what-changes.mdx` | Explainer | What stays the same,
downtime, billing, access and tokens, notifications, what the Free Plan
removes |
| `project-transfer/troubleshooting.mdx` | Troubleshooting | Each
Dashboard and API message with its cause and fix |


Corrections to existing claims (downtime, log drains, target
organization role, free project limit).

New content
- Requirements checklist, including SSO accounts, usage restrictions
between Free Plan organizations, and overdue invoices
- Dashboard steps and a Management API path
(/v2/projects/{ref}/transfers and /previews)
- What stays the same (data, ref, URL, keys, connection strings) and
when apps need an update
- Downtime per direction, billing, access tokens, timing, notifications,
and audit log
- What a move to the Free Plan removes, and how to pause a project from
the Pro Plan or above
- Handing a project or an organization to another person, lost access to
the Owner account
- Vercel Marketplace, AWS Marketplace, Stripe Projects, and a pointer
for Lovable backends
- Troubleshooting tables that quote each Dashboard message with its
cause and fix
- New updated screenshots

The six pages under `project-transfer/` are new, so they have no live
version.

| Site | Live | Preview | Search for |
| ---- |
--------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------------------------------------------------------------------
| ---------------------------------- |
| Docs | [Project
Transfers](https://supabase.com/docs/guides/platform/project-transfer) |
[Transfer a
project](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer)
| `Transfer a project` |
| Docs | Not on `master` | [Project transfer
requirements](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/requirements)
| `Account requirements` |
| Docs | Not on `master` | [Changes after a project
transfer](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/what-changes)
| `What stays the same` |
| Docs | Not on `master` | [Transfer project
ownership](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/transfer-ownership)
| `Hand over the whole organization` |
| Docs | Not on `master` | [Transfer a Vercel-managed
project](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/vercel-marketplace)
| `Vercel-managed organization` |
| Docs | Not on `master` | [Pause a Pro or Team Plan
project](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/pause-project)
| `Pause the project` |
| Docs | Not on `master` | [Troubleshoot a project
transfer](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer/troubleshooting)
| `Role and membership messages` |


## Review instructions

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

**Note:** The changes were made based on all support tickets related to
project transfers; all statements were cross-checked in the code and
tested on a hosted project.

1. Please check if the structure of the pages meets docs standards. 
2. Please confirm "Project transfers" is a valid title; let me know if
it should be capitalized.
3. Please confirm if the table with error messages fits into this
documentation under troubleshooting
([preview](https://docs-git-docs-project-transfer-rewrite-supabase.vercel.app/docs/guides/platform/project-transfer?queryGroups=method&method=dashboard#troubleshooting)).
Done this way so that customers can find the full message in the search.

## 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-20 18:12:15 +01:00
Colum Ferry 95cf9a78a7 docs(cli): show config examples in TOML and JSONC (#53449)
## Problem

The CLI reads `supabase/config.jsonc` (and `config.json`) since v3.1.0,
but every docs page still shows `config.toml` only. There's also no page
explaining the formats, how to switch, the `$schema` / `#:schema`
declaration, or editor setup, and no reference pages for the new
`supabase config convert` and `supabase config validate` commands.

Linear: CLI-2871

## Solution

- **Dual-format examples from one source.** A new directive
(`features/directives/ConfigFormats.ts`) picks up any ```` ```toml ````
fence with `name=supabase/config.toml` and renders it as
`supabase/config.toml` / `supabase/config.jsonc` tabs. The JSONC is
generated at build time with `convertCliConfigTomlToJsonc` from
`@supabase/config`, the same converter `supabase config convert` uses,
so authors only write TOML and the JSONC matches what the CLI would
produce (comments included). Inside `<$CodeTabs>` the JSONC is added as
an extra tab.
- **The format choice sticks.** `ConfigCodeTabs` keeps the selected
format in `localStorage`, so choosing JSONC switches every config
example on the page and on later pages.
- **Config reference.** The `usage` examples on
`/guides/local-development/cli/config` use the same tabs (they were
highlighted as Python before), and the intro mentions `config.jsonc`.
The `remotes.<branch_name>` example now uses `[remotes.staging]`, since
`<branch_name>` isn't a valid TOML key.
- **New guide, "Config file formats"**
(`/guides/local-development/cli/config-formats`): which file wins,
minimum CLI version, `convert` and `validate`, schema declaration and
versioning, and editor setup (VS Code trusted domains, Even Better TOML,
Tombi, SchemaStore).
- **CLI reference.** Adds `supabase-config-convert` and
`supabase-config-validate` to the CLI reference nav.
`cli_v1_commands.yaml` is the generated v3.2.0 reference, identical to
the release bot's update in #53463, so the two PRs don't conflict.
- **Content.** About 60 existing config examples across the guides,
including the Branching configuration page, are tagged
`name=supabase/config.toml`. Branching reads `config.json` and
`config.jsonc` as well, and the Branching configuration page now says
so. Non-Supabase TOML (`pyproject.toml`, `bunfig.toml`) and the v2-era
`[inbucket]` before/after snippet stay TOML-only.
- **Format-neutral prose.** Sentences that described the config as
`config.toml` now say "your config file", naming `supabase/config.toml`
and `supabase/config.jsonc` once per page. TOML section syntax in prose
(`max_frequency` under `[auth.email]`) is written as key paths
(`auth.email.max_frequency`), which read the same in both formats.
Headings that named `config.toml` keep their old anchors. Sentences
about what `supabase init` creates still say `config.toml`.
- **Markdown export for agents.**
`internals/generate-guides-markdown.ts` runs the same transform, so the
`.md` pages served to AI agents include the JSONC example after each
TOML one.
- A test converts every tagged example under `content/`, so a broken
TOML example fails tests instead of the build.

New dependencies for `apps/docs`: `@supabase/config` (^1.8.0) and
`effect` (the same `effect` version Studio pins).

`config convert` and `config validate` ship in CLI v3.2.0, which is now
stable.

## Review instructions

1. Open `/docs/guides/local-development/seeding-your-database` on the
preview. Switch an example to `supabase/config.jsonc` and check the
other examples on the page switch too.
2. Open `/docs/guides/local-development/cli/config` and check the usage
examples open on JSONC.
3. Read `/docs/guides/local-development/cli/config-formats`.
4. Open `/docs/reference/cli/supabase-config-convert` and
`/docs/reference/cli/supabase-config-validate`.

## Self-review

Ran the `review-the-docs` local self-review (content, pipeline, and
component checks) over the 54 changed pages.

- No blockers. Fixed the nits it found: leftover TOML section syntax in
prose (diff engines, declarative schemas, Branching, the common settings
table on Local and hosted projects), a few long or ungrammatical
sentences, and the conversion follow-up steps on Config file formats,
now a list.
- Links, custom anchors, nav wiring, and frontmatter check out.
- The `.md` export on the preview shows each TOML example followed by
its JSONC version.
- `test-the-docs` deferred: the changed fences are config snippets, and
`ConfigFormats.test.ts` already converts every tagged example. No
procedural steps changed apart from the `config convert` and `config
validate` commands on the new page.

## 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-20 14:34:59 +00:00
Mike Donnalley 6c8c25b4da fix(docs): show CLI flag defaults in the reference (#53647)
Show default values from the CLI spec on global and command flag rows.
For example, readers can see which format `--output-format` uses when
omitted. Skip empty defaults and omit `Default: false` for opt-in
switches such as `--debug`.

Only render a parameter type when one is supplied. This removes the
contradictory `no type` label beside CLI flags such as `--network-id
<string>` while preserving type labels in the API reference and
self-hosting guides.

This changes the renderer only. The generated CLI spec is published
separately.
2026-11-18 22:19:29 +00:00
Kody JacksonandClaude Sonnet 5.5 671c94e868 chore(docs,kb) - Update 301 destinations to final resolution + fix some 404s (#53553)
## Context

Lots of links that initially go to 301's within docs / kb. Updates these
to their resolved target.

Ask your Claude Code to review the new destinations programmatically.

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-18 15:10:08 +00:00
Pamela Chia 27578cdfb5 fix(telemetry): send search query shape instead of raw text (#53500)
Search telemetry sent whatever people typed, and search boxes are a
place where people paste credentials and personal data. I replace the
raw text with a description of it. #53336 added the raw `query` to
`kb_search_submitted`; docs search and the command menu already sent it.

**Changed:**
- **I send a description of the search term**: `kb_search_submitted`,
`docs_search_v2_search_submitted`, `docs_search_v2_result_clicked` and
`command_menu_search_submitted` now send `queryLength` and
`queryWordCount`, measured after trimming and collapsing repeated
whitespace.
- **Text only for keywords**: the term itself (`query`, `value`, and
`search_query` on `command_menu_command_clicked`) is sent only when it
is up to 4 letters-only parts of at most 16 letters each, 40 characters
in total. Keys, tokens, emails, IDs, project refs and connection strings
never match. Over the last 30 days that shape covers about 96% of
command menu searches, 88% of docs searches and 73% of KB searches, so
term-level analysis such as no-result queries keeps most of its data.
- **I removed `keywords` from the auth users search event**:
`auth_users_search_submitted` no longer carries it. Those terms identify
customers' end users, and I confirmed nothing downstream reads them.
- **The `keywords` URL parameter is redacted wherever telemetry copies a
URL**: the Auth users page keeps the search term in its URL, so I
replace the value with `keywords=redacted` in the page URL, query string
and referrer we send, and in the posthog-js `before_send` hook for the
URL properties the SDK fills in on its own (`$session_entry_url`,
`$initial_current_url`, `$referrer`, `$initial_referrer`). The URL in
the browser is unchanged.

**Note:** a letters-only name or passphrase still matches the keyword
shape, and longer questions lose their text. I opened this in place of
#53435, which removed `query` from the KB event only.

## To test

Tested on the PR previews (docs, kb, studio-staging), reading the
request bodies sent to `/platform/telemetry/event`:
- [x] Docs: open search and type `auth`, expect
`docs_search_v2_search_submitted` with `query: "auth"`, `queryLength: 4`
and `queryWordCount: 1`. Observed exactly that, with `hasResults: true`.
- [x] Docs: type `person@example.com`, expect the same event with
`queryLength: 18` and no `query`. Observed, and no telemetry body in
that step contained the address.
- [x] KB: search `how do I reset my database password`, expect
`kb_search_submitted` with `queryLength: 35`, `queryWordCount: 7` and no
`query`. Observed.
- [x] KB: search `storage policies` with two spaces, expect
`kb_search_submitted` with `query: "storage policies"` and `queryLength:
16`. Observed, with `queryWordCount: 2`.
- [x] Studio: open the command menu and type `abcdefghijklmnopqrst`,
expect `command_menu_search_submitted` with no `value`, then type `auth`
and expect `value: "auth"`. Observed both, with `queryLength` 20 and 4.
- [x] Studio: on Auth > Users, search `person@example.com`, expect
`auth_users_search_submitted` with no `keywords`. Observed: `trigger`,
`sort_column`, `sort_order`, `providers` and `filter_column` only.
- [x] Studio: with `?keywords=person%40example.com` in the Auth > Users
URL, reload, then trigger an event on the page, expect `page_url` and
`ph.search` in the request body to carry `keywords=redacted` and the
address bar to keep the real term. Observed on all three events from
that page, and the address bar kept the term.
- [x] Studio: from that URL, do a full page load to another project page
and trigger an event, expect `ph.referrer` to carry `keywords=redacted`
while `document.referrer` keeps the real term. Observed on all three
events from the new page.
- [x] Studio: after that session, query the staging analytics project
for events from the preview host, expect no property value to carry the
address or anything but `keywords=redacted`. Observed: none of the
events in the test window carried the address, and the SDK's own `$set`,
`$pageview` and `$pageleave` events arrived with `keywords=redacted` in
`$current_url`, `$referrer` and `$initial_current_url`. The session
started on a page without the parameter, so `$session_entry_url` was not
exercised here; the unit test on the `before_send` hook covers it.

## Linear
- fixes GROWTH-1501
2026-11-18 23:29:35 +09:00
Andrey A. f80095cd92 docs(self-hosted): add a guide for configuring the OAuth 2.1 server (#53544) 2026-11-18 10:51:22 +01:00
Mike Donnalley 6dde7610f1 docs: remove CLI example response blocks (#53557)
## Summary

Remove the Response heading and sample-output code block from CLI
reference examples. Keep the example tabs, invocation code blocks, and
existing two-column layout unchanged.

Companion to https://github.com/supabase/cli/pull/7677, which removes
sample responses from the generated CLI reference. The generated YAML is
not included in this change.
2026-11-17 19:36:24 -07:00
Miranda Limonczenkoandcoderabbitai[bot] 33c8ab1dbf feat(docs): keep a forced Option 1 for the browser session (#53381)
Part of DOCS-1474

## Problem

Someone dogfooding the new navigation opens `?docs-ia-mvp-v1=option-1`,
clicks a link, and sees today's navigation again.

The override lives only in the URL. Links do not carry the query string,
so the first click drops it. Everyone who uses the override link is
affected, including people outside the PostHog rollout.

## Solution

- **Save the override:** a forced variant is saved in `sessionStorage`
and read on later pages. Closing the tab clears it.
- **Read it before paint:** the head script reads the saved override, so
a full reload does not flash today's navigation.
- **Keep exposure clean:** a saved override records no PostHog exposure,
the same as a URL override.
- **Switch back:** `?docs-ia-mvp-v1=control` replaces the saved value.

**Priority:** the URL wins over the saved override. The saved override
wins over the PostHog value.

**Not changed:** the `/docs/ia/option-1/…` rewrite that the evals use,
and how PostHog assigns visitors.

**Tests:** `vitest run features/IaNav` passes, 7 files and 32 tests.
Three of the four new tests failed before the change. The fourth, a URL
`control` over a saved `option-1`, passed before and guards the
priority.

**Unverified:** typecheck, ESLint, and the steps below. `tsc` reports no
errors in `IaNav`, but this worktree has no generated GraphQL types.
ESLint did not run.

## Manual testing

1. Open the deploy preview at `/docs?docs-ia-mvp-v1=option-1`. The top
nav shows "Run and manage".
2. Click any guide link. The nav still shows "Run and manage".
3. Reload the page. The nav shows "Run and manage" with no flash of
today's navigation.
4. Open `/docs?docs-ia-mvp-v1=control`, then click any guide link. The
nav shows today's navigation and keeps it.

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-11-13 12:12:07 -08:00
anthony lio 22ea45a3ba feat: getting started v2 (#52511)
## Problem

* the getting started page is a stack of content listings: an overview,
use cases, framework quickstarts and tutorials
* a new reader must find a path in that list, and the page gives no
commands or agent prompt for their setup

## Solution

* adds a stepper to the getting started page, so a reader gets the steps
and an agent prompt for their setup
* adds the `docs-getting-started-v2` posthog flag, so the stepper and
the current page can run as an a/b test
* adds events for stepper choices, link clicks and prompt copies, so the
test can compare the two pages
* adds a markdown export of the stepper, so the `.md` page lists every
path for agents
* moves the iso shapes from kb into `ui-patterns`, so the docs feature
cards use the same shapes as the kb heroes
* changes the edge functions shape to a flat puzzle piece, because the
old shape had too many parts

<!-- linear:table-colwidths:397,397 -->
<table>
<thead>
<tr>
<th>state</th>
<th>preview</th>
</tr>
</thead>
<tbody>
<tr>
<td>after</td>
<td>


https://github.com/user-attachments/assets/7127d817-4240-4d08-a1c9-6ada1b1b2563

</td>
</tr>
</tbody>
</table>

## Review instructions

1. open
[/docs/guides/getting-started?docs-getting-started-v2=stepper](<https://docs-git-docs-getting-started-explorations-supabase.vercel.app/docs/guides/getting-started?docs-getting-started-v2=stepper>)
and make sure that the stepper shows with agent selected
2. select next.js and the auth card, then make sure that the setup
prompt names next.js and has a step for auth
3. open
[/docs/guides/getting-started?docs-getting-started-v2=stepper&start=cli&fw=nextjs](<https://docs-git-docs-getting-started-explorations-supabase.vercel.app/docs/guides/getting-started?docs-getting-started-v2=stepper&start=cli&fw=nextjs>)
and make sure that connect your app shows the install command and the
quickstart button

## 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-13 17:46:38 +02:00
Kody JacksonandClaude Sonnet 5.5 5ca501cd24 chore(docs) - Remove inline Accordion component for machine readability -> details/summary instead (#53274)
## Problem

Accordion components -- as currently constructed -- aren't machine
readable b/c they require JS. Additionally, they aren't heavily used at
all.

## Solution

Removes accordion component from codebase + moves existing usage into
`<details>` / `<summary>` components. Adds some default styling for the
new HTML pattern so they look similar.

Could also refactor accordion to auto-template out details/summary too.
No strong pref here.

## Limits

The sidebar navigation accordions use radix-ui directly and are
unchanged.

## Preview links

### Before

[Creating a client
(before)](https://supabase.com/docs/guides/auth/server-side/creating-a-client#nextjs-utility-functions)


https://github.com/user-attachments/assets/fd320358-7a35-46f8-b7b4-177b023e748e

### After

[Creating a client
(before)](https://docs-git-kody-devrel-850-remove-accordions-docs-mdx-supabase.vercel.app/docs/guides/auth/server-side/creating-a-client#nextjs-utility-functions)


https://github.com/user-attachments/assets/22049184-9157-46d2-a3a6-64ca2c991e24

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 11:31:54 -06:00
Jeremias Menichelli 7051bdcdc5 fix: Make content in tab panels hidden discoverable in DOM (#53319)
## Problem

Content in non-active Tabs within Docs is not discoverable by crawlers
and LLMs scrapping the website html itself.

## Solution

Refactor our Tabs component, so now non-active tab panels stay in DOM
but hidden for the user.

<!--
## 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 a page in preview that contains tabs, for example [this
one](https://docs-git-jeremiasmenichelli-docs-1631-server-re-4f705d-supabase.vercel.app/docs/guides/auth/server-side/creating-a-client)
2. Make sure tabs work as expected when switching their selection, this
should match production
3. Open the dev tools panel, and the HTML inspector within it
4. Make sure when you switch tabs, the content from other inactive tabs
is still present.

## 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-12 17:37:34 +01:00
Anthony Lio 6205145edd feat(ui): heading links (#53094)
## Problem

- kb article headings have no link to their section, so a reader cannot
share a link to one part of a guide
- docs and www headings show a `#` link that only jumps to the heading,
and studio report headers use their own copy link button

## Solution

- adds `CopyHeadingLinkButton` to `ui`, with the studio look, so one
copy link button serves all surfaces
- replaces the `#` link in `Heading` with the button, so docs, www and
`ui-patterns` markdown headings copy a link on click
- adds the button to the h2 to h4 headings of kb guides, faqs and
troubleshooting articles
- changes the studio report section headers to use the shared button,
and removes their local copy logic

| before | after |
| -------|------|
| <img width="795" height="378" alt="image"
src="https://github.com/user-attachments/assets/68302dc8-829a-4af1-b1c3-5ec68d8c39e3"
/> | <img width="795" height="378" alt="image"
src="https://github.com/user-attachments/assets/b21d363e-3f27-43b0-aa0c-0efd92693d7e"
/> |

<!--
## 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/guides/migrate-from-mysql](https://kb-git-anthonylio-fdbkin-47106-add-heading-links-to-knowledge-base-troubleshooting-guides-supabase.vercel.app/kb/guides/migrate-from-mysql)
and hover the "Retrieve your MySQL database credentials" heading
3. click the icon and check that the clipboard holds the page url with
`#retrieve-your-mysql-database-credentials`
4. open
[/docs/guides/database/overview](https://docs-git-anthonylio-fdbkin-47106-add-heading-links-to-knowledge-base-troubleshooting-guides-supabase.vercel.app/docs/guides/database/overview),
hover an h2 and do steps 2 and 3 again
5. repeat 3
6. open
[/blog/introducing-dbarena](https://zone-www-dot-com-git-anthonylio-fdbkin-47106-add-heading-links-to-knowledge-base-troubleshooting-guides-supabase.vercel.app/blog/introducing-dbarena),
hover an h2 and do steps 2 and 3 again
7. open
[/dashboard/project/_/observability/auth](https://studio-git-anthonylio-fdbkin-47106-add-heading-links-to-knowledge-base-troubleshooting-guides-supabase.vercel.app/dashboard/project/_/observability/auth),
select a project, change a filter, and copy the "Usage" section link
8. make sure that the copied url keeps the filter query string and ends
with `#usage`

## 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-12 16:19:54 +02:00
Anthony Lio 106381829f feat(docs): ai layout shell (#52976)
Closes DOCS-1472

## Problem

- new top bar, sidebar and footer need a layout that mounts them only
for readers on the `docs-layout-v2` flag
- guide table of contents and the reference navigation sit in the page
column, so the reading column is narrow

## Solution

- adds the layout shell, so the flag picks the new or the current top
bar, sidebar and footer
- moves the guide table of contents into a right rail, and shows the
current heading in the top bar breadcrumb
- moves the reference navigation into the right rail, and hides the
library and version row because the breadcrumb shows them
- keep the docs home to keep the current top bar and no sidebar, so the
home page stays full width

<!--
## 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/database/overview?docs-ia-mvp-v1=option-1](https://docs-git-antlio-docs-v2-5-shell-right-rail-supabase.vercel.app/docs/guides/database/overview?docs-ia-mvp-v1=option-1)
2. make sure that the sidebar shows the database pages with a back link
to Products, and that the table of contents is in the right rail
3. open
[/docs/reference/javascript/introduction?docs-ia-mvp-v1=option-1](https://docs-git-antlio-docs-v2-5-shell-right-rail-supabase.vercel.app/docs/reference/javascript/introduction?docs-ia-mvp-v1=option-1),
and make sure that the version dropdown is in the breadcrumb and not
above the right rail

## 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-11 16:31:33 +02:00
Anthony Lio b28c6fa822 feat(docs): ai layout top bar + breadcrumbs (#52975)
## Problem

- docs top bar holds the global nav menus, so it repeats what the new
sidebar shows
- redesign needs a top bar with a breadcrumb for the current page and
room for the page actions

## Solution

- replaces the top bar with a logo cell, a breadcrumb, the page actions
and an account cell
- adds a sections menu under the logo, so a reader moves between docs,
reference and the knowledge base
- adds a breadcrumb slot for the current heading, which the right rail
fills in #PR5, and a reference version dropdown
- replaces the search field with an icon button, and shows ⌘K and ⌘I in
the search and ask ai tooltips
- adds a legacy copy of the current top bar, so the flag can show it

merge the stack together, because the new top bar shows for every reader
until #PR5 adds the flag switch

<!--
## 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/database/overview](https://docs-git-antlio-docs-v2-4-top-bar-supabase.vercel.app/docs/guides/database/overview)
2. make sure that the breadcrumb shows Database and the page
3. open
[/docs/reference/javascript/introduction](https://docs-git-antlio-docs-v2-4-top-bar-supabase.vercel.app/docs/reference/javascript/introduction),
and make sure that the breadcrumb has a version dropdown after
JavaScript

## 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-11 16:31:33 +02:00
Anthony Lio 51c07ef6b2 feat(docs): ai layout sidebar tree (#52972)
## Problem

- current sidebar shows only the page's product, so a reader opens the
top bar menus to reach another product
- redesign moves the global nav into the sidebar, so the sidebar needs
levels and a way back up

## Solution

- adds a sidebar that opens one level at a time: the docs sections, then
a section's products, then a product's pages
- adds a header row with a back link to the level above, and a home link
at the top level
- changes a product row to open the product overview and show its pages
at once
- adds icons to the top level sections in the current nav and in the
option-1 nav
- changes the new page tree to show a background on hover only, and text
color on the current page
- adds an overview row to the start section, which only the new layout
shows

#52971 must merge first, because the sidebar uses the `layout-v2:` css
variant

<!--
## 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 --filter docs exec vitest run
components/Navigation/NavigationMenu`, and make sure that all tests pass
2. read `DocsSidebarNav.test.tsx`, and make sure that the tests cover
the back link, the home link and the product link to its overview
3. the layout mounts the sidebar in the stack top, so check the sidebar
on the preview of that pr

## 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-11 16:31:32 +02:00
Anthony Lio 3aa70c221f feat(docs): ai layout groundwork (#52971)
## Problem

- docs layout redesign needs a flag, so the team can check the new
layout on production first
- ai tools agent cards open a setup page with no agent selected, so the
reader picks the agent again

## Solution

- adds the `docs-layout-v2` posthog flag, and
`?docs-layout-v2=true|false` overrides it for the rest of the browser
session
- adds a `layout-v2:` css variant, so server components can style the
new layout and the current layout from the same markup
- changes the agent cards to set `?client=` on their link, so the setup
page opens with that agent selected
- replaces the footer with link cells for status, product updates and
issue reports, and keeps the old footer for the flag

merge the stack together, because the new footer shows for every reader
until #PR5 adds the flag switch

<!--
## 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?docs-layout-v2=true](https://docs-git-antlio-docs-v2-1-groundwork-supabase.vercel.app/docs/guides/getting-started?docs-layout-v2=true),
and make sure that the `<html>` element has `data-docs-layout="v2"`
2. open the same page with `?docs-layout-v2=false`, and make sure that
`data-docs-layout` is gone

## 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-11 16:31:31 +02:00
claude[bot]andClaude 1d31266c82 fix(docs): stop sending Ask AI question text to telemetry (#53142)
<!-- claude-slack-attribution -->
_Requested via [Slack
thread](https://supabase.slack.com/archives/C076KTY11DF/p1794187436590809?thread_ts=1794187436.590809&cid=C076KTY11DF)_

## Problem

**Before:** `docs_search_v2_ask_ai_question_submitted` sent the user's
Ask AI question, cut to its first 300 characters, as a `question`
property (added in #52459). Free-text questions can contain personal
data such as names, emails, pasted logs, or connection strings.

**After:** the event sends only `questionLength` and `questionSource`.
No question text leaves the browser. This matches `kb_search_submitted`,
which already leaves the query text out and sends only its length.

Linear:
[GROWTH-1458](https://linear.app/supabase/issue/GROWTH-1458/stop-sending-ask-ai-question-text-in-docs-search-v2-ask-ai-question)

## Solution

- `packages/common/telemetry-constants.ts`: remove `question` from
`DocsSearchV2AskAiQuestionSubmittedEvent` and note in the event doc that
the question text is left out, as `KbSearchSubmittedEvent` does.
- `apps/docs/features/SearchV2/AskAiPanel.tsx` (typed questions) and
`SearchV2Provider.tsx` (questions carried over from search): drop the
`question` property.
- `apps/docs/features/SearchV2/constants.ts`: delete
`ASK_AI_QUESTION_TELEMETRY_LENGTH`, which nothing uses now.
- `SearchV2.telemetry.test.tsx`: replace the truncation test with one
that checks a typed question sends exactly `{ questionLength,
questionSource: 'typed' }`, has no `question` property, and does not
contain the question text.

Out of scope: `docs_search_v2_search_submitted.query` and
`docs_search_v2_result_clicked.query` stay as they are.

## Review instructions

1. Check that the event type in `telemetry-constants.ts` no longer has
`question`, and that typecheck enforces this at both call sites.
2. Run `pnpm vitest --run features/SearchV2` in `apps/docs`. All 33
tests pass locally.
3. `tsc --noEmit` passes in `apps/docs` (after `codegen:graphql`) and
`packages/common`. Prettier is clean on 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)
(not applicable: no docs content changed)

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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-09 15:39:55 +09:00
Pamela Chia d862ac18f2 feat(telemetry): stamp the app's platform on every event (#53078)
Every first-party PostHog event now carries a `platform` property naming
the supabase.com app that sent it. Each app passes its directory name
(`studio`, `www`, `docs`, `kb`, `learn`, `ui-library`) once at telemetry
setup, and I stamp it on both send paths.

**Changed:**
- **Events sent through the Management API**
(`/platform/telemetry/event`): `buildTelemetryEventRequest` adds
`platform` to `custom_properties`. This also covers kb's search events,
which build the request without `sendTelemetryEvent`.
- **Events sent by posthog-js** (pageviews, page leaves, identify,
experiment exposures): a `before_send` hook stamps `platform` at send
time.
- **App setup**: `PageTelemetry` takes a required `platform` prop, and
kb's island sets the value directly. While unset, the property is left
off instead of defaulting to an app.

**Note:** I used `before_send` instead of `posthog.register()`. Super
properties persist in localStorage, which every supabase.com app shares,
so events sent before `register()` runs would carry the previous app's
value.

**Do not merge yet.** Studio's `trackFeatureFlag` body still needs
`platform`. That commit waits for the Management API change that accepts
the field to reach production, plus an `api-types` regen. The flag-track
body is strict, so sending `platform` early returns 400 on every flag
call.

## To test

On each app's preview, accept cookies and add `?__posthog_debug=true` to
the URL.

- [x] Studio: load a page, expect `$pageview` with `properties.platform:
"studio"` (seen at ingestion: the staging PostHog project has
`$pageview` and `$pageleave` events from the studio-staging preview
host, all with `platform: "studio"`)
- [x] www: load the homepage, expect `send "$pageview"` with `platform:
"www"`; click "Start your project", expect the
`/platform/telemetry/event` request body to have
`custom_properties.platform: "www"` (both seen)
- [x] docs: load a guide, expect `send "$pageview"` with `platform:
"docs"` (seen); added: "Copy as Markdown" sends `custom_properties:
{"pageType":"guide","platform":"docs"}`
- [x] kb: load a page, expect `send "$pageview"` with `platform: "kb"`;
run a search, expect the `/platform/telemetry/event` body to have
`custom_properties.platform: "kb"` (seen on both `kb_search_submitted`
and `kb_search_result_clicked`)
- [ ] learn and ui-library: load a page, expect `send "$pageview"` with
`platform: "learn"` and `"ui-library"` respectively. Not checkable on
previews: learn has no preview deployment, and the ui-library preview
host is not on the consent provider's allowlist, so telemetry never
starts there.
- [x] Added, negative check: on docs, kb and www, no captured posthog-js
event had `platform` unset or set to another app
- [x] Added, ingestion: in the staging PostHog project,
`copy_as_markdown_clicked` (docs) and `start_project_button_clicked`
(www) carry `platform` as a top-level event property

## Linear
- fixes GROWTH-1450
2026-11-09 14:12:18 +09:00
Miranda Limonczenko b1f49edc3b docs: revise Option 1 placements from the tree test results (#52969)
Closes DOCS-1473
Closes DOCS-1578

## Problem

The [tree test results on the live
trees](https://app.notion.com/p/40e5004b775f811b91bed8f7c76ac7f6) found
four tasks where agents look in a different place from where Option 1
puts the page:

- **Shared responsibility:** agents look in Security and compliance. The
page is under Deploy to production, and every arm failed the task.
- **RLS testing:** agents look in Local Development and CLI. The page is
under Database.
- **Project transfer:** with two levels visible, agents open Team,
because the task is about organizations.
- **Leaked API key:** with two levels visible, agents see Start's "API
keys" and choose it. The rotation page sits a level deeper, under
Security and compliance.

## Solution

Revises four Option 1 placements and labels. Option 1 only. Today's nav,
page content, and URLs don't change. No subheads.

| Task | Change |
| --- | --- |
| Shared responsibility | Moved from Deploy to production to Security
and compliance › Compliance. The `docs:compliance` flag moves to the SOC
2, HIPAA, and GDPR items so the page shows in every build. |
| RLS testing | New Testing group under Local Development and CLI, with
Overview, Test RLS policies with pgTAP, Testing your database, and pgTAP
advanced guide. Database's Testing group goes away. |
| Project transfer | "Projects, compute and scaling" becomes "Projects,
organizations and compute", in the sidebar and the top nav. "Transfer
Project" becomes "Transfer to another organization". |
| Leaked API key | Start's "API keys and key rotation" becomes an "API
keys" group with two pages: API keys, and Rotate a leaked API key. The
rotation page moves out of Security and compliance. |

Each page keeps one home. Every level stays at 7 items or fewer, 5
levels at most, and labels at 35 characters or fewer.

In the tree test on this preview, all four tasks now pass with no wrong
turns at two levels. Set-aside tasks score 83% against Option 1's 71% at
two levels, and the same within noise at one level.

## Preview links

| Site | Live | Preview | Search for |
| --- | --- | --- | --- |
| Docs | Not live until supabase/supabase#52735 merges |
[/docs/nav-tree.json](https://docs-git-docs-ia-option-1-placement-revisions-supabase.vercel.app/docs/nav-tree.json?docs-ia-mvp-v1=option-1)
| Rotate a leaked API key |

## Additional context

- **The leaked-key move trades views.** With two levels visible, as in
the top nav dropdown, agents choose the rotation page in 3 of 3 runs, up
from 0. With one level at a time, as on mobile, they look in Security
and compliance first and find it in 0 of 3, down from 3. A follow-up
link from the Security and compliance hub to the rotation page would
help one-level readers without listing the page twice.
- **Set-aside tasks:** the shared responsibility and project transfer
cases are set-aside tasks. A gain on either can't count as unseen-task
evidence. Only a fresh holdout set can confirm it.

## Review instructions

1. Open `/docs/nav-tree.json?docs-ia-mvp-v1=option-1` on the preview.
Check that each moved page appears once, under its new parent.
2. Open `/docs/nav-tree.json` without the parameter. Check that it
matches supabase/supabase#52737's.
3. Open `/docs?docs-ia-mvp-v1=option-1` on the preview and hover Start.
Check that API keys shows as a group with Rotate a leaked API key
inside.

## 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-06 11:51:25 -08:00
Miranda Limonczenko f59c795eb5 feat(docs): render Option 1 on the server when the variant is forced (#52735)
Closes DOCS-1520

## Problem

The original PR was only client-side. This is adding server-side
integration.

The docs-nav evals fetch each page's HTML with no JavaScript and add
`?docs-ia-mvp-v1=option-1` to every request. The option-1 arm gets the
control navigation anyway.

Guide pages are statically generated, so the server can't read the query
parameter. `useIaNavVariant` reads the override from the URL after the
page loads, so the fetched HTML always has today's nav, hidden with an
`invisible` class.

The top nav dropdowns have a second gap. Their panels mount on the
client, so their links are not in the server HTML for either variant.
Every eval case starts at `/docs`, where those links are the only way
into the Option 1 groups.

## Solution

- **Rewrite option-1 requests:** `proxy.ts` sends `/docs` and guide
pages with `?docs-ia-mvp-v1=option-1` to `/docs/ia/option-1/…`. Pages
there render on the first request and are then cached, so nothing is
added to the build. Requests without the parameter, and `.md` requests,
are not rewritten.
- **Read the variant from the route:** `IaNavRouteProvider`, in the root
layout, reads the variant from the layout segments. `useIaNavVariant`
returns it on the server and records no PostHog exposure for it.
`useIaNavReady` is ready at once, so the nav has no `invisible` class.
- **Strip the route prefix:** on the server, `usePathname` returns the
rewritten path. The nav components, breadcrumbs, and `AiTools` use
`useDocsPathname`, which strips the `/ia/option-1` prefix.
- **Breadcrumbs follow the variant:** they resolve from the visitor's
nav config, not always today's.
- **Top nav subheads in the HTML:** a `<noscript>` block next to the top
nav lists the dropdown links for the visitor's variant, inside an
`sr-only` nav. Browsers with JavaScript ignore it.
- **No index for the route:** direct visits to `/docs/ia/option-1/…` get
`noindex`. Canonical URLs point to the real guide.

**Not changed:**

- **Reference pages:** they keep today's nav, even with the parameter.
- **Config pages:** the five generated config pages under `self-hosting`
and `local-development/cli` are not in the markdown manifest, so they
keep today's nav too.
- **Links:** they don't carry the query parameter, so a click in the
browser leaves the forced variant. This was already the case before this
PR.
- **Conflicts with #52679:** it changes the same hooks. Whichever PR
merges second needs a rebase.

## Review instructions

`grep -c` counts the lines of server HTML that contain the text. A count
of 1 or more means the text is in the HTML that an agent fetches without
JavaScript. A count of 0 means it is not.

1. Run `curl -s
"https://docs-git-docs-ia-option-1-server-render-supabase.vercel.app/docs/guides/auth/sessions?docs-ia-mvp-v1=option-1"
| grep -c "Run and manage"`. The count is 1 or more. "Run and manage" is
an Option 1 top nav label, so this checks that the parameter gets Option
1's nav from the server.
2. Run `curl -s
"https://docs-git-docs-ia-option-1-server-render-supabase.vercel.app/docs/guides/auth/sessions"
| grep -c "Run and manage"`. The count is 0. This checks that a request
without the parameter still gets today's nav.
3. Run `curl -s
"https://docs-git-docs-ia-option-1-server-render-supabase.vercel.app/docs?docs-ia-mvp-v1=option-1"
| grep -c "guides/platform/ssl-enforcement"`. The count is 1 or more.
The home page has no sidebar, and this link sits only in the "Run and
manage" dropdown, so this checks that the top nav subhead links are in
the server HTML.
4. Run `curl -s -o /dev/null -w "%{http_code}"
"https://docs-git-docs-ia-option-1-server-render-supabase.vercel.app/docs/guides/auth.md?docs-ia-mvp-v1=option-1"`.
It returns `200`. This checks that the markdown version still loads with
the parameter.
5. Open
[/docs/guides/auth](https://docs-git-docs-ia-option-1-server-render-supabase.vercel.app/docs/guides/auth)
in a browser and hover over the top nav. You see today's nav and
dropdowns.

## 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-06 19:46:37 +00:00
Anthony Lio 63e52e119a feat(docs): ask ai enhancements (#52774)
## Problem

- the ask ai answer in the docs search dialog come in bursts
- the result is text that jumps by whole phrases and then stops, and
each new line moves the scroll position with a jump
- the copy button of an answer is always visible, a question has no copy
button

## Solution

- changes the answer to show a part of the waiting text on each
animation frame, so a burst of chunks shows at a steady rate
- adds a fade from a small blur to each new paragraph, list item and
source chip, and the source chips enter one after another
- changes the auto-scroll to move smoothly to each new line, and both
animations stop when the user sets reduced motion
- changes the copy buttons to show on hover, on keyboard focus and on
touch screens, and adds a copy button to each question

| before | after |
| -------|------|
| <video
src="https://github.com/user-attachments/assets/87f6710a-8174-460d-b343-90d19757d673"
/> | <video
src="https://github.com/user-attachments/assets/50bdbec3-d553-4ab3-96bb-2bf30c403815"
/> |

<!--
## 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](https://supabase.com/docs) and
[/docs](https://docs-git-antlio-feat-ask-ai-streaming-supabase.vercel.app/docs)
side by side
2. press `Cmd+I` on each page, and ask `how do I set up row level
security?`
3. make sure that the preview answer shows at a steady rate, and that
each new paragraph fades in
4. make sure that the preview source chips enter one after another when
the answer completes
5. move the pointer over the answer and over the question, and make sure
that each copy button shows
6. click the copy button of the question, and make sure that the
clipboard has the question text

## 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-05 12:33:07 +00:00
LennyandAlexis Aguilar ab54becc60 docs(storage): move url signing keys to dedicated page (#52954)
## Problem

Details about URL signing keys are embedded in the downloads page, but
it is a broader security related topic that applies to both uploads and
downloads.

There is no signed URL guidance in the Standard Upload section

## Solution

- Move details about URL signing keys to a dedicated page under the
storage>security tab (content mostly the same)
- Replace URL signing key details in downloads page with a brief blurb
and a link (keep header in case it has been hot linked)
- Add link to URL signing key details to resumable upload > signed url
section
- Add signed URL details to standard upload page, and similarly link to
url signing key page
- Update link in URL signing key page of dashboard to point to new
dedicated URL Signing key page

## Additional context

Follow up to: https://github.com/supabase/supabase/pull/52522

---------

Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com>
2026-11-05 11:08:12 +08:00
Anthony Lio 2182a9100f fix(docs): nav first paint (#52679)
## Problem

- the docs nav experiment from #52191 hides the top bar links and the
sidebar nav until the feature flags load
- the flags load after auth, posthog and configcat, so each visitor
waits up to 1s after hydration

## Solution

- changes the docs nav to show the server links on first paint, so most
visitors do not wait for the flags
- adds a cache of the experiment value from the last visit, so a
returning visitor gets their variant at hydration
- adds a head script that hides the nav only for visitors cached on
option-1, so the control menu does not flash
- fixes the nav swap when the posthog request fails, because the nav
keeps the cached variant
- fixes the stale option-1 cache after the flag is deleted, because the
cache saves `false` when posthog returns no flag
- changes the experiment exposure to wait for loaded flags, so a stale
cached variant is never recorded

<!--
## 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/auth](https://docs-git-antlio-fix-docs-nav-first-paint-supabase.vercel.app/docs/guides/auth)
on desktop and reload the page
2. make sure that the top bar links and the sidebar nav show on first
paint
3. open
[/docs/guides/auth?docs-ia-mvp-v1=option-1](https://docs-git-antlio-fix-docs-nav-first-paint-supabase.vercel.app/docs/guides/auth?docs-ia-mvp-v1=option-1)
and make sure that the top bar shows "Develop and deploy" and "Run and
manage"
4. at a mobile width, open the menu and make sure that the menu sections
show
5. run `pnpm --filter docs exec vitest run features/IaNav` and make sure
that all 18 tests pass

## 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-04 07:45:33 +00:00
5a1e59eb2e docs: add Claude as ID-JAG issuer for MCP Enterprise-Managed Auth (#52021)
## Problem

Anthropic now lets Claude issue the ID-JAG for enterprise-managed MCP
auth when a customer's identity provider can't. No Supabase code change
is needed: the platform already validates ID-JAGs against whichever
issuer URL the organization configures.

The page called the feature "enterprise-managed authentication." It
implements the MCP spec's Enterprise-Managed Authorization extension and
is built on an RFC 7523 authorization grant. Authentication stays with
the IdP. The Studio field description had the same wrong word.

## Solution

**New section, "Using Claude as the ID-JAG issuer."** Covers the
Claude-side steps (Organization settings > Connectors > Supabase >
Managed authorization > Set up, copy the Issuer URL, leave Tenant ID
empty), the Supabase-side step (same ID-JAG Issuer field), and the
connection test. Two constraints were verified against our platform
code: one issuer per SSO provider so the Claude URL replaces the IdP URL
and members need an SSO identity in Supabase. The third, that a
Claude-issued ID-JAG attests Claude-org membership rather than an IdP
session, comes from Anthropic's partner guide.

**Rename to "enterprise-managed authorization."** Page title, headings,
body, SSO guide section, nav label (title case, matching sibling
entries), and the Studio description. The slug moves to
`enterprise-mcp-authorization` with a permanent redirect from the old
path in `apps/www/lib/redirects.js`. The Studio "Learn more" link and
the two published blog posts that linked the page point at the new slug
directly.

## 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)

---------

Co-authored-by: Ana <30495040+ana1337x@users.noreply.github.com>
Co-authored-by: Ana <ana1337x@users.noreply.github.com>
2026-11-03 12:54:58 -05:00
Miranda Limonczenko fca0f99354 docs: move the explain() guide to guides/api/query-plans (#52471)
Closes DOCS-1496

## Problem

The Debugging performance issues page is moved to the Data API as a part
of the Information Architecture plan laid out in Option 1 of the [Docs
navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).

The [docs tree
tests](https://github.com/supabase/evals/tree/docs/ia-tree-tests/evals/docs-tree-tests)
in supabase/evals drove the rename. Each test gives an agent a developer
goal and only the navigation labels, with no page content and no search.

- **The task:** [one
test](https://github.com/supabase/evals/tree/docs/ia-tree-tests/evals/docs-tree-tests/investigate-tree-036-client-call-execution-plan)
asks how to see the plan Postgres uses for a slow supabase-js
`.from('orders').select()` call. Its answer is this page.
- **Today's label:** the page sits under Database as "Debugging
performance issues". That label names a symptom many pages share, not
the tool the page teaches.
- **The change:** round 4 of the tests split the `explain()` content
into its own topic, labeled "Query plans with explain()" and placed in
Data API, Tools, next to the other client tools. Option 1 fixed every
task its new topics targeted.
- **Why the whole page moves:** `explain()` is the only thing the page
covers, so a split would leave an empty source. The page takes the
topic's label as its title.

## Solution

- **Move, not split:** the whole page covers `explain()`, so a split
would leave an empty source. The page moves to `guides/api/query-plans`,
and the old URL redirects there. The existing
`api/rest/debugging-performance` redirect now points straight to the new
URL, so there's no chain.
- **Anchors:** the four H2s keep their anchors, so the client reference
link to `#enabling-explain` resolves through the redirect. The two H3s,
Example data and Expected response, are gone. Nothing links to them.
- **Navigation:** both entries in today's navigation point to the new
URL, with the label "Query plans with explain()". In Option 1, the Data
API, Tools entry points to the new page, and the Database entry is gone,
since it would list the page twice. This was the last Option 1 topic
that linked to a section of its source page, so the test that tracked
those topics is removed.
- **Inbound link:** Realtime reports links to the new URL.
- **Cross-links:** the page links Query Performance for finding slow
queries, Query optimization for plans of SQL you run yourself, Row Level
Security performance for slow policies, and the `explain()` client
reference. Query optimization and Row Level Security performance link
back to it.
- **Guide shape:** a value-statement opener with the reason `explain()`
is off by default, and the sample table before the query that reads it.
The SQL samples have no comments, and the `format` option has an
example. Production readers are told to set up the filter before
enabling, and the options paragraph warns that `analyze` on a write
changes data.
- **Row Level Security performance:** the caution about restricting
plans now sits above the step that enables them.
- **Sample fix:** `pgrst.db_pre_request` holds one function, so the
production step now checks for an existing one and says to call the
filter from it. The disable step clears the pre-request setting only for
readers who set the filter directly. The filter function sets
`search_path`, so the Security Advisor doesn't flag it. It matches the
`Accept` header case-insensitively anywhere in the list, because
PostgREST accepts `Application/vnd.pgrst.plan+text` and the old prefix
check let it through. The check for an existing pre-request function
reads `pg_db_role_setting`, which also shows per-database settings that
`pg_roles.rolconfig` leaves out. When both a global and a per-database
setting exist, the page says PostgREST uses the per-database one. The
function is created and set as `public.filter_plan_requests`, because
PostgREST resolves an unqualified name against the requested schema
first. After the filter, the page says the Supabase Platform sets
`cf-connecting-ip`, and that a self-hosted project needs a header its
proxy overwrites.

### Verification

`test-the-docs`, local stack, Supabase CLI v2.39.2. Each SQL fence ran
in document order. The `supabase-js` calls were checked through the HTTP
request they send, with `Accept: application/vnd.pgrst.plan`.

| Step | Result |
| --- | --- |
| Plan request before enabling | 406, as expected |
| Enable, then request a plan | 200, text plan, and JSON with `+json` |
| Sample table, no extra grant | readable by `anon` |
| Pre-request filter with `set search_path = ''`, non-matching IP | 401
`Not allowed to use application/vnd.pgrst.plan`, normal requests 200 |
| Filter, mixed-case `Application/vnd.pgrst.plan+text` | old filter 200
with a plan, new filter 401; matching IP 200 |
| Insert plan with `options=analyze` | row persists after the request;
without `analyze`, no row |
| Existing-function check with an `in database` setting |
`pg_db_role_setting` shows it, `rolconfig` doesn't |
| Disable | plan requests 406, normal requests 200 |
| `cf-connecting-ip` on a hosted project | checked in review on a test
project: Cloudflare sets it, and a request that sends its own value is
rejected at the edge with `error code: 1000` |

### Not verified

- **Deferred:** the TypeScript fences, because the sandbox runs Node
only for example apps. The plan values in the example response come from
the old page and differ slightly from a local run.
- **Old links left on the redirect:** the client reference specs
(`supabase_{dart,py,kt,swift}`), the supabase-js doc comment, and one
`www` blog post still link to the old URL.

## Manual testing

1. Open [Query plans with
explain()](https://docs-git-docs-query-plans-supabase.vercel.app/docs/guides/api/query-plans).
See the enable, use, production, and disable sections.
2. Open [the old
URL](https://docs-git-docs-query-plans-supabase.vercel.app/docs/guides/database/debugging-performance#enabling-explain).
See it redirect to the new page at Enabling `explain()`.
3. In the Database sidebar under Debugging, click **Query plans with
explain()**. See the new page open.
2026-11-02 10:47:06 -08:00
Miranda Limonczenko 86848fc036 docs: move the production security checklist to its own page (#52466)
Closes DOCS-1494

## Problem

The Security section of the Production checklist is split out as a part
of the Information Architecture plan laid out in Option 1 of the [Docs
navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).

## Solution

- **Structure:** move `## Security` to
`guides/security/production-checklist`. The production checklist keeps
the heading, and its `#security` anchor, with a one-sentence pointer.
The page is in the Security sidebar under Guides, after Production
Checklist.
- **Option 1 navigation:** the "Production security checklist" entry in
Run and manage, Security and compliance, points to the new page. The
Option 1 test no longer expects the anchor.
- **Page shape:** a value-statement opener with the situations that call
for the checklist, then the items grouped under Database, Account and
organization, Auth, and Threat review. Each group opens with a lead-in
that says what its checks protect.
- **Inbound links:** two Studio linter entries for OTP settings, the
Studio Auth providers form, and `auth/auth-email-passwordless` now point
to `production-checklist#auth`. The password length lint points to the
password security guide instead, since the checklist has no password
item. They used to land on `going-into-prod#security`, which is a
pointer now.
- **Claim fixes:**
- The replication item told readers to enable replication on sensitive
tables. It now says to enable RLS on replicated tables that hold
sensitive data.
- The Auth items named **Authentication > Providers**. The Dashboard
label is **Sign In / Providers**.
- **Terminal path:** the Auth group links the Management API endpoint
for its settings. The Database items link to guides that carry CLI or
SQL paths.
- **Review fixes:** a note that RLS doesn't filter Postgres Changes
`DELETE` events, a SQL path for publications, and the other email links
the OTP expiry controls.
- **Agent prompt:** after the opener, a copyable `AiPrompt` that has an
agent audit the project read-only and report each item as pass, fail, or
can't check. It reads Security Advisor and the tables through the
Supabase MCP server, and SSL, network restrictions, Auth settings, and
org members through Management API GET endpoints. `includeInMarkdown` is
on, so the `.md` carries the prompt as a fenced text block.
- **Cross-links:** Testing auth flows points to the checklist's Auth
group, and the Security overview and Product configuration pages link
the checklist. The custom SMTP item links the SMTP guide.

### Not verified

- **Deferred samples:** none. The page has no code samples.
- **Agent prompt:** its endpoints and fields match
`api_v1_openapi.json`, and `Owner` matches Studio's role name. No agent
has run it against a hosted project.
- **Studio:** the link changes are strings only. Studio tests and build
run on this PR because it touches `apps/studio`.

## Manual testing

1. Open [Production security
checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/security/production-checklist).
See the agent prompt below the opener and four groups of checks. Click
**Copy** and see the prompt text.
2. Open [Production
checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/deployment/going-into-prod#security).
See the Security heading with a one-sentence pointer to the new page.
3. In the Security sidebar under Guides, click **Production security
checklist**. See the new page open.
2026-11-02 09:57:08 -08:00
03c2008987 feat(docs) - add last updated date (#52421)
## Problem

Per #52168, dates are a really important signal for LLMs. We should be
surfacing this more proactively across our docs, pulling from the
lastModified date.

## Solution

Looks like this information is already stored in a Supabase table, so we
can grab the date values and then render on associated pages.

To this end, this PR:
- Grabs the last-updated date with a script (with tests on the script).
Gets all the dates to form a map, and then have all the pages read from
that map to save roundtrips. Still ~20+ lookups b/c of how the site is
built (by multiple workers).
- Adds that date into the Guides template and associated JSON-LD /
opengraph structured data.

The goal of these dates -- to answer the various CodeRabbit comments --
are to be an **approximation** of age. It's okay if they're not 100%
accurate based on changed titles, frontmatter, deleted heading sections,
etc.

Reading this via JS instead of a SQL lookup to save us a DB migration,
as that's the fastest way to get this change up (and I have very little
familiarity with db migrations, so partially just lack of knowledge
here).

This does add some additional latency to builds, approximately ~20
seconds from some build benchmarking:
-
https://vercel.com/supabase/docs/7UcfoR3Jjb8SYuUNkRo14W3DZqBL#L1221-L1241
-
https://vercel.com/supabase/docs/23RH6uPtR92K8EggPPiTEQvY23bk#L1062-L1085

## Preview links

| state | preview |
| -------|------|
| after | <img width="891" height="438" alt="image"
src="https://github.com/user-attachments/assets/38476245-be80-4b65-99a7-4501e60560fc"
/> |

- [Queues
overview](https://docs-git-kody-devrel-751-docs-last-updated-date-supabase.vercel.app/docs/guides/queues)
-- rendered date of Oct 19th matches [git last
modified](https://github.com/supabase/supabase/commits/master/apps/docs/content/guides/queues.mdx)
- [Cron
overview](https://docs-git-kody-devrel-751-docs-last-updated-date-supabase.vercel.app/docs/guides/cron)
-- rendered date of Feb 23rd slight diff from git last modified... but
matches last [content
change](https://github.com/supabase/supabase/commits/master/apps/docs/content/guides/cron.mdx)
- [Auth
overview](https://docs-git-kody-devrel-751-docs-last-updated-date-supabase.vercel.app/docs/guides/auth)
-- rendered date of Oct 22nd matches [git last
modified](https://github.com/supabase/supabase/commits/master/apps/docs/content/guides/auth.mdx)

## Gaps / open review questions

- **testing** - Least familiar with the tests in
`apps/docs/lib/last-changed.test.ts` + these are entirely claude
generated. Unsure if they hit what they should.
- **build latency** - Is ~20 sec / build acceptable latency here? If we
wanted to move forward with SQL instead of JS to try and reduce it,
could make sense... but I'd definitely need help on the associated db
migration here.
- **build fragility** - AI review flagged the cooldown / potential
hanging requests without a timeout. Seems like this is now addressed,
but obviously could use a sanity check.

---------

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
Co-authored-by: anthony lio <lionnet.ant@gmail.com>
2026-11-02 08:00:09 -06:00
Anthony Lio 1a2db3779e feat(docs): ask ai v2 (#52459)
## Problem

- the change is a follow-up to search v2 (#51175, #52233), which runs as
the `docs-search-v2` experiment
- in the `search-v2-active` group, `cmd+k` opens the new search instead
of the legacy command menu, so readers lose ask ai
- a search with no results stops at "No results found." and gives no
next step

## Solution

- adds an ask ai panel and a `cmd+i` shortcut to search v2, so the
`search-v2-active` group can ask supabase ai
- adds ask ai entries to the top nav, the results footer and empty
results, so readers can ask from search
- changes search and ask ai to use one dialog for the page, so two
dialogs never open together
- adds `renderNoResults` and `renderFooterStart` slots to the
`docs-search` panel, so the package has no ask ai code
- nit: adds a `keycaps` variant to `KeyboardShortcut` with a
design-system example, and uses it in the search trigger and footers

| state | preview |
| -------|------|
| after | <video
src="https://github.com/user-attachments/assets/6681fcba-6267-4ee1-b9e0-154b5f45091d"
/> |

<!--
## 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?docs-search-v2=search-v2-active](https://docs-git-antlio-feat-docs-ask-ai-supabase.vercel.app/docs?docs-search-v2=search-v2-active)
2. make sure that the top nav shows the search box and an `Ask AI`
button
3. press `cmd+i` (`ctrl+i` on windows and linux), and make sure that the
ask ai dialog opens with example questions
4. select an example question, and make sure that the bolt icon changes
from gray to color while the answer loads
5. press `cmd+k`, and make sure that the same dialog changes to search
6. search for `zzqqxx`, select `Ask Supabase AI: zzqqxx`, and make sure
that ask ai opens and sends the question
7. search for `auth`, and make sure that the results footer shows `Ask
Supabase AI` and the keycap hints

## 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-02 11:13:44 +02:00
Miranda Limonczenko 7e5748ba6b docs: move team member role mapping to its own page (#52476)
Closes DOCS-1498

## Problem

The Configure user access section of Temporary access is split out as a
part of the Information Architecture plan laid out in Option 1 of the
[Docs navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).

## Solution

- **Structure:** move `## Configure user access` to
`guides/platform/team-database-access`. Temporary access keeps the
heading and its anchor, with a one-sentence pointer. The page is in the
Platform sidebar after Temporary Access.
- **Option 1 navigation:** the "Map team members to Postgres roles"
entry in Run and manage, Team, points to the new page. The Option 1 test
no longer expects the anchor. Today's navigation uses the same label, at
34 characters.
- **Guide shape:** a value-statement opener with a short definition of a
role mapping, Prerequisites, then steps to authorize a team member and
to restrict their access. Each list has a lead-in.
- **Sample fixes:**
- The request sent the role list as `user_roles`. The Management API
requires `roles`.
- `expires_at` was in milliseconds. It takes Unix seconds, which the
Dashboard sends.
- A new step looks up the team member's user ID through the organization
members endpoint. The old sample used a placeholder with no way to find
the value.

### Not verified

- **Samples:** the Management API calls need a hosted project, so
`test-the-docs` can't run them. I ran them by hand against a hosted
project.

## Manual testing

1. Open [Map team members to Postgres
roles](https://docs-git-docs-team-database-access-supabase.vercel.app/docs/guides/platform/team-database-access).
See the prerequisites, the steps to authorize a team member, and the
restrictions.
2. Open [Temporary
access](https://docs-git-docs-team-database-access-supabase.vercel.app/docs/guides/platform/temporary-access#configure-user-access).
See the Configure user access heading with a one-sentence pointer to the
new page.
3. In the Platform sidebar, click **Map team members to Postgres
roles**. See the new page open.
2026-10-30 23:54:52 +00:00
Miranda Limonczenko 340101642a docs: move preview branches on Vercel to its own page (#52473)
Closes DOCS-1497

## Problem

The Vercel section of Branching integrations is split out as a part of
the Information Architecture plan laid out in Option 1 of the [Docs
navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).

## Solution

Split out the old section into a new one with `/edit-the-docs` and
`/test-the-docs`.


## Manual testing

1. Open [Preview branches on
Vercel](https://docs-git-docs-vercel-preview-branches-supabase.vercel.app/docs/guides/integrations/vercel-preview-branches).
See the prerequisites, two steps, and the After you connect section.
2. Open [Branching
integrations](https://docs-git-docs-vercel-preview-branches-supabase.vercel.app/docs/guides/deployment/branching/integrations).
Under **Hosting providers**, see a one-sentence pointer to the new page,
with no Vercel heading.
3. In the Branching sidebar, click **Preview branches on Vercel**. See
the new page open.
4. In the Integrations sidebar, click **Preview branches on Vercel**,
after **Vercel Marketplace**. See the new page open with the
Integrations sidebar.
2026-10-30 11:37:17 -07:00
Miranda Limonczenko 57b659d47f docs: move slow and failing query logging to its own page (#52469)
Closes DOCS-1495

## Problem

The `log_min_duration_statement`, `auto_explain.*`, and
`log_min_error_statement` sections of Postgres log configurations are
split out as a part of the Information Architecture plan laid out in
Option 1 of the [Docs navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).

## Solution

- **Structure:** move `log_min_duration_statement`, `auto_explain.*`,
and `log_min_error_statement` to
`guides/observability/log-slow-queries`. Postgres log configurations
keeps each heading and its anchor, with a one-sentence pointer. The page
is in the Database sidebar after Postgres log configuration.
- **Option 1 navigation:** the "Log slow and failing queries" entry in
Run and manage points to the new page. The Option 1 test no longer
expects the anchor.

`/edit-the-docs` and `/test-the-docs` ran as well.
- **Cross-links:** the Customizing Postgres config table links this
guide from its `auto_explain.*`, `log_min_duration_statement`, and
`log_min_error_statement` rows, and the intro links Query logs with SQL
for searching the logs.

## Manual testing

1. Open [Log slow and failing
queries](https://docs-git-docs-log-slow-queries-supabase.vercel.app/docs/guides/observability/log-slow-queries).
See the slow queries, query plans, errors, and restore-defaults
sections.
2. Open [Postgres log
configurations](https://docs-git-docs-log-slow-queries-supabase.vercel.app/docs/guides/database/postgres/postgres-log-config#logmindurationstatement).
See the heading with a one-sentence pointer to the new page.
3. In the Database sidebar, click **Log slow and failing queries**. See
the new page open.
2026-10-29 16:46:15 -07:00
Miranda Limonczenko e79adc4a42 docs: move leaked API key rotation to its own page (#52465)
Closes DOCS-1493

## Problem

The Rotate a leaked or compromised key section of API keys is split out
as a part of the Information Architecture plan laid out in Option 1 of
the [Docs navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).

## Solution

- **Structure:** move `### Rotate a leaked or compromised key` to
`guides/security/rotate-leaked-api-keys`. API keys keeps the heading and
its `#leaked-key` id, with a one-sentence pointer. The page is in the
Security sidebar under Guides, since its URL selects that sidebar.
- **Option 1 navigation:** the "Rotate a leaked API key" entry in Run
and manage, Security and compliance, points to the new page. The Option
1 test no longer expects the anchor.

Run /test-the-docs and /edit-the-docs.

## Manual testing

1. Open [Rotate a leaked or compromised API
key](https://docs-git-docs-rotate-leaked-api-keys-supabase.vercel.app/docs/guides/security/rotate-leaked-api-keys).
See the create, replace, and retire sections, with Dashboard and
Management API tabs.
2. Open [API
keys](https://docs-git-docs-rotate-leaked-api-keys-supabase.vercel.app/docs/guides/getting-started/api-keys#leaked-key).
See the heading with a one-sentence pointer to the new page.
3. In the Security sidebar under Guides, click **Rotate a leaked or
compromised API key**. See the new page open.
2026-10-29 21:35:44 +00:00
Miranda Limonczenko 76f3d06a8b docs: add Test Row Level Security policies with pgTAP guide (#52344)
Closes DOCS-1499

## Problem

The testing overview teaches RLS tests, in pgTAP and from application
code, in sections that have grown into their own task.


## Solution

This goes above and beyond the initial ask, which was just to move a
section into a new topic.
Because I was here anyway, I aimed to improve the experience and improve
our RLS Evals score on tests. A companion Evals PR will split out a new
Eval for the new topic, migrating the checks that were in the RLS guide.

Some fixes are also included from running our docs skills, including:

- **Structure:** move the pgTAP example and the Application-Level
testing section to
`guides/database/postgres/testing-row-level-security`. The overview
keeps both headings, each with a short pointer. The "RLS policies
testing" nav entry points to the new page, and so does "Test RLS
policies with pgTAP" in the Option 1 nav.
- **Style:** a value-statement opener, lowercase SQL, and the command
split from its output.
- **Technical fixes:** test 2 asserts the `returning` value. Test 4 uses
`is_empty`. The output is the output `supabase test db` prints.
- **Additions:** `supabase start`, the table as a migration applied with
`supabase db reset`, and two sentences on how the test isolates its data
and user. A note for readers who use an agent to write their tests,
linking to a `## Write quality tests with agents` reference section. One
sentence in the RLS guide's `### Run the test suite` links to that
section.


## Review instructions

1. Open [Test Row Level Security policies with
pgTAP](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/postgres/testing-row-level-security)
on the preview. See five steps and a passing `Tests=4` output.
2. Open [Testing
overview](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/local-development/testing/overview#database-unit-testing-with-pgtap).
See the heading with a one-sentence pointer to the new page.
3. In the sidebar under Local development, Testing, click **RLS policies
testing**. See the new page open.
4. On the [Testing
overview](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/local-development/testing/overview#application-level-testing),
click **Test the policy from your application**. See the TypeScript
suite on the new page.
5. On the new page, click **Write quality tests with agents** in the
agent note's prompt. See the five rules for agents near the bottom of
the page.
6. On [Row Level
Security](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/postgres/row-level-security#run-the-test-suite),
click **Write quality tests with agents** under Run the test suite. See
the new page open at that section.
7. Open the [Database guides with the Option 1
nav](https://docs-git-docs-test-rls-pgtap-supabase.vercel.app/docs/guides/database/overview?docs-ia-mvp-v1=option-1).
Under Row Level Security, roles and Vault, click **Test RLS policies
with pgTAP**. See the new page open.
2026-10-29 14:23:36 -07:00
Jeremias Menichelli 9b1ddcab93 chore: Remove old search code and add contributing documentation plus local dev flow (#52487)
## Problem

We decided to keep the search_v2 experiment.

## Solution

Delete all files related to the variant experimentation, old components
and ingest flow.

<!--
## 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 the docs preview
2. Search V2 should be the default search

## 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-10-29 16:02:35 +01:00