## Problem
We solved manually some `troubleshooting_entries` table missing data and
mismatches.
- **Rows without slugs.** Some `troubleshooting_entries` rows had no
slug, so no guide could match them and the guides looked "new".
- **Duplicate discussions.** A guide that didn't match its row got a
fresh GitHub discussion, leaving the original behind (sometimes with
extras).
- **Slug mismatch.** The fetch stripped the hash suffix from file names
while the table keeps it, so those guides never matched their rows.
- **Overlapping runs.** The workflow had no concurrency control, so two
runs could both create a discussion for the same guide, and `upsert`
silently overwrote the first run's row.
- **Missing checksums.** Rows without a checksum counted as "changed"
and were re-pushed to GitHub on every run.
- **Weak dry run.** `--dry-run` only printed slugs, so it was hard to
see what a run would actually do.
- **Fragile lookup and duplicated code.** Rows were fetched with every
slug in the URL (`.in('slug', …)`), and both scripts carried their own
copy of the guide reader and checksum.
## Solution
After those steps we applied successfully to the database, we revamp our
existing sync scripts to allow dry runs to make sure the changes we
apply are going to generate the correct impact.
A new improvement to prevent bulk discussion errors on GitHub API.
<!--
## 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
_Sadly, we need to merge, and pray..._
## 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)
## Problem
Add Alpar Torok to the Supabase team list in
`apps/docs/public/humans.txt`.
## Solution
Insert the name in alphabetical order between Allan S and Amir Issaei.
## Review instructions
1. Open `apps/docs/public/humans.txt`.
2. Confirm `Alpar Torok` appears once, between Allan S and Amir Issaei.
## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md).
- [x] This change does not add or edit a docs topic.
## Self-review
- Verified the one-line diff and ran `git diff --check`.
- No build or tests were run for this static text entry.
## Context
Continue to build off from
[here](https://github.com/supabase/supabase/pull/52205) to make Cmd+K
resource-aware so finding and inspecting anything in a project doesn't
depend on knowing where it lives in the dashboard.
Specifically looking into database entities for now - end state would be
that you could search for a table name for example, and Cmd K will pull
up everything related to that table for you to skim (e.g Policies,
Functions, Triggers, etc). Changes in this PR sets up searching for RLS
policies.
<img width="609" height="525" alt="image"
src="https://github.com/user-attachments/assets/212a430a-314d-48c4-a27c-2f9bb06e8457"
/>
Policies are matched on, in priority, its name and the target table.
## Performance checking
Just ran a check with Claude just to make sure that the added SQL
doesn't cause any performance degradation on the database. Plan guard
passes at 12,000 tables, under its 500ms budget. Also benchmarked
locally with a 3-character query matching every policy, results look
good so should be alright:
| Catalog | Worst-case search | No-match baseline |
|---|---|---|
| 36k policies | ~52–64ms | ~16ms |
| 120k policies | ~118–134ms | ~63ms |
## To test
- [x] Search a table name: Tables first, then its policies, under
Policies
- [x] Search a policy name: it appears under Policies and opens the
editor panel in database/policies
- [x] Policy outside `public`: schema filter switches and the policy
opens
## Context
Makes the one-click integrations feature preview the new default +
cleans up all the old integrations code that's no longer used with this
change
## To test
- [ ] Verify that the project integrations page is using the new UI
## Context
Just some housekeeping here while going through the repo, realised that
there's dead code in `ProjectBranchSwitcher`
## Changes involved:
- `ProjectBranchSelector` is only rendered by `MobileNavigationBar`,
which `DefaultLayout` only mounts when `useBreakpoint('md')` is true.
The selector's own `isMobile` check used the same breakpoint, so its
desktop `Popover` branch could never run.
- The name `ProjectBranchSelector` is also misleading since the sheet
switches more than just the project's branch + it's mobile-only, so
opting to rename it to `MobileProjectSwitcher` instead
- Also fix org rows in the sheet being tighter than project rows.
`compactPadding` was inverted, so the embedded list got `p-0.5` on the
item and lost the default `px-2 py-1.5`
- Align buttons in `ProjectBranchSelector` across all tabs + use outline
variant for secondary action
| Previous | Updated |
|---|---|
| <img width="352" height="174" alt="image"
src="https://github.com/user-attachments/assets/24cb2985-b568-4bc1-8f53-ab3914ef0804"
/> | <img width="351" height="161" alt="image"
src="https://github.com/user-attachments/assets/e6e9b0e9-c075-4235-93ca-80c5d070c287"
/> |
| <img width="336" height="248" alt="image"
src="https://github.com/user-attachments/assets/4071b73f-f741-4598-ba01-8dc7bb6ba57a"
/> | <img width="335" height="313" alt="image"
src="https://github.com/user-attachments/assets/2bea398d-ebe9-4641-9bfe-c4a7b6b10c51"
/> |
If you meant a different table, tell me what the two columns should be.
For example, file and change, or before and after behaviour.
Stops the www proxy from running on Studio's non-document traffic. Each
chunk, server function and API request under `/dashboard` currently
invokes it, and a cold Studio load preloads a few hundred chunks through
this path.
**Changed:**
- The proxy matcher now skips `/dashboard/_vercel/`,
`/dashboard/_serverFn/` and `/dashboard/api/`
- Studio documents still match, so direct `/dashboard` landings keep
getting the `_sb_first_referrer` cookie and the paid-traffic refresh
**Added:**
- Matcher tests using Next's `unstable_doesMiddlewareMatch`. The three
skip cases fail against the old matcher
A quick single-region TTFB probe on production showed a www static file
that goes through the proxy about 15ms slower than one that skips it.
Rerun that comparison on this preview if you want a before/after.
## To test
On the www preview, replacing `<chunk>` with a real chunk path from the
page source:
- `curl -sI -H 'Referer: https://www.google.com/'
<preview>/dashboard/_vercel/immutable/<chunk>`: 200 with no `set-cookie:
_sb_first_referrer`
- `curl -sI -H 'Referer: https://www.google.com/'
<preview>/dashboard/sign-in`: still has `set-cookie: _sb_first_referrer`
- Load `/dashboard` in a browser and check Studio renders with no failed
chunk or API requests
- `curl -sI -H 'Accept: text/markdown' <preview>/pricing`: markdown
negotiation on www pages is unchanged
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
## Problem
The Explorer and Notebooks launch post is using an outdated header
image. A new one was added to the launch doc.
## Solution
Replace `thumb.png` for the post with the new header image. The OG image
already matches the latest version, so it is unchanged.
## Preview links
| Site | Live |
| ---- | ---- |
| WWW |
[/blog/explorer-and-notebooks-investigations-your-team-can-rerun](https://supabase.com/blog/explorer-and-notebooks-investigations-your-team-can-rerun)
|
## Review instructions
1. Open the live post and the Vercel preview side by side.
2. Confirm the blog card thumbnail and header show the new image.
## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
## I have read the CONTRIBUTING.md file.
YES
## What kind of change does this PR introduce?
**Docs fix: three missing or buried cross-links.** Readers who need
Securing your API, custom claims and role-based access control, or the
API key migration guide land on Row Level Security or Signing keys and
stop there, because those pages do not point clearly to the page they
need. This PR adds a tip near the top of Row Level Security, one link in
its `auth.jwt()` section, and two links on Signing keys. It changes
links and one sentence each, nothing else.
Closes DOCS-1572.
## What is the current behavior?
- Linear item: Cross-link RLS and signing keys to the pages readers are
looking for
- The IA scoring v2 comparison on the live site (2026-11-01) found three
findability tasks that fail under both the production nav and Option 1.
A nav change does not fix them.
| Agent lands on | Should reach | Runs that miss (production / Option 1)
|
| --- | --- | --- |
| Row Level Security | Custom claims and RBAC | 9 / 9 of 10 |
| Row Level Security | Securing your API | 10 / 10 of 10 |
| Signing keys | Migrating to new API keys | 9 / 9 of 10 |
- Row Level Security already links to Securing your API in passing and
in its related list, but not where a reader decides to stay or leave.
## What is the new behavior?
| File | Change |
| --- | --- |
| `guides/database/postgres/row-level-security.mdx` | Tip after the
opening admonition, with "refer to": Securing your API for what the Data
API exposes, Custom claims and RBAC for role-based policies. One more
RBAC link in the `auth.jwt()` section. |
| `guides/auth/signing-keys.mdx` | Link to Migrating to new API keys in
the intro and in the step that tells readers to switch to publishable
and secret keys. |
## Additional context
- Worktree:
`~/GitHub/supabase/supabase-worktrees/nikrichers/docs-1572-cross-link-rls-and-signing-keys-to-the-pages-readers-are`
- The `<Admonition type="tip">` matches the admonition syntax already on
the page.
| Check | Result |
| --- | --- |
| Target pages exist | Pass, all three |
| Prettier, stand-in check on both files | Pass |
| Repo `pnpm run format` | Not run locally: `pnpm install` needs Node
22.23.4 or later. CI runs it. |
### Before & After
| Page | Before (production) | After (preview) |
| --- | --- | --- |
| Row Level Security |
[production](https://supabase.com/docs/guides/database/postgres/row-level-security)
|
[preview](https://docs-git-nikrichers-docs-1572-cross-link-rls-an-d0b526-supabase.vercel.app/docs/guides/database/postgres/row-level-security)
|
| Signing keys |
[production](https://supabase.com/docs/guides/auth/signing-keys) |
[preview](https://docs-git-nikrichers-docs-1572-cross-link-rls-an-d0b526-supabase.vercel.app/docs/guides/auth/signing-keys)
|
Both preview pages return 200 and contain the new links.
### Test plan
- [ ] Row Level Security shows the tip near the top, and both links open
the right pages.
- [ ] The `auth.jwt()` section links to Custom claims and RBAC.
- [ ] Signing keys links to Migrating to new API keys in the intro and
in the switch step.
- [ ] After merge: rerun the three affected IA scoring tasks on
production, 10 runs each.
🤖 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>
Closes DOCS-1573
## Problem
Recently, @antlio surfaced that our side nav was visually breaking. This
is caused by a duplicate-id issue.
The docs E2E axe scan reports duplicate `id` attributes as a warning
only, so pages with duplicate IDs ship. A full scan of production guides
found duplicate IDs on 25 of 586 pages.
**Causes:**
- **Repeated headings:** a page uses the same heading text twice, for
example `#### Example` under two sections. Each heading slugs to the
same ID.
- **Pricing partials:** three usage pages put `## Pricing` directly
above a shared partial that starts with its own Pricing heading.
- **Components:** Mermaid diagrams hardcode SVG marker and node IDs. The
Apple secret generator renders `id="undefined-optional"` on each field
label. Each "Build it" listing on the Supabase way page renders
`#build-it`.
## Solution
- **Enforce the rules:** add `duplicate-id`, `duplicate-id-active`, and
`duplicate-id-aria` to `ENFORCED_RULES`.
- **Repeated headings:** give each later duplicate a
`[#parent-section-heading]` anchor. The first occurrence keeps its ID.
- **Pricing headings:** remove the page heading above the three partials
that start with `## Pricing`. The PITR partial starts with `###
Pricing`, so it gets `[#pitr-pricing]` and the page keeps its H2.
- **Mermaid:** prefix the SVG IDs of each diagram with `useId()`.
- **Apple secret generator:** give each field an ID. The label now also
points at its input.
- **Content listings:** add an optional `headingAnchor` to listing
groups, and set it on the repeated "Build it" groups.
- **pg_net:** the `http_delete` signature had `[#post-signature]`,
copied from `http_post`. It is now `[#delete-signature]`.
**Cross-references:** no link in the repo targets a changed ID. Each
first occurrence keeps its ID, so existing links resolve to the same
heading as before.
**Not changed:** the www suite and `packages/ui-patterns`. All fixes
stay in `apps/docs`.
**Verification:**
- Against production,
`/docs/guides/platform/manage-your-usage/log-drains` fails the @a11y
test with `duplicate-id`.
- Against a local docs server, the @a11y test passes on all 28 changed
or affected pages.
**Unverified:** a full-site run with `A11Y_ENFORCE_ALL=1`. Run it
against the preview before merge.
## Review instructions
1. From `e2e/docs`, run the a11y test against production. See it fail
with `duplicate-id`:
```bash
DOCS_E2E_PAGE_PATHS=/docs/guides/platform/manage-your-usage/log-drains
PLAYWRIGHT_BASE_URL=https://supabase.com pnpm exec playwright test
--grep @a11y
```
2. Run the same command with `PLAYWRIGHT_BASE_URL` set to the docs
preview URL from the Vercel bot comment. See it pass.
3. On the preview, open
`/docs/guides/platform/manage-your-usage/log-drains`. In the table of
contents, select **Pricing** under **Log Drain Events**. See the page
scroll to the second Pricing section.
4. On the preview, open
`/docs/guides/integrations/partner-integration-guide`. See both sequence
diagrams render with arrowheads.
## 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)
## 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?
- Copy update to benefit 4 of the Enterprise-Managed Authorization for
MCP entry in `apps/www/data/features.tsx`
- Copy update to the second "When to use it" bullet of the same entry
## What is the current behavior?
Benefit 4 and the second "When to use it" bullet both say removing a
member in one place cuts off their access everywhere.
## What is the new behavior?
- Benefit 4 is now "Revoke in one place"
- Revoking Claude under Authorized apps cuts off the whole organization
- Offboarding one member means removing them from the Supabase
organization and from whichever issues their access (identity provider
or Claude organization), matching the docs and the Claude-issued launch
post
- The second "When to use it" bullet no longer ends with "so that
offboarding an employee removes their access everywhere"
## Additional context
N/A
---------
Co-authored-by: Ana <ana1337x@users.noreply.github.com>
## Problem
Enterprise-managed auth for the Supabase MCP server launched in August
with the identity provider issuing each member's ID-JAG and Okta was the
only identity provider that supported the MCP Enterprise-Managed
Authorization extension. Organizations on other identity providers
couldn't use it. Claude can now issue the identity assertion itself
which removes that dependency and we need a launch post for it.
## Solution
Adds the blog post
`2026-11-03-claude-issued-enterprise-managed-auth-for-mcp.mdx`.
## 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: Ana <ana1337x@users.noreply.github.com>
## Problem
The disk types table in the Compute and Disk guide listed gp3 throughput
over-usage as $0.95 per MB/s. The Disk Throughput usage page lists
$0.095 per MB/s per month ($0.00013 per MB/s-Hr), so the two pages
disagreed.
## Solution
Change the gp3 throughput price in the table on
`guides/platform/compute-and-disk.mdx` from `0.95` to `0.095`. The other
table rows only changed whitespace, because Prettier realigned the table
columns.
Checks run: `pnpm turbo run lint --filter='[origin/master]'` and
Prettier `--check` on the changed file.
## Review instructions
1. Open `/docs/guides/platform/compute-and-disk#disk-types` on the docs
preview.
2. In the disk types table, the gp3 **Pricing** cell reads "Throughput:
125 MB/s included, then $0.095 per MB/s".
3. The other values in the table (disk $0.125 per GB, IOPS $0.024 per
IOPS, io2 disk $0.195 per GB, io2 IOPS $0.119 per IOPS) are unchanged.
## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
[FE-4887](https://linear.app/supabase/issue/FE-4887/correct-gp3-throughput-pricing-in-compute-and-disk-docs)
Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
## 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?
- New feature page entry in `apps/www/data/features.tsx`
## What is the current behavior?
There is no feature page for Enterprise-Managed Authorization for MCP,
and `/features/enterprise-managed-auth-for-mcp` returns 404.
## What is the new behavior?
- Adds an Enterprise-Managed Authorization for MCP entry at
`/features/enterprise-managed-auth-for-mcp`, placed after the MCP Server
entry
- Body covers key benefits, when to use it, how it works (identity
provider or Claude-issued), and get started
- Stage: General Availability. Available on self-hosted: No. Product:
Platform
- `docsUrl` points to
`/docs/guides/platform/sso/enterprise-mcp-authorization`
- `blogUrl` points to
`/blog/claude-issued-enterprise-managed-auth-for-mcp`, which renders the
"Read Blog Post" button
- Hero image uses the Claude-issued blog post's OG image at
`/images/blog/2026-11-03-claude-issued-enterprise-managed-auth-for-mcp/og.png`
## Additional context
Merge after #52021 (docs page) and #52635 (blog post). The docs URL,
blog URL, and hero image come from those PRs.
---------
Co-authored-by: Ana <ana1337x@users.noreply.github.com>
Co-authored-by: Wen Bo Xie <wenbox323@gmail.com>
## 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>
## 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 — small structural and formatting fixes to
`apps/docs/content/guides/database/extensions/pgvector.mdx`.
## What is the current behavior?
**Duplicate `## Usage` heading.** The guide has `## Usage` at two places
— once above "Enable the extension", and again above "Create a table to
store vectors". Anchor IDs are generated from heading text, so both
render as `#usage`. The table of contents shows two identical "Usage"
entries, and clicking the second one scrolls to the first section.
**Untagged code fence.** The iterative-search example uses a bare ```
fence, so it gets no syntax highlighting, unlike every other block on
the page. Its SQL is also uppercase, while the rest of the guide (and
the docs style guide) uses lowercase keywords.
**Stray leading space** before `-- Example: enable the "vector"
extension.` inside the enable-extension SQL block.
**Typo:** the prose says "Transformer.js"; the library is
Transformers.js (the code comment two lines below already spells it
correctly).
## What is the new behavior?
- Second `## Usage` renamed to `## Storing vectors`, which describes the
two subsections it introduces ("Create a table to store vectors" and
"Storing a vector / embedding"). The TOC now has unique entries and
unique anchors.
- Iterative-search fence tagged ` ```sql ` and its keywords lowercased.
- Stray leading space removed.
- "Transformer.js" → "Transformers.js".
Content-only; no components, navigation, or generated output touched.
## Additional context
Before renaming the heading I checked for anything linking to the old
anchor:
```
grep -rn "#usage" apps/docs/content
```
No in-page or cross-file link targets `pgvector#usage` — the hits are
unrelated pages and external URLs — so the rename doesn't break any
links.
Verified locally against the repo's own tooling:
- `supa-mdx-lint` with `supa-mdx-lint.config.toml` → no errors or
warnings (the new heading is sentence case, per `Rule001HeadingCase`).
- Prettier 3.8.1 with `prettier.config.mjs` and
`prettier-plugin-sql-cst` → already formatted, including the newly
tagged `sql` block.
One thing I deliberately left alone: the JS sample still imports
`@xenova/transformers`, which has since been superseded by
`@huggingface/transformers`. That's a behavioral change rather than a
formatting one, so it felt out of scope here — happy to open a separate
PR if you'd like it updated.
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
## Problem
Studio Storage hides `.emptyFolderPlaceholder` objects after listing a
folder, but `fetchMoreFolderContents` calculated the next page offset
from the number of visible items. When a page includes the placeholder,
the API returns 200 objects but Studio keeps 199, so the next request
uses offset 199 instead of 200 and the last file of the previous page
appears twice. The duplicates compound with every further page.
Fixes FE-4843. Closes#52607.
Before:
<img width="521" height="458" alt="Screenshot 2026-11-03 at 14 51 09"
src="https://github.com/user-attachments/assets/1ed20ded-08c6-4c56-92d7-5c97ef82cd00"
/>
After:
<img width="532" height="460" alt="Screenshot 2026-11-03 at 14 53 58"
src="https://github.com/user-attachments/assets/64891f27-7fa0-44cb-8076-39b405df0ee4"
/>
## Solution
Each storage column now records `hiddenItemsCount`, the number of API
objects hidden from the visible list (the placeholder).
`fetchMoreFolderContents` offsets the next page by `items.length +
hiddenItemsCount`.
Because the offset is still derived from `items.length`, local edits to
a column (creating a folder, uploads, deletes, renames) keep it in step
with the server, as they did before.
Added tests to `state/storage-explorer.test.ts`: a folder with a
placeholder plus 300 files lists each file exactly once and requests
offsets 0 and 200, and a folder without a placeholder still pages at 0,
200, 400. Reverting the offset line makes the placeholder test fail.
## Review instructions
1. In a bucket, create a `docs` folder and, using the Storage API,
upload a zero-byte `docs/.emptyFolderPlaceholder` plus files
`file-000.txt` through `file-299.txt`.
2. Open `docs` in Studio and sort by Name ascending.
3. Scroll to load further pages and check the list requests in the
network tab: offsets should be 0 and 200, and no file should appear
twice.
4. Run `pnpm --filter studio exec vitest run
state/storage-explorer.test.ts`.
## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill (not applicable)
## What
Moves the `ResponseError` class (`types/base.ts`) and the classified
error classes (`types/api-errors.ts`) into
`lib/errors/studio-errors.ts`, and renames `ResponseError` to
`StudioError`.
## Why
Studio's error classification is being expanded to cover errors that
don't come from API responses (thrown network failures, aborted
requests, unexpected client errors). The API-specific name and location
no longer fit. Landing the rename on its own keeps the follow-up PR,
which introduces the classified error model, small and reviewable.
## Notes for reviewers
- Mechanical change, no behavior change. Most of the diff is a one-line
import change per file plus import re-sorting by Prettier.
- Files that only use the type now use `import type { StudioError }`.
- `ResponseError` is no longer re-exported from `@/types`; there are no
compatibility shims at the old paths.
- Unrelated identifiers like `QueryResponseError` and
`parseResponseErrors` are unchanged.
## Problem
Adding myself to humans.txt, as a new hire 🎉
## Solution
Provide a brief description of the change and the key choices you made
when architecting the solution.
Feel free to include screenshots if it includes visual changes.
## 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)
Update HA topology grouping for the Multigres JSON field rename from
`shardKey` to `shardRef`, so separate shards retain their own primaries
and replicas.
**Changed:**
- Normalize pooler responses to `shardRef`, falling back to legacy
`shardKey` and preferring `shardRef` when both exist.
- Use `shardRef` in the topology selector and shard grouping.
**Added:**
- Regression coverage from response parsing through diagram node/edge
generation for new, legacy, mixed, and conflicting key formats, plus
omitted shard identity fields.
Addresses
https://linear.app/supabase/issue/FE-4809/update-studio-ha-topology-grouping-to-use-shardref
## To test
- Open Settings → Infrastructure on a multi-shard HA project returning
`shardRef`. Confirm one group per shard, each primary shown as Primary
Database, and replicas connected only to their own shard's primary.
- Check the same topology on Database → Pipelines.
- Confirm legacy `shardKey` responses still render correctly and
single-shard projects remain unchanged.
## Validation
- Passed: 33 targeted utility tests, ESLint on all changed files, Studio
TypeScript check, and diff whitespace checks.
- Local browser: login and non-HA infrastructure passed. HA grouping
remains unverified because local poolers/gateways endpoints returned
404; browser response mocking was blocked by cross-origin/CORS
limitations.
- Upstream multigres/multigres#1608 merged October 29; deployment of the
renamed field remains unconfirmed.
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
I _think_ this is the correct framing here for an initial FAQ, but would
appreciate confirmation.
Goal is to target a broader query than just SQLite (original request
from @4L3k51 was `Can I use local Supabase instead of SQLite for
development?`), but include a SQLite mention in there to emphasize the
point. Might be too light though.
## Problem
Branch actions in Studio were guarded by hand-written permission checks
(`useAsyncCheckPermissionsV2(FGA_PERMISSIONS.PROJECT.BRANCHING_*)`, plus
one legacy `useAsyncCheckPermissions` in `Branch.Commands.tsx`) that
weren't tied to the endpoints they protect. Every branches request in
`data/branches` was marked `unguarded.migrating`.
This is the pilot migration for endpoint-bound FGA grants. Resolves
[FE-4693](https://linear.app/supabase/issue/FE-4693/pilot-migrate-branches-to-grants-8-endpoints-createbranchmodal).
## Solution
### Data layer
* `data/branches` has no `unguarded.migrating` left (was 10).
* The list, detail, and diff queries are now `branchesQueryOptions`,
`branchQueryOptions`, and `branchDiffQueryOptions`. They take a grant,
use `skipToken` without one, and keep the grant out of the query key.
* Mutations take the grant in their variables. The merge mutation also
takes `diffGrant`, because it reads the diff before merging.
### Production and development variants
The backend doesn't treat development and production branching
permissions as interchangeable:
* Actions on a single branch (`/v1/branches/{branch_id_or_ref}` and its
diff, merge, push, reset, and restore) need the production permission
for the default branch and the development permission for preview
branches.
* Creating a default branch or a branch with data needs production
create.
To model this, `lib/fga-refinements.ts` gets its first entries:
* The 8 single-branch endpoints have `production` and `development`
variants. A new `variantRequired` flag makes the fetch wrapper reject a
grant without a variant, at compile time and in `assertGrant`.
* `POST /v1/projects/{ref}/branches` has a `production` variant.
`assertGrant` requires it when the body sets `is_default` or
`with_data`.
* `useBranchGrant(endpoint, { projectRef, isDefault })` picks the
variant from the branch's `is_default`. It stays `loading` until the
branch is known.
* `GrantForVariants<M, P>` types a grant for any of an endpoint's
variants.
### UI
* The old checks are replaced with grants in `CreateBranchButton`,
`CreateBranchModal`, `Overview`, `DeleteBranchPanel`,
`DeleteBranchModal`, the branches and merge-requests pages, and
`Branch.Commands.tsx`.
* Grants are evaluated against the parent project, where branch
permissions live. The scope is passed explicitly, because
`/v1/branches/*` paths don't include the project.
* Pages that are mainly about branches show `NoPermission` when the
grant is denied and `AlertError` when the permission check fails. Action
buttons are disabled with a tooltip. Places that use the branch list
incidentally (nav, project home, usage) treat a denied grant as "no
branches" instead of loading forever.
* "Include data" in `CreateBranchModal` is disabled without production
create. It previously failed after submitting.
* `OutOfDateNotice`'s "Update branch" is disabled without the push
grant. It previously did nothing.
* The GitHub integration form blocks saving without the
production-branch grant. Previously the connection was saved while the
branch request failed, and a repo change deleted the old connection
first.
### Where the old checks differed from the backend
* **Too strict:** the branches and merge-requests pages required
development read, and the create button required development create. The
backend accepts development or production for both.
* **Wrong for the default branch:** single-branch actions always checked
development permissions, or production write for the main branch menu,
regardless of which branch was targeted.
* **Missing:** reset and "Switch to persistent" in `Overview` had no
check.
* **Legacy check:** `Branch.Commands.tsx` used the legacy `CREATE
preview_branches` check.
`BranchingPITRNotice` is unchanged: its check guards a subscription
update, not a branches request.
### Other changes
* The two new query options use an `eslint-disable` for
`@tanstack/query/exhaustive-deps`, because grants stay out of query
keys. A separate PR upgrades the plugin and allowlists `grant`, after
which these can be removed.
* `upsertMigration` in the merge mutation still uses
`unguarded.migrating`. It belongs to the database-migrations domain.
## Testing
* New component tests for `CreateBranchButton`, `DeleteBranchPanel`, the
branches page, and `GitHubIntegrationConnectionForm` cover granted,
denied, and error states.
* New `useBranchGrant` tests: default vs. preview branch, and loading
until the branch is known.
* `guarded-fetch.test.ts` covers required variants (types and runtime)
and the production variant for default and data branches.
* Shared fixtures are in `tests/lib/branch-test-utils.ts`.
* Studio typecheck passes, affected suites pass, the ESLint ratchet is
stable, and knip is clean.
## Problem
Supabase CLI v3 fails to load a `supabase/config.toml` that still has an
`[inbucket]` section. `supabase init` wrote that section until v2.108.0,
so `supabase start`, `stop`, `status` and the `db` commands fail for
projects created before then, with:
```text
[inbucket] in supabase/config.toml is no longer supported. Use [local_smtp] instead.
```
It is one of the most common v3 upgrade failures, but the [migration
guide](https://supabase.com/docs/guides/local-development/cli/migrating-to-v3)
only lists it as one row in the removed config keys table.
## Solution
- Adds a caution admonition near the top of the guide, before "Before
you upgrade", so it's seen before anything else.
- Adds a "Rename `[inbucket]` to `[local_smtp]`" section (anchor
`#inbucket`) under "Removed config keys and environment variables". It
covers the error text, a before/after example,
`[remotes.<name>.inbucket]` and `config.json`, and the fact that
v2.108.0 and later already read `[local_smtp]`, so projects can rename
it before they upgrade.
The keys inside the section are unchanged in v3 (`enabled`, `port`,
`smtp_port`, `pop3_port`, `admin_email`, `sender_name`), checked against
`packages/config/src/removed-config-keys.ts` and `inbucket.ts` on
supabase/cli `develop`. v2.108.0 is the first release with
supabase/cli#5333, which added `[local_smtp]` to both config loaders.
## Review instructions
1. Open the preview of
`/docs/guides/local-development/cli/migrating-to-v3`.
2. Check the admonition renders under the intro, and that its link jumps
to the new section.
## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
Tracks CLI-2906
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Two page templates still served their main content only after JavaScript
ran, so crawlers that don't run it never saw it. The /open-source repo
cards came from a GitHub fetch in a `useEffect`. The library docs
install command and the default code view on the client pages were
`dynamic(..., { ssr: false })`.
**Changed:**
- **/open-source repo cards render in the HTML**: I added
`getStaticProps` with hourly ISR that fetches the org repos once, keeps
only the repos the tabs list, and seeds `Repos`. Any failure (non-2xx,
timeout, unexpected body) falls back to `null`, which keeps today's
client fetch, and that result is cached for 60s so a rate-limited
regeneration heals quickly. I made counts format as `en-US` until
hydration so non-US browsers don't hit a hydration mismatch, and I
switched the star sort to a consistent comparator so ties hydrate in the
same order in every engine.
- **Library docs install command renders on the server**: I made the
app's `useLocalStorage` read storage in a layout effect instead of the
`useState` initializer, so `Command` no longer needs `ssr: false`.
Returning users who picked another package manager see npm until
hydration, then their choice, where before the box was empty until then.
- **Library docs code shows instead of "Loading code preview..."**: I
kept `CodeBlock` client-only because it reads the resolved theme, and I
changed its loading fallback to render the selected file's code in a
plain `<pre>`.
**Note:** the GitHub fetch is unauthenticated, since the www project has
no general-purpose GitHub token. If regeneration keeps getting
rate-limited, adding a read-only token to the www env is a few-line
follow-up.
## To test
Tested on the PR previews, compared with prod:
- [x] `curl -sL` /open-source with a Chrome user agent and strip
`<script>`, `<style>` and `<template>`: supabase, supabase-js,
supavisor, postgres and postgres-meta appear with their descriptions
(prod has no repo cards).
- [x] `curl -sL` /open-source and read the `__NEXT_DATA__` JSON: every
name in `repos` appears in the page's tabs.
- [x] On /open-source with the browser language set to German: the
Database tab shows the same cards in the same order as prod, counts use
German separators after load, the browser makes no GitHub API request,
and the console shows no hydration error.
- [x] Switch to the Auth and Other tabs: the same cards as prod. Repos
with equal star counts can appear in a different order.
- [x] `curl -sL` /library/docs/nextjs/client the same way:
`createBrowserClient` is present in a plain `<pre>` (prod shows "Loading
code preview...").
- [x] `curl -sL` a block page such as
/library/docs/nextjs/password-based-auth: the `npx shadcn@latest add`
command is present (prod has none).
- [x] On a block page, pick pnpm in the install command and reload: pnpm
stays selected, with no hydration error.
- [x] On /library/docs/nextjs/client after load, in light and dark
theme: the highlighted code block matches prod, with line numbers.
- [x] No hydration warnings in the console on any of these pages.
## Linear
- part of GROWTH-1416
## Problem
Prompt cards on /solutions/no-code caused horizontal page scroll on
mobile. Flex/grid children don't shrink below content size by default,
so long card titles and content pushed cards past the viewport width.
## Fix
Added `min-w-0` to the card container and title in
`TwoColumnsSection.tsx` so cards respect their grid/flex track width
instead of growing with content.
## Screenshots
| Before | After |
|--------|-------|
| <img
src="https://github.com/user-attachments/assets/069fa434-c202-4761-ab25-0eaf5f71b434"
width="300" /> | <img
src="https://github.com/user-attachments/assets/2478bd84-1361-46e9-a076-4148b0c38706"
width="300" /> |
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Bug Fixes**
* Improved code snippet layout in two-column sections by allowing the
snippet container to shrink within its column. This helps prevent the
container from forcing the surrounding layout wider when space is
limited, keeping the section more consistent across narrow and wider
layouts.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
## 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?
Bug fix
---
## What is the current behavior?
Footer social links (X, GitHub, Discord, YouTube, TikTok, Instagram)
open in the same tab, navigating users away from the Supabase website.
Issue: https://github.com/supabase/supabase/issues/45342
---
## What is the new behavior?
Footer social links now open in a new tab while keeping the Supabase
website open.
Added:
* `target="_blank"`
* `rel="noopener noreferrer"`
to all external social links in the footer.
---
## Additional context
This change improves:
* User experience (users don’t lose their current page)
* Security (prevents reverse tabnabbing via `window.opener`)
Co-authored-by: Nik Richers <nrichers@gmail.com>
Updates the published JSON Schemas from the supabase/cli release
workflow.
Generated by `scripts/publish-schemas.ts` in supabase/cli from
`apps/docs/public/schemas` — edit the schemas there rather than this
folder.
Published versions below the current one are frozen and never rewritten.
Auto-merge is enabled: the PR squash-merges once a reviewer approves it.
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Colum Ferry <cferry09@gmail.com>
## What kind of change does this PR introduce?
Docs fix.
## What is the current behavior?
The [Try the experimental `supabase stack`
commands](https://supabase.com/docs/guides/local-development/cli/migrating-to-v3#try-the-experimental-supabase-stack-commands)
section of the v3 migration guide opens with "v3 includes the
experimental `supabase stack` commands". On a page listing v2 to v3
changes, that reads as if the stack commands are new in v3. They were
already available in v2 and are still experimental.
## What is the new behavior?
The opening paragraph now says the commands were available in v2, that
v3 keeps improving them, and that they are still experimental. It also
links to the Running multiple local projects guide. The rest of the
section is unchanged.
Linear: [CLI-2918](https://linear.app/supabase/issue/CLI-2918)
## Additional context
The section stays on the page on purpose, to raise visibility of the
stack commands for people reading the migration guide.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude <noreply@anthropic.com>
Updated log configuration settings to reflect changes in the CLI usage
and removed API examples.
## Problem
MGMT API overrode previous overrides
## Solution
Remove MGMT API references
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
## Context
In Authentication -> Multi Factor, if you've set SMS MFA to any status
apart from "Disabled" and refresh the page, the UI seemingly doesn't
render the right value in the dropdown as such:
<img width="1114" height="160" alt="image"
src="https://github.com/user-attachments/assets/d3353628-0b9a-4347-b81f-3a968a87b5c2"
/>
Was happening as the form mounted with placeholder values (for SMS MFA,
default status was "Disabled"), and the real value was only applied
afterwards by a `useEffect` which called `reset`. This changed the
`Select`'s value after mount, in Radix then fires an event on that
change through `onValueChange` which set `value` as an empty string
`''`. It happens as well for TOTP, if you set any value other than
"Enabled" which is the default status.
## Changes involved
- Am also opting to breakdown `MfaAuthSettingsForm.tsx` into smaller
components as it's a single file handling 3 different forms at the
moment
- (Main fix) Derive the form values via `defaultValue` instead of via
`useEffect` which prevents the unintended firing of `onValueChange` for
the `Select`
Heads up: Generated with Claude Opus 5.5
CheckedInit made TypeScript infer each call's init through conditional
and Omit types over the full API paths, at every typed get/post/put/
patch/del call site. A cold `tsc --noEmit` spent 92s type-checking and
peaked at 17 GB of memory.
CheckedUrl already rejects missing, mismatched, and unexpected grants,
so the init check was redundant. Remove CheckedInit and ParseAsContext
(which only worked around CheckedInit breaking parseAs inference) and
type init the way openapi-fetch does.
Cold check time: 92s -> 5.4s. Instantiations: 34.9M -> 16.4M. Peak
memory: 17.3 GB -> 5.5 GB. All guarded-fetch type tests still fail for
the same reasons.
## Context
The PUT `database/postgres` endpoint does a full resource override for
the project's Postgres config.
The only surface in the dashboard that does requests to PUT
`database/postgres` is under Database -> Settings -> Log connections,
but the dashboard only sends `log_connections` and `log_disconnections`
when updating the settings here, resulting in existing config values
being over written.
Fix here is to merge the existing Postgres config values in the PUT
payload
## Context
Happens in the ProjectLayout when the side navigation menu's width can
be resized (Table Editor / SQL Editor)
On those pages, if you were to toggle the inline SQL Editor with Cmd+E,
the side navigation menu's width will change to fit the max width once
the inline SQL Editor is closed, and its happening due to the library's
default behaviour for handling nested resizable groups.
The fix was to bump `react-resizable-panel` to `4.7.x` which introduced
a new property `groupResizeBehaviour` and allows us to set that prop's
value as `preseve-pixel-size` for the `ProjectLayout` since we use pixel
values in this context for the panel widths. Same fix also applied for
`FilterSideBar` which is used in Unified Logs
## Context
Under organization -> team member settings, when managing a member's
access (specifically if the access is project-scoped), the list of
projects is not scrollable at the moment if there's a lot of projects,
so this PR addresses that, as well as cleans up a couple of small UI
issues that I found while investigating.
Screenshot here just shows which UI i'm referring to but you'll need to
have a lot of projects to reproduce this
<img width="1099" height="492" alt="image"
src="https://github.com/user-attachments/assets/73c6db27-9ae8-479b-b2cc-2b6b0d322ff6"
/>
## Problem
The "Get started" links in the Stripe Data Pipeline blog post point to
generic Stripe pages. The updated links go straight to the Supabase
destination and the Postgres sync docs.
## Solution
Update two links in the "Get started" section:
- Stripe Dashboard: `/data-management` ->
`/data-management/pipeline?destination=postgres_supabase`
- Documentation: `/data-pipeline` ->
`/data/data-pipeline/real-time-sync-to-postgres`
## Preview links
| Site | Live |
| ---- | ---- |
| WWW |
[/blog/stripe-data-pipeline-now-syncs-real-time-data-to-supabase](https://supabase.com/blog/stripe-data-pipeline-now-syncs-real-time-data-to-supabase)
|
## Review instructions
1. Open the live post and scroll to "Get started".
2. Open the preview and confirm the first two links match the table
above.
## 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)