8709 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
Chloe Kavanagh 8aaf216d22 docs: add Chloe Kavanagh as per onboarding process (#54385)
### Purpose
As per onboarding doc- add my name to `humans.txt` file

### Solution
Added my name as per instructions 

### Review instructions
Check that "Chloe Kavanagh" is in the list on the expected position.

### 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-12-01 14:16:58 +00:00
ajjsupabaseandClaude Sonnet 5.5 c8378a0a32 docs: add Aaron Johnson to humans.txt (#54405)
## Problem

My name is missing from the team list in `apps/docs/public/humans.txt`.

## Solution

Add "Aaron Johnson" to the list. The entry sits after "Aaron Byrne" to
keep the list in alphabetical order.

## Review category (docs PRs only)

- [ ] Critical: needs a review as soon as possible
- [ ] Urgent: the feature ships soon, or it's blocking something else
- [ ] Moderate: good to have soon, not urgent
- [x] Low: get to it when you can

## Review instructions

1. Open the diff for `apps/docs/public/humans.txt`.
2. Confirm that "Aaron Johnson" appears once, between "Aaron Byrne" and
"Adam Howard".

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

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

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 09:08:28 -05:00
cebd7a5eba docs(ref): add Kotlin v4 alpha reference (#54384)
## This PR

- Adds a v4 alpha reference for Kotlin at `/reference/kotlin/v4`, using
the prerelease flag from #53896.
- v3 stays the default at `/reference/kotlin`. v4 shows the alpha notice
and is listed under "Prereleases" in the version menu.
- `spec/supabase_kt_v4.yml` is the v3 spec with links updated to
`supabase/supabase-kt`. The API is the same in v4.
- New `introduction`, `installing` (with `io.supabase` coordinates) and
`upgrade-guide` pages under `docs/ref/kotlin/v4/`.

## Why

- supabase-kt `4.0.0-alpha-1` is on Maven Central. It's the first
official release of the Kotlin SDK and moves it to the `io.supabase`
Maven group and package. The current reference only shows the v3
coordinates.

## Note

- Guides, quickstarts and the existing v3 pages are unchanged. They
switch to `io.supabase` with the stable 4.0.0 release.
- Search doesn't index prerelease versions yet, same as Swift v3.
- I didn't run the docs build locally. Please check
`/docs/reference/kotlin/v4` and
`/docs/reference/kotlin/v4/upgrade-guide` on the preview.

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

---------

Co-authored-by: Safa <4990386+safaorhan@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-01 15:04:28 +03:00
fadymak e58fa85e6c docs: correct py and kt deleteFactor claim that it signs the user out (#54361)
The Python and Kotlin `deleteFactor` reference notes said deleting a
verified factor logs the user out of all active sessions, but the server
only downgrades sessions that reached `aal2` with that factor to `aal1`.
This updates the notes to describe what actually happens, matching the
JS reference fix in supabase/supabase-js#2939.
2026-12-01 12:48:58 +01:00
Jan TennertandSafa Orhan 3e4ee05bfd docs(kotlin): add passkey, oauth server api, realtime filter docs (#49897)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

Docs update

**Authentication and Authorization Enhancements:**

* Added documentation and examples for passkey-based authentication and
registration, including manual flows for starting and verifying
authentication and registration using the underlying API methods.
* Introduced detailed documentation for OAuth 2.1 server features,
including methods for retrieving authorization details,
approving/denying authorizations, listing grants, and revoking grants.

**Query and Data Filtering Improvements:**

* Added a new `dryRun()` (limit) function, allowing users to limit query
results by count, with support for specifying a referenced table.
* Updated `selectAsFlow` and `postgresListDataFlow` examples to
demonstrate the use of inline filter lambdas, making it easier to filter
results (e.g., by `id`).
* Enhanced `postgresChangeFlow` example to show how to apply optional
filters using a lambda.

**Realtime and System Events:**

* Added an example for listening to system updates via `systemFlow()` on
a channel, including configuration for broadcasting system messages
(e.g., replication readiness).

---------

Co-authored-by: Safa Orhan <safaorhan@users.noreply.github.com>
2026-12-01 13:37:57 +03: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
fb37145641 docs(skills): the docs review gives each new sentence a verdict and checks each claim (#54082)
## Problem

[#53996](https://github.com/supabase/supabase/pull/53996) passed an
author review, two agent readers, and a full agent review, and still
needed [#54013](https://github.com/supabase/supabase/pull/54013) to fix
it. The new section repeated three sections of the same page, described
worker-pool internals that a reader can't configure, and left the
Functions architecture guide saying the opposite.

`review-the-docs` and the style guide already named repeated facts. The
rule didn't hold, for these reasons:

- The Content review listed problems as examples ("they aren't the full
list"), and its checklist asked only that "each problem is reported". A
light review and a full one produced the same report.
- No rule gave content problems a severity, and core rule 6 called style
notes suggestions.
- No rule covered internals the reader can't act on, or a statement on
another page that says the opposite.
- The review had no claim check of its own. `write-the-docs` has an
accuracy pass, but a review runs on its own and can't count on the
author having used that skill. `test-the-docs` runs only snippets.

Tedd's own review skills filled these gaps with stricter copies of the
rules, so people, Tedd, and CodeRabbit reviewed against different rules.

Closes
[DOCS-1806](https://linear.app/supabase/issue/DOCS-1806/the-docs-review-checks-each-claim-and-gives-each-new-sentence-a)

## Solution

**The Content review in `review-the-docs` asks for a verdict on each
item.** Each new and changed sentence gets a verdict, and so does the
sentence right after each change. Each of these problems is a blocker:

- A repeated fact
- A disagreement with the docs, searched for in `apps/docs/content/` and
`apps/kb/src/content/` by the behavior's terms. The published page can
be the wrong one, so the Fact check decides which sentence is true, and
the change fixes the wrong one
- Mechanism the reader can't act on
- Detail that only fits one reporter's case. The fix for one error, or
an answer that depends on the reader's stack, belongs in `/kb`, per the
`/docs` and `/kb` split in `write-the-docs`
- An unanswered follow-up question

A change longer than the ask needs is a note, because no style guide
rule covers it.

The review also gives a verdict on each new section's place, each new
example's pattern, and each new link. The style pass counts the words of
each long sentence with a script, gives a verdict on each style guide
rule that applies to the changed lines, and checks the page's template
and WORD_LIST. The done criterion lists each verdict, so a skipped item
shows.

**A new Fact check gives each claim a verdict.** Each claim gets one
verdict: ran (a row in a `test-the-docs` verification report), traced to
the source at the version the page uses, or unverified. When a change
has more than 20 claims, or a claim needs a repo that the reviewer can't
read, the review asks the user before it continues. Each path an
instruction names is its own claim. A wrong claim is a blocker, and an
unverified claim is a note to the author. Code runs only through
`test-the-docs`, so the tutorial and example reviews ask to build
example apps there, not in the reviewer's checkout. Before a wrong claim
is made more exact, the review checks whether the reader needs it at
all.

**The `write-the-docs` accuracy pass checks that the reader needs a
claim.** Its old step 3 said to add an exception the code has, or narrow
the sentence, which pushed #53996 toward more internals. A new step 2
cuts a claim about mechanism the reader can't use, instead of making it
more exact. An exception goes in only when it changes what the reader
sees or does. The skill stays self-contained: it runs whether or not a
review follows.

**The style guide holds the rules the review applies.** New rules:
"Document what the reader can use", "Answer the reader's next question",
"Name what a command changes", "Model an example on the page's other
examples", and "Put text under the heading for its topic". "Cut repeated
points" now says to link to a fact that another section or page states.
Required text, such as the standard SQL snippet, doesn't count as a
repeat, and neither does a one-sentence term explanation or a warning
that the task needs. "Link selectively" now covers two sections that
send the reader to each other. The review links to each rule instead of
restating it.

**CodeRabbit reviews docs content against the style guide.**
`.coderabbit.yaml` applies each top-level file in
`apps/docs/style-guide/`, but not the templates, to
`apps/docs/content/**/*.mdx` as code guidelines, so a new rule file is
picked up without a config change.

**Stale references.** `ask-the-docs`'s `app-map.md` and `write-the-docs`
no longer point at `content/troubleshooting/`, which #52339 removed.

## Review instructions

1. Read the Content review and Fact check in `review-the-docs/SKILL.md`.
2. Check that each blocker links to a rule in `apps/docs/style-guide/`.

A fresh agent ran an earlier version of the Content review and Fact
check on #53996's merge commit, without seeing #54013. It requested
changes and reported the problems that #54013 fixed:

- The CPU cap and rotation across workers, as mechanism the reader can't
act on
- The same reuse fact stated four times in the section, and "runs once
per worker" repeated from a later section
- `guides/functions/architecture.mdx` saying "A new V8 isolate is spun
up for each invocation" and "each run is stateless"

It also traced each claim to `supabase/edge-runtime@v1.79.2`, and found
a repeated link, a 26-word sentence, and two unverified claims. Its
internals finding has a caveat: the new style guide example comes from
this same case.

After the review suggestions, a second fresh agent ran the current
Content review and Fact check on the same commit. It found the same
three problems, as blockers. It listed 17 claims, under the 20 at which
the Fact check asks before it continues, so it checked each one. It
reported the repeats inside the section as notes, not blockers.

## Checklist

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-30 17:24:56 -07:00
Jeremias Menichelli 9623f958be feat: Produce sitemap and full markdown files for docs (#54069)
## Problem

Agents have no single index of the docs markdown exports, unlike the
KB's `sitemap.md`. www's `/llms.txt` and `/llms-full.txt` also read docs
files from disk, which forces www's build to wait on the docs build.

## Solution

**docs**
- Add `build:markdown-sitemap`, which writes
`public/markdown/sitemap.md`. It scans `public/markdown/**/*.md` and
lists each file as `[title](url.md)`. Guide URLs are
`/docs/guides/<page>.md` and the rest are `/docs/markdown/<page>.md`,
built with the existing `internal-links` helpers.
- Add `build:markdown-full`, which writes `public/markdown/full.md`. It
concatenates the same files.
- Both scripts share one file-list helper
(`internals/markdown-files.ts`), so they always cover the same files and
exclude `sitemap.md` and `full.md`.
- Both tasks depend on `build:markdown` and are wired into `build` in
turbo.
- Search v2 ingestion and the `docs.tar.gz` archive now ignore both
files.

**www**
- `/llms.txt` and `/llms-full.txt` now fetch `sitemap.md` and `full.md`
from `NEXT_PUBLIC_DOCS_URL`, replacing only their docs parts. Pricing,
product overviews, agent resources, the KB link and the customer stories
link are unchanged. If docs is unreachable, the docs section is left out
instead of returning a 404.
- Remove the on-disk docs reads, the `outputFileTracingIncludes`
entries, and the `docs#build:guides-markdown` dependency and docs input
globs from www's turbo config. These routes were the only link between
www and the docs build. `turbo-build.test.ts` is updated to match.
- Add a `/docs.md` → `/docs/markdown/sitemap.md` redirect, next to the
existing `/kb.md` one.

Routes without a markdown export are not patched, they are simply absent
from the sitemap.

## Review instructions

From the Docs preview link:

1. Open /docs/markdown/sitemap.md it should show a file with all links
to the docs pages available in markdown
1. Open /docs/markdown/full.md it should show a file with all the
content from all the pages

Sadly, only after deployed...
1. www project should return the content of both files when:
a. supabase.com/llms.txt is queried should return docs sitemap.md
content
b. supabase.com/llms-full.txt is queried should return docs full.md
content
1. supabase.com/docs.md should return sitemap.md file

## 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-12-01 09:11:29 +11: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
anthony lio 5578904100 fix(docs): sidebar v2 nav polish (#54267)
## Problem

- layout v2 docs sidebar current page has only brighter text and users
in the friction log could not find their place
- section headings have the same gray as the rows under them and users
found the sections hard to tell apart
- in the light theme most provider icons on the auth pages do not load
because the sidebar lacks of a light version

## Solution

- fixes the provider icons in the light theme
- changes the current row in the page tree to a filled row with a
heavier weight
- changes the rows in the page tree to one step brighter so the section
headings read as labels
- fixes the overview row at the top of each product tree, which looked
like a second current row

| before | after |
| -------|------|
| <img width="560" height="1280" alt="image"
src="https://github.com/user-attachments/assets/d09afb9b-8d27-46f6-9e14-65b749d9ed5b"
/> | <img width="560" height="1280" alt="image"
src="https://github.com/user-attachments/assets/45a8cd1b-f2e9-4ac3-847c-97adc857cf72"
/> |

<!--
## 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
[/docs/guides/auth/users?docs-ia-mvp-v1=option-1](https://docs-git-antlio-fix-docs-sidebar-nav-polish-supabase.vercel.app/docs/guides/auth/users?docs-ia-mvp-v1=option-1)
2. make sure that the `Users` row has a filled background and that
`Getting Started` has the same gray as the other rows
3. open
[/docs/guides/auth/sessions/pkce-flow?docs-ia-mvp-v1=option-1](https://docs-git-antlio-fix-docs-sidebar-nav-polish-supabase.vercel.app/docs/guides/auth/sessions/pkce-flow?docs-ia-mvp-v1=option-1)
and make sure that `PKCE flow` keeps the green line and has no fill
4. open
[/docs/guides/auth/social-sign-in/auth-google?docs-ia-mvp-v1=option-1](https://docs-git-antlio-fix-docs-sidebar-nav-polish-supabase.vercel.app/docs/guides/auth/social-sign-in/auth-google?docs-ia-mvp-v1=option-1)
in the light theme and make sure that each provider under `Social
Sign-in (OAuth)` shows an icon

## 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 21:44:15 +02: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
Jeremias Menichelli 132f6b6d08 test: Add minimal tests for redirects on apps/docs (#54071)
## Problem

We were lacking on redirect rules on apps/docs

## Solution

Added basic unit test for:
- Infinite redirects
- Redirect chains
- Missing redirects
- Invalid sources or destinations 

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

_Unit tests for redirects should run as part of our CI in PRs, including
this one._

## 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-30 18:07:34 +01:00
Andrey A. d65dacdb74 chore(self-hosted): update 2026-11-30 - 0.8.6 (#54296) 2026-11-30 16:47:56 +01:00
Pamela Chia c1a71cb1d7 docs(cli): clarify telemetry data and opt-out value (#54172)
The CLI telemetry section said only that the CLI collects "general
usage" data, and it named the opt-out variables without saying the value
must be exactly `1`. I tightened it to one sentence on what the data is
and what it is linked to, the exact-`1` rule, and the switch for the
release check.

**Changed:**
- **What is collected**: I replaced "general usage" with a short
summary: usage data such as the commands you run, linked to a device ID
and, when you authenticate the CLI, to your Supabase account.
Authenticating covers both `supabase login` and an access token in CI.
- **Opt-out value**: I added that `SUPABASE_TELEMETRY_DISABLED` and
`DO_NOT_TRACK` must be exactly `1`. Other values, such as `true`, leave
telemetry on.
- **Release check**: the check for a newer CLI release is separate from
telemetry and its switch, `SUPABASE_NO_UPDATE_NOTIFIER=1`, had no docs.
I added two sentences.

**Note:** every statement on the page holds for the current stable CLI,
so this does not wait on supabase/cli#7811 reaching a stable release. I
left out a link to the CLI repository's analytics reference because that
file tracks the development branch and already describes behavior the
stable CLI does not have. The `Telemetry` and `How to opt out` headings
are unchanged, so existing links to those anchors keep working.

## To test

Tested on the PR preview:
- [x] Open
`/docs/guides/local-development/cli/getting-started#telemetry`, expect
the page to scroll to Telemetry and the first paragraph to mention a
device ID and your Supabase account. Observed: the Telemetry heading is
in view (the section sits near the end of the page, so it lands
mid-viewport) and the paragraph reads as written in the diff.
- [x] Open
`/docs/guides/local-development/cli/getting-started#how-to-opt-out`,
expect the opt-out steps, then "The value must be exactly `1`.", then a
paragraph naming `SUPABASE_NO_UPDATE_NOTIFIER=1`. Observed: the heading
lands at the top of the viewport and the three paragraphs follow the
steps in that order, with the variables rendered as inline code.

## Linear
- fixes GROWTH-1573
2026-11-30 22:21:25 +08:00
supabase-vercel-tedd[bot]andAli Waseem 08753bf24f docs: remove 90-day restore window screenshots from pausing guides (#54302)
## Problem

The docs state that a paused Free plan project can be restored for 1
year. Screenshots on the Upgrading guide and the local backup restore
guide still showed the old 90-day restore window, which contradicts the
text.

## Solution

The Upgrading guide drops the paused-project screenshot that showed a
90-day countdown. The download-backups screenshots on the Upgrading
guide and the "Restoring a downloaded backup locally" guide are cropped
to the Download backups menu, so they keep the useful part (where to
download the backup and find its Postgres version) without the outdated
90-day banner. Both images get alt text that describes what they show.
The `#90-day-window-to-restore` anchor on the Project Pausing page stays
as it is, so existing links keep working.

## How to verify

1. Open
https://docs-git-tedd-paused-restore-window-screenshots-supabase.vercel.app/docs/guides/platform/upgrading#time-limits
and
https://docs-git-tedd-paused-restore-window-screenshots-supabase.vercel.app/docs/guides/local-development/restoring-downloaded-backup#downloading-your-backup.
2. The Time limits section shows no "90 Days Remaining" screenshot, and
its one remaining backup screenshot shows only the Download backups
menu.
3. The Downloading your backup section shows the Download backups menu
with the Postgres version highlighted, and no "90 days" text.
4.
https://docs-git-tedd-paused-restore-window-screenshots-supabase.vercel.app/docs/guides/platform/free-project-pausing#90-day-window-to-restore
still jumps to the Restore window section.

## Checks

Ran `pnpm exec oxfmt --check` on both changed MDX files. Searched
`apps/docs/content` for remaining 90-day restore references and the repo
for references to the removed image. Checked the 1-year window against
the Studio paused-project screens (`PauseDisabledState.tsx`,
`formatRestoreWindow`). No TypeScript changed, so typecheck and lint
were not affected; `build:guides-markdown` was not run in this
environment.

## Checklist

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

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: Ali Waseem <waseema393@gmail.com>
2026-11-30 14:07:11 +00:00
Danny White daef6f6e8d fix(studio): align scoped token permission controls (#54164)
## Problem

The scoped token editor uses different access labels from OAuth. Its
permission descriptions are smaller, and the accordion headers can cut
across the rounded corners.

## Solution

Use **No access**, **Read only**, and **Read and write** in the scoped
token editor. Each permission keeps its existing access levels. Make
descriptions easier to read, keep space around badges, and align
selectors in a column on wider screens. Use the same colour for borders
and dividers, and round the outside edges of the permission list and
capability cards.

Use sentence case for permission names in the picker and matching
documentation.

| Before | After |
| --- | --- |
| <img width="767" height="536" alt="CleanShot 2026-11-27 at 11 53 58"
src="https://github.com/user-attachments/assets/f2c36703-9383-49cb-89f0-86f3da0de10c"
/> | <img width="765" height="549" alt="CleanShot 2026-11-27 at 11 53
18"
src="https://github.com/user-attachments/assets/c5abe728-47c9-4594-9787-aff2bc54efec"
/> |

## Review instructions

1. With scoped tokens enabled, open **Account → Access Tokens** and
click **Generate new token**.
2. Choose a resource and expand a permission group. Check the available
access levels, the spacing around badges, and the selector alignment at
desktop and narrow widths.
3. Expand and collapse the first and last permission groups. Open a
scoped token’s details and check the capability card corners.
2026-11-30 16:18:31 +11:00
Timothy LimandClaude Sonnet 5.5 2135b29416 docs(storage): add upload FAQ (#53737)
## Problem

Recent tickets asking for some upload details and nuances of the storage
system

## Solution

Add a Upload FAQ page

## Review instructions

Just content changes but added new sidebar item so would need to check
to ensure that works as expected

## 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 `/review-the-docs`
- [ ] 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: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-30 07:00:58 +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
anthony lio 5b31e21ddb feat(docs): guide video preview (#53981)
## Problem

* video card in the docs guide sidebar blurs the thumbnail making it
hard to preview
* users cannot see which video the card opens before they click it

## Solution

* adds a `GlassLens` filter wrapper to `ui-patterns` with lens curvature
and color fringe settings
* replaces the video card in both docs sidebars with a sharp thumbnail
* changes the video dialog in docs and www to fade the backdrop + skip
the zoom when reduced motion is on
* fixes the white iframe in dark mode + a one-frame backdrop flash at
the end of the close animation
* adds autoplay on open + the card thumbnail behind the iframe while the
video loads
* adds a hidden dialog title for screen readers

<!-- linear:table-colwidths:801 -->
<table>
<thead>
<tr>
<th>preview</th>
</tr>
</thead>
<tbody>
<tr>
<td>


https://github.com/user-attachments/assets/b41b3b8a-4d3e-47b3-92ea-3b2cd7629494

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

## Review instructions

1. open
[/docs/guides/database/overview](<https://docs-git-antlio-docs-video-preview-supabase.vercel.app/docs/guides/database/overview>)
in dark mode
2. make sure that the video card shows a thumbnail
3. make sure it feels better :)

## 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-27 21:44:17 +02:00
Tina HaandClaude Sonnet 5.5 653104a8bf docs: clarify disk IOPS and throughput are provisioned separately from compute capacity (#54073)
## Problem

The Compute size section of the Compute and Disk guide says the table
values are minimums that "every project of a given compute size gets".
Readers could easily take the table as the IOPS and throughput their
project gets. The page already says elsewhere that effective IOPS and
throughput are the lower of the instance limit and the provisioned disk
values (gp3 defaults to 3,000 IOPS and 125 MB/s), but that rule sits far
from the table, so the two read as contradicting each other. The same
confusion has come up several times in slack threads.

## Changes

- Compute size intro: describe the table as what the compute instance
can deliver, say it does not set the disk's IOPS or throughput, and link
to the provisioned disk section. The 8XL example now says "supports"
instead of "has".
- New note under the table: effective IOPS and throughput are the lower
of the instance limits and the provisioned disk values, with the gp3
defaults, and a pointer to Disk types for pricing.
- 4XL and above paragraph: the "configure" link pointed at a billing
page. It now points to Infrastructure settings, with the IOPS and
throughput usage pages linked for pricing.
- Corrects "From 8XL, baseline and maximum are the same" to "On larger
sizes like 4XL and above", which matches the compute table.

## Notes

- Docs prose only. No change to the table or shared data.
- The new statements restate text already on this page. The 4XL example
follows from the gp3 default and the effective-is-the-lower rule.

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

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 14:40:17 -05:00
46727fa89b docs: add guide for managing remote config as code (#50353)
## I have read the CONTRIBUTING.md file.

YES

## What kind of change does this PR introduce?

Docs. A new guide for `supabase config diff`, `config pull`, and `config
push`, written for CLI v3. Relates to MARKET-1590.

## What is the current behavior?

The CLI reference lists the three commands, but no guide explains the
workflow. The Select 2026 recap blog tells users to run `config pull`
with nothing to link to.

## What is the new behavior?

- New guide at `/docs/guides/local-development/config-as-code`, in the
nav after "Managing config and secrets".
- Covers diff (labels, `--exit-code` for CI), pull (preview, git check,
where values go), push (one consent question, `--yes` for CI and agents,
the `init` defaults risk), and what push can and cannot write.
- Links to `local-and-hosted-projects` and `migrating-to-v3` for the
shared v3 target and consent rules.

## Additional context

All behavior claims are checked against `supabase/cli` `v3.4.0`.

**Related:** #50594 by @Sweta0519 adds a `config push` section to
`managing-config.mdx`. This guide includes its `[group-write]` and
`init` defaults points, with credit. It might be good to ask if we can
shrink #50594 to a short pointer to this guide, so the two do not repeat
each other.

**Needs review:** one inline `NEEDS REVIEW` comment. "The Dashboard
stays editable" is product intent from the PRFAQ, not confirmed in
platform code.

**Verified:** MDX compiles, internal links and anchors resolve, and the
preview page returns 200 and shows in the nav.

| Before (net-new page) | [After (PR
preview)](https://docs-git-nikrichers-market-1590-launch-config-d-a8be81-supabase.vercel.app/docs/guides/local-development/config-as-code)
|
| ------------------------------ | --- |
| _No production URL, new page._ |
![config-as-code-after](https://moijyfpvgnmgoxvwcikq.supabase.co/storage/v1/object/public/pr-proof/supabase/supabase/pr50353/config-as-code-after-v3-865d0b89.png)
|

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

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 13:01:58 -06:00
Sudhi Gupta 6b39a00d33 docs(self-hosted): drop the test OTP expiration from the phone guide (#54061) 2026-11-26 19:19:36 +00:00
Andrey A. 3ac85eb3c6 docs(storage): update the self-hosting imgproxy example to v4 (#54145) 2026-11-26 17:17:48 +01:00
Andrey A. 4a34715279 docs(storage): update image transformation limits (#54146) 2026-11-26 17:17:42 +01:00
Andrey A. 160f233b4e chore(self-hosted): remove env vars Storage no longer reads (#54132) 2026-11-26 16:40:05 +02:00
49bda396bb docs(rbac): enable RLS on the RBAC tables (#48394)
## What kind of change does this PR introduce?

Documentation fix (security footgun).

## What is the current behavior?

Closes #36816.

The RBAC guide's schema block creates `public.user_roles` and
`public.role_permissions` but never enables Row Level Security on
either.

Because both tables are created in the `public` schema, they inherit the
default privileges granted to `anon` and `authenticated`. A reader who
follows the guide as written ends up with the two tables that decide
their entire authorization model readable *and writable* by any
signed-in user — a user can insert `(their_uid, 'admin')` into
`user_roles`, or add a permission to `role_permissions`, and the auth
hook will happily mint them the claim on next token issue.

It also leaves the guide internally inconsistent: the auth hook section
creates

```sql
create policy "Allow auth admin to read user roles" ON public.user_roles ...
```

which has no effect at all while RLS is disabled on that table.

The [Slack Clone
migration](https://github.com/supabase/supabase/blob/master/examples/slack-clone/nextjs-slack-clone/supabase/migrations/20240214102356_init.sql#L74-L79)
that this guide is explicitly based on does have both statements — they
just didn't make it into the doc.

## What is the new behavior?

Adds the two missing statements to the schema block, matching the
example app:

```sql
-- Secure the tables
alter table public.user_roles enable row level security;
alter table public.role_permissions enable row level security;
```

Plus a `caution` admonition explaining why this matters and why neither
table gets an `anon`/`authenticated` policy — `authorize()` is `security
definer`, so it reads `role_permissions` on the caller's behalf without
the caller needing access.

## Additional context

Docs-only change. The `security definer` `authorize()` function and the
`supabase_auth_admin` policy later in the guide continue to work; the
latter in fact only starts working once RLS is enabled.

---------

Co-authored-by: Jeremias Menichelli <jmenichelli@gmail.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-26 13:30:47 +00:00
claude[bot]andClaude 530ae14dab docs(auth): remove claims of automatic cleanup of expired sessions (#54123)
Removes section from the doc stating the sessions are automatically
deleted after 24 hours of expiry.

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-26 13:53:49 +01:00
Ronan Lehane 2fcbeb10ff Update billing-faq.mdx (#54125)
## Problem

The documentation does not make it clear that the support team cannot
extend grace periods or make exceptions to applied restrictions. This
may lead to incorrect expectations about what support can do.

## Solution

Added a note to the documentation:

> The support team cannot extend grace periods or make exceptions to
applied restrictions.

## Review instructions

1. Open the changed documentation page.
2. Confirm the note is displayed in the appropriate context and clearly
communicates the restriction.

## Checklist

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md).
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide).
2026-11-26 20:23:31 +08:00
Alexander F. 44f50c6cc1 docs(self-hosted): include imgproxy in the macOS Storage volume fix (#53004) 2026-11-26 12:14:36 +00:00
Andrey A. dd1badd5b3 docs(functions): trim self-hosted worker lifecycle section and fix isolate reuse claims (#54013) 2026-11-26 12:21:02 +01:00
Sudhi Gupta 5be1d76ba7 docs(self-hosted): correct NameID, claims, and rate limit details in the SAML guide (#54065) 2026-11-26 10:53:33 +00:00
Sudhi Gupta 49525599d1 docs(self-hosted): enable RLS on user_roles in the auth hooks guide (#54063) 2026-11-26 11:46:37 +01:00
Pamela Chia e0beeba832 fix(docs): keep the home prompt panel text inside on phones (#54122) 2026-11-26 18:41:21 +08:00
supabase-cli-releaser[bot]andgithub-actions[bot] 6062d5f44c chore: update cli reference doc (#53957)
Updates the CLI reference from the supabase/cli release workflow.

The command spec and sidebar are generated from the same CLI command
tree.
For changes, edit the command tree or the content under `apps/cli/docs/`
in supabase/cli.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-11-26 10:18:56 +00:00
Etienne Cournoyer 7c6366d979 Added myself to humans.txt (#54094)
## Problem

An onboarding task is suggesting to add my name in humans.txt.

## Solution

Added my name in the list.

<!--
## 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. Ensure name is correct.
2. Ensure name has been inserted at the correct location.

## 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-25 15:26:12 -07:00
Tyler Hillery 79da6ab86f docs(storage): add object versioning and lifecycle policies guides (#51566)
## What

Adds docs for the Storage object versioning private alpha and bucket
lifecycle policies for noncurrent versions.

- New: `storage/buckets/object-versioning.mdx`,
`storage/buckets/lifecycle-policies.mdx`, plus nav entries
- Updated: copy/move, delete objects (versioned buckets and `aws s3
sync`), S3 compatibility (lifecycle rows, versioning note), schema
diagram (versioning columns), storage size (noncurrent versions count
toward storage size; current vs noncurrent query)
2026-11-25 13:53:55 -06: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
Diogo Biazus 08e5819707 docs: add Diogo Biazus as per onboarding process (#53061)
Same as #52956 but now from the proper repo

## Problem

My onboarding instructions asked me to add myself to humans.txt.
While doing so I noticed there was an inconsistency in the alphabetical
order near my name.

## Solution

I added my name to the list and reordered a few surrounding names.

## Review instructions

Check that "Diogo Biazus" is in the list on the expected position.

## 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-25 11:53:46 -05:00
Riccardo Busetti ce80792683 feat(docs): Improve Pipelines docs (#54045) 2026-11-25 09:48:12 -06:00
Firdaws Farukh af75c3f8d9 Change deprecation notice in docs to mention early 2027 (#54052)
A notice was added in the Project's Settings -> API Keys page via [pull
request 52250](https://github.com/supabase/supabase/pull/52250) that
mentions `Legacy API keys will be retired in early 2027` but the notice
in the docs still mentions `Supabase is deprecating the anon and
service_role keys by the end of 2026`. This pull request updates the
docs to be consistent with the Dashboard UI to avoid confusion.
2026-11-25 18:27:32 +03:00
JerryandNik Richers 7960616cf9 fix(docs): use the sub claim in the storage copy/move policy examples (#53953)
Fixes #53952

## What changed

The Copy and Move Objects guide has three RLS policy examples that
compare `storage.objects.owner_id` (`text`) and the output of
`storage.foldername()` (`text[]`) with `auth.uid()` (`uuid`). Postgres
has no implicit cast between `text` and `uuid`, so any query governed by
these policies fails with `operator does not exist: text = uuid`.

This PR changes the comparisons to use `auth.jwt()->>'sub'`, matching
the pattern already used in the storage access control and delete
objects guides.

## Verification

- Reproduced the original error against a local Postgres instance.
- Confirmed the corrected expressions run without errors.
- No links or anchors changed.

I used AI to help debug and verify this against a local Postgres
instance, and I personally reviewed the final change.

---------

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-25 07:15:06 -07:00
Lyric HartleyandIvan Vasilov b3076f07b2 Add Lyric Hartley to humans.txt (#53081)
## Problem

My name was not in the file.

## Solution

Added my name

## Review instructions

See that my name is there

Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
2026-11-25 13:54:55 +00: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