## 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)
Part 6 of 7 in a stack that splits #52331 into reviewable pieces.
Resolves part of
[FE-4693](https://linear.app/supabase/issue/FE-4693/pilot-migrate-branches-to-grants-8-endpoints-createbranchmodal).
There are no functional changes beyond #52331, and the top of the stack
is identical to it. See #52331 for the full rationale.
## Stack
1. #52372 Grant infra for branch variants
2. #52373 Branches list query
3. #52374 Page gates on the list grant
4. #52375 Branch creation
5. #52376 Branch read, delete, reset, and restore
6. 👉#52377 Branch update and push
7. #52378 Branch diff and merge
## Changes
The update and push mutations take grants. `Overview` (including "Switch
to persistent", which previously had no check), `EditBranchModal`,
`SwitchToPreviewModal`, `MergeRequestButton`, the merge-requests page,
and the merge page use `useBranchGrant`. The "Update branch" button in
`OutOfDateNotice` is disabled without push; previously it did nothing.
The GitHub integration form blocks saving without the production-branch
grant. Previously the connection was saved even when the branch request
failed.
## Testing
New `GitHubIntegrationConnectionForm` test.
Closes DOCS-1496
## Problem
The Debugging performance issues page is moved to the Data API as a part
of the Information Architecture plan laid out in Option 1 of the [Docs
navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).
The [docs tree
tests](https://github.com/supabase/evals/tree/docs/ia-tree-tests/evals/docs-tree-tests)
in supabase/evals drove the rename. Each test gives an agent a developer
goal and only the navigation labels, with no page content and no search.
- **The task:** [one
test](https://github.com/supabase/evals/tree/docs/ia-tree-tests/evals/docs-tree-tests/investigate-tree-036-client-call-execution-plan)
asks how to see the plan Postgres uses for a slow supabase-js
`.from('orders').select()` call. Its answer is this page.
- **Today's label:** the page sits under Database as "Debugging
performance issues". That label names a symptom many pages share, not
the tool the page teaches.
- **The change:** round 4 of the tests split the `explain()` content
into its own topic, labeled "Query plans with explain()" and placed in
Data API, Tools, next to the other client tools. Option 1 fixed every
task its new topics targeted.
- **Why the whole page moves:** `explain()` is the only thing the page
covers, so a split would leave an empty source. The page takes the
topic's label as its title.
## Solution
- **Move, not split:** the whole page covers `explain()`, so a split
would leave an empty source. The page moves to `guides/api/query-plans`,
and the old URL redirects there. The existing
`api/rest/debugging-performance` redirect now points straight to the new
URL, so there's no chain.
- **Anchors:** the four H2s keep their anchors, so the client reference
link to `#enabling-explain` resolves through the redirect. The two H3s,
Example data and Expected response, are gone. Nothing links to them.
- **Navigation:** both entries in today's navigation point to the new
URL, with the label "Query plans with explain()". In Option 1, the Data
API, Tools entry points to the new page, and the Database entry is gone,
since it would list the page twice. This was the last Option 1 topic
that linked to a section of its source page, so the test that tracked
those topics is removed.
- **Inbound link:** Realtime reports links to the new URL.
- **Cross-links:** the page links Query Performance for finding slow
queries, Query optimization for plans of SQL you run yourself, Row Level
Security performance for slow policies, and the `explain()` client
reference. Query optimization and Row Level Security performance link
back to it.
- **Guide shape:** a value-statement opener with the reason `explain()`
is off by default, and the sample table before the query that reads it.
The SQL samples have no comments, and the `format` option has an
example. Production readers are told to set up the filter before
enabling, and the options paragraph warns that `analyze` on a write
changes data.
- **Row Level Security performance:** the caution about restricting
plans now sits above the step that enables them.
- **Sample fix:** `pgrst.db_pre_request` holds one function, so the
production step now checks for an existing one and says to call the
filter from it. The disable step clears the pre-request setting only for
readers who set the filter directly. The filter function sets
`search_path`, so the Security Advisor doesn't flag it. It matches the
`Accept` header case-insensitively anywhere in the list, because
PostgREST accepts `Application/vnd.pgrst.plan+text` and the old prefix
check let it through. The check for an existing pre-request function
reads `pg_db_role_setting`, which also shows per-database settings that
`pg_roles.rolconfig` leaves out. When both a global and a per-database
setting exist, the page says PostgREST uses the per-database one. The
function is created and set as `public.filter_plan_requests`, because
PostgREST resolves an unqualified name against the requested schema
first. After the filter, the page says the Supabase Platform sets
`cf-connecting-ip`, and that a self-hosted project needs a header its
proxy overwrites.
### Verification
`test-the-docs`, local stack, Supabase CLI v2.39.2. Each SQL fence ran
in document order. The `supabase-js` calls were checked through the HTTP
request they send, with `Accept: application/vnd.pgrst.plan`.
| Step | Result |
| --- | --- |
| Plan request before enabling | 406, as expected |
| Enable, then request a plan | 200, text plan, and JSON with `+json` |
| Sample table, no extra grant | readable by `anon` |
| Pre-request filter with `set search_path = ''`, non-matching IP | 401
`Not allowed to use application/vnd.pgrst.plan`, normal requests 200 |
| Filter, mixed-case `Application/vnd.pgrst.plan+text` | old filter 200
with a plan, new filter 401; matching IP 200 |
| Insert plan with `options=analyze` | row persists after the request;
without `analyze`, no row |
| Existing-function check with an `in database` setting |
`pg_db_role_setting` shows it, `rolconfig` doesn't |
| Disable | plan requests 406, normal requests 200 |
| `cf-connecting-ip` on a hosted project | checked in review on a test
project: Cloudflare sets it, and a request that sends its own value is
rejected at the edge with `error code: 1000` |
### Not verified
- **Deferred:** the TypeScript fences, because the sandbox runs Node
only for example apps. The plan values in the example response come from
the old page and differ slightly from a local run.
- **Old links left on the redirect:** the client reference specs
(`supabase_{dart,py,kt,swift}`), the supabase-js doc comment, and one
`www` blog post still link to the old URL.
## Manual testing
1. Open [Query plans with
explain()](https://docs-git-docs-query-plans-supabase.vercel.app/docs/guides/api/query-plans).
See the enable, use, production, and disable sections.
2. Open [the old
URL](https://docs-git-docs-query-plans-supabase.vercel.app/docs/guides/database/debugging-performance#enabling-explain).
See it redirect to the new page at Enabling `explain()`.
3. In the Database sidebar under Debugging, click **Query plans with
explain()**. See the new page open.
Closes DOCS-1494
## Problem
The Security section of the Production checklist is split out as a part
of the Information Architecture plan laid out in Option 1 of the [Docs
navigation architecture
proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61).
## Solution
- **Structure:** move `## Security` to
`guides/security/production-checklist`. The production checklist keeps
the heading, and its `#security` anchor, with a one-sentence pointer.
The page is in the Security sidebar under Guides, after Production
Checklist.
- **Option 1 navigation:** the "Production security checklist" entry in
Run and manage, Security and compliance, points to the new page. The
Option 1 test no longer expects the anchor.
- **Page shape:** a value-statement opener with the situations that call
for the checklist, then the items grouped under Database, Account and
organization, Auth, and Threat review. Each group opens with a lead-in
that says what its checks protect.
- **Inbound links:** two Studio linter entries for OTP settings, the
Studio Auth providers form, and `auth/auth-email-passwordless` now point
to `production-checklist#auth`. The password length lint points to the
password security guide instead, since the checklist has no password
item. They used to land on `going-into-prod#security`, which is a
pointer now.
- **Claim fixes:**
- The replication item told readers to enable replication on sensitive
tables. It now says to enable RLS on replicated tables that hold
sensitive data.
- The Auth items named **Authentication > Providers**. The Dashboard
label is **Sign In / Providers**.
- **Terminal path:** the Auth group links the Management API endpoint
for its settings. The Database items link to guides that carry CLI or
SQL paths.
- **Review fixes:** a note that RLS doesn't filter Postgres Changes
`DELETE` events, a SQL path for publications, and the other email links
the OTP expiry controls.
- **Agent prompt:** after the opener, a copyable `AiPrompt` that has an
agent audit the project read-only and report each item as pass, fail, or
can't check. It reads Security Advisor and the tables through the
Supabase MCP server, and SSL, network restrictions, Auth settings, and
org members through Management API GET endpoints. `includeInMarkdown` is
on, so the `.md` carries the prompt as a fenced text block.
- **Cross-links:** Testing auth flows points to the checklist's Auth
group, and the Security overview and Product configuration pages link
the checklist. The custom SMTP item links the SMTP guide.
### Not verified
- **Deferred samples:** none. The page has no code samples.
- **Agent prompt:** its endpoints and fields match
`api_v1_openapi.json`, and `Owner` matches Studio's role name. No agent
has run it against a hosted project.
- **Studio:** the link changes are strings only. Studio tests and build
run on this PR because it touches `apps/studio`.
## Manual testing
1. Open [Production security
checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/security/production-checklist).
See the agent prompt below the opener and four groups of checks. Click
**Copy** and see the prompt text.
2. Open [Production
checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/deployment/going-into-prod#security).
See the Security heading with a one-sentence pointer to the new page.
3. In the Security sidebar under Guides, click **Production security
checklist**. See the new page open.
Four pages served their main content only after JavaScript ran, so
crawlers that don't run it never saw that content. The FAQ answers on
/pricing, /compute and /partners were missing because the accordion
unmounts closed panels. The /library catalog was missing because
`LibraryOverview` read `?category=` with `useSearchParams`, which makes
Next client-render everything up to the nearest Suspense boundary on a
static route.
**Changed:**
- **FAQ answers render in the HTML, collapsed**: I added `FaqAnswer`,
which keeps each panel mounted (`forceMount`) and collapses it with a
grid-rows transition, and I replaced `AccordionContent` with it at the
three FAQ call sites. Open and close keep the same 150ms ease-out
motion. The panel turns `invisible` 150ms after closing, so closed
answers are not tabbable and not listed as regions, as before.
- **The /library catalog renders in the static HTML**: I moved the
`useSearchParams` read into a small `CategoryFromUrl` child that renders
nothing, under its own `<Suspense fallback={null}>`, and removed the
page-level `<Suspense>`. The child passes the category up to
`LibraryOverview` state in a layout effect, so category clicks, header
navigation to `/`, and back and forward still update the filter before
paint.
**Note:** the shared `ui` `AccordionContent` is unchanged for other
apps. The FAQ height transition sits on an inner element because Radix
sets `transition-duration: 0s` on the content node while it measures it.
On a hard load of a `/library?category=X` link (the kb FAQs link to
`?category=Authentication`), the catalog shows All until the client
applies X. Before this change the page was empty in that window.
Avoiding it means rendering the page per request.
## To test
I tested on the PR previews:
- [x] `curl -sL` /pricing with a Chrome user agent and strip `<script>`,
`<style>` and `<template>`: all 11 FAQ answers are present (prod has
none). Same for /compute (7) and /partners (5).
- [x] On /pricing, /compute and /partners, open and close a FAQ: it
slides open and closed as on prod (about 150ms each way), and the answer
stays visible while it collapses.
- [x] Open two FAQs on /pricing: both stay open.
- [x] With every FAQ closed, press Tab from a question: focus skips the
links inside closed answers. Once that FAQ is open, Tab focuses the
link.
- [x] With reduced motion enabled, open and close a FAQ: both happen
instantly.
- [x] `curl -sL` /library the same way: "Building blocks for your next
backend", all 19 block titles and the canonical link are present. The
only `<!--$!-->` is the empty `CategoryFromUrl` slot, a sibling before
the heading.
- [x] On /library, click a category: the list filters and the URL gains
`?category=`. Click "Browse all blocks" in the header: All is selected
again and every block shows.
- [x] Open `/library?category=Authentication` directly: the list ends up
filtered. Click a block, then go back: the filter is still applied.
- [x] No hydration, `useSearchParams` or Suspense warnings in the
console on any of these pages.
- [x] Compare preview with prod at 1440px and 390px wide on /pricing,
/compute, /partners and /library: FAQ row heights, spacing and
open-answer heights match prod to the pixel, nothing is clipped, and the
/library catalog and `?category=Authentication` view render the same as
prod.
## Linear
- part of GROWTH-1416
## What kind of change does this PR introduce?
Feature.
## What is the current behavior?
Role passwords are sent as plaintext in the SQL (`create role ...
password '...'` and `alter role ... password '...'`), so they can end up
in Postgres logs.
## What is the new behavior?
ASCII role passwords are hashed in the browser with Web Crypto and sent
as a precomputed `SCRAM-SHA-256$...` verifier. Postgres stores a
verifier as given, so the plaintext no longer appears in the SQL or the
server logs. This applies to every flow that sets a role password,
because they all go through the role create and update mutations.
Non-ASCII passwords are still sent as plaintext. Postgres normalizes
passwords with SASLprep before hashing, and the browser code doesn't
apply it, so a verifier built from the raw text could stop the role from
logging in. For ASCII, SASLprep changes nothing, so the verifier always
matches. The `saslprep` package can't be used here because it reads its
table with `fs.readFileSync` at import time. Covering non-ASCII
passwords is a follow-up, most likely a server-side API.
Studio also falls back to plaintext when `crypto.subtle` isn't
available, which browsers only expose in secure contexts. This keeps
setting a password working on self-hosted Studio served over plain HTTP.
## Known limitations
- The verifier is built with 4096 iterations, the Postgres default. If a
project sets `scram_iterations` higher, these roles keep 4096, because
Postgres stores a supplied verifier as given. Reading the setting first
needs an extra query and a grant for it, so it's left for the follow-up
below.
- Non-ASCII passwords, and Studio over plain HTTP, still send plaintext.
- The follow-up is a server-side path that sets the password without it
going through the SQL, which would honor the server's own settings and
cover these cases.
A verifier isn't secret (it can be attacked offline), but it is a clear
improvement over plaintext.
## Testing
- Unit tests compare the helper with an independent `node:crypto`
implementation, and check that ASCII passwords become verifiers and
non-ASCII passwords pass through unchanged.
- I also checked against a real Postgres: roles given these verifiers
log in with the plaintext password and reject a wrong one.
- The `CreateRolePanel` test now expects a verifier and no plaintext in
the SQL.
Resolves FE-4822.
Adds an MCP Server Card for the hosted Supabase MCP server at
`/.well-known/mcp/server-card.json` and lists it in the agent discovery
catalog. Most developer platforms that host an MCP server already
publish a card at that path, and agent-readiness scanners check it.
**Changed:**
- **Server card**: a static card in the v1 format of the MCP Server Card
extension (SEP-2127), named `com.supabase/mcp` to match the official MCP
registry record, with one streamable HTTP remote at
`https://mcp.supabase.com/mcp`.
- **Catalog discovery**: a new `ard.json` entry typed
`application/mcp-server-card+json` points at the card. The extension's
discovery flow reads `/.well-known/ai-catalog.json`, which already
rewrites to `ard.json`.
**Note:** `version` is pinned to the current supabase/mcp release
(0.15.0). I chose a static file over a build-time fetch for a single
string. To keep it current, a daily Checkly check alerts Growth
Engineering when the card stops serving a valid card or has been behind
a newer MCP release for more than 14 days; the fix is a one-line version
bump in this file.
## To test
Tested on the PR preview:
- [x] `curl -sS -D - <preview>/.well-known/mcp/server-card.json`, expect
200 `application/json` with `access-control-allow-origin: *`, and a body
with `"name": "com.supabase/mcp"` and one `streamable-http` remote at
`https://mcp.supabase.com/mcp`
- [x] `curl -sS <preview>/.well-known/ai-catalog.json`, expect an entry
with `"type": "application/mcp-server-card+json"` whose `url` is
`https://supabase.com/.well-known/mcp/server-card.json`
## Linear
- part of GROWTH-1415
The disk space warning banner showed every user the text "You can opt to
increase your disk size up to 200GB on the Database Settings page". That
text was wrong on three counts: 200 GB is the cap on a single automatic
expansion step, the disk settings now live on the Infrastructure page,
and it never mentioned that paid-plan disks already expand
automatically. Users who had just received the automatic resize email
couldn't tell what to do next.
**Changed:** I split the banner description by plan.
- **Paid plans**: the description says the disk expands automatically
and points to the Infrastructure page for its current size and any
limits on resizing it.
- **Free Plan**: the description says the disk doesn't expand
automatically and suggests freeing up space or upgrading.
- **Organization still loading**: the banner falls back to a
plan-neutral sentence, so a Free Plan project never flashes the paid
text.
**Note:** I left a manual-resize instruction out of the paid copy
because the Infrastructure page blocks manual resizing above 8 GB while
the spend cap is on, and blocks any resize during the cooldown after the
previous one. That page explains which case applies. Spend cap is not a
separate case because automatic expansion runs the same way with or
without it.
## To test
Setup: on a project's home page (the banner is hidden on Usage and
Infrastructure), override the `GET /platform/projects-resource-warnings`
response so the entry with `project: <ref>` has
`"disk_space_exhaustion": "warning"`. To check both plans with one org,
also override `GET /platform/organizations` to set the org's `plan.id`.
I tested on the PR preview:
- [x] Open a project in a paid organization, expect the banner
description "Your disk expands automatically as it fills up. The
Infrastructure page shows its current size and any limits on resizing
it." I observed this with the org forced to `pro`; the "Check" button
links to `/project/<ref>/settings/infrastructure`.
- [x] Open a project in a Free Plan organization, expect "Free Plan
disks don't expand automatically. Free up space, or upgrade to the Pro
Plan for a disk that expands as it fills up." I observed this with the
org forced to `free`.
- [x] In both, expect no mention of "200GB" or "Database Settings page".
- [x] With the overrides removed, expect no disk banner on a healthy
project.
## Linear
- part of GROWTH-1408
## Problem
Renaming a Storage folder such as `photos.backup` selects only `photos`,
leaving `.backup` behind when the user types a replacement name.
Fixes https://github.com/supabase/supabase/issues/52593
## Solution
Apply extension-aware text selection only to files. Select the entire
name for folders.
Add regression tests for dotted folder names, ordinary folder names, and
files with extensions.
All three tests pass with the fix; the dotted-folder case fails before
it.
## Review instructions
1. Create a folder named `photos.backup` in a test Storage bucket.
2. Select Rename and confirm the entire name is selected.
3. Type `archive` and confirm no `.backup` suffix remains.
4. Rename a file named `photo.png` and confirm only `photo` is selected.
## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
## What kind of change does this PR introduce?
Feature.
## What is the current behavior?
The Dashboard only offers a reset password action for the `postgres`
role (Database Settings). To change the password of a custom role, users
have to run `alter role ... password` in the SQL editor.
## What is the new behavior?
Each role row in Database > Roles has a "Reset password" item in its
actions menu. It opens a dialog with a warning that anything using the
old password will be disconnected, and the shared password field
(generate and copy). The password is required in this dialog.
- The item is disabled for system roles, and for roles that can't log
in, with a tooltip explaining why.
- It uses the existing role update mutation, so no platform endpoint is
involved.
- `RolePasswordField` gains `isOptional` and `layout` props so the
dialog can reuse it.
<img width="271" height="174" alt="Screenshot 2026-11-02 at 11 11 33"
src="https://github.com/user-attachments/assets/36f05fa0-e95c-440c-b6bb-4fadb466c2f6"
/>
<img width="543" height="414" alt="Screenshot 2026-11-02 at 11 11 17"
src="https://github.com/user-attachments/assets/87ba4f50-1315-4e07-b390-9c5b6beba129"
/>
## Testing
New `RoleRow` component tests cover the item being available for a
custom role that can log in, disabled for system roles and roles that
can't log in, the required-password validation, and a successful reset.
Resolves FE-4813.
Part 5 of 7 in a stack that splits #52331 into reviewable pieces.
Resolves part of
[FE-4693](https://linear.app/supabase/issue/FE-4693/pilot-migrate-branches-to-grants-8-endpoints-createbranchmodal).
There are no functional changes beyond #52331, and the top of the stack
is identical to it. See #52331 for the full rationale.
## Stack
1. #52372 Grant infra for branch variants
2. #52373 Branches list query
3. #52374 Page gates on the list grant
4. #52375 Branch creation
5. 👉#52376 Branch read, delete, reset, and restore
6. #52377 Branch update and push
7. #52378 Branch diff and merge
## Changes
`useBranchQuery` becomes `branchQueryOptions`. The delete, reset, and
restore mutations take grants. `DeleteBranchModal`, `DeleteBranchPanel`,
and the relevant `Overview` actions use `useBranchGrant`, which picks
production for the default branch and development for preview branches.
Reset previously had no check.
## Testing
New `DeleteBranchPanel` test.
`/events` showed skeletons until a client-side request to the Luma
events API finished, so the raw HTML had no upcoming events and every
category count read zero. I moved the Luma fetch to the server next to
the Notion and MDX loaders, so the HTML now includes the event list, and
I set the page to revalidate every 5 minutes.
**Changed:**
- **Event list in the HTML**: I built `getLumaEvents` on the upstream
fetch from `/api-v2/luma-events`, which I made shareable and gave a 10 s
timeout, with the same public-only filter and mapping the client used. I
removed the client fetch, the loading state and both skeletons.
- **Luma failures**: on a missing API key, an upstream error or a
timeout, `getLumaEvents` returns no Luma events and reports the error to
Sentry, the same soft fallback the Notion loader uses, so neither the
build nor a regeneration can fail on Luma.
- **Dates without hydration mismatches**: I format each event's date and
time in the event's own time zone on the server and the first client
render (banner times carry the zone name, and the banner always shows
the year). After hydration the page switches to the visitor's time zone,
as before.
**Note:** before JavaScript loads, visitors now see event-local times
labeled with their zone where they used to see skeletons. If Luma is
down during a regeneration, the page shows no Luma events until the next
successful regeneration.
## To test
Tested on the PR preview:
- [x] Fetch `<preview-url>/api-v2/luma-events?after=<now>`, then fetch
`<preview-url>/events` with a Chrome user agent, strip `<script>`,
`<style>` and `<template>` elements and React's `<!-- -->` separators:
expect every returned event name in the HTML, `All (N)` equal to the
number of event cards (`h3.leading-snug`), and no `animate-pulse`
skeletons (5/5 names, `All (5)` with 5 cards, 0 skeletons; a 6 PM Denver
event groups under its own local date)
- [x] Open `/events` in a browser outside UTC: expect no hydration
errors in the console, banner times in local time without a zone label,
and no request to `/api-v2/luma-events` (Asia/Singapore: none of either)
- [x] Click a category filter, then All; search for a title word, then
clear it; toggle On-demand: expect the list to narrow and restore as
before, and the banner to hide on On-demand
## Linear
- part of GROWTH-1416
`/nextjs` was a placeholder page that redirected with a client-side
`router.push`, so without JavaScript it served an indexable 200 with an
empty body and a self-canonical. I replaced it with a permanent redirect
straight to the Next.js tutorial, which also skips the old intermediate
`/docs/guides/with-nextjs` hop. I deleted the page, so `/nextjs` drops
out of the www sitemap, and I pointed the image transformations feature
page's Next.js link at the Next.js loader docs, which is what its text
describes.
## To test
Tested on the PR preview:
- [x] `curl -sI <preview-url>/nextjs`, expect `308` with `location:
/docs/guides/getting-started/tutorials/with-nextjs` (one hop, no request
to `/docs/guides/with-nextjs`)
- [x] Open `/features/image-transformations`, expect the "Next.js
integration" link to point to
`/docs/guides/storage/serving/image-transformations#nextjs-loader` and
no link to `/nextjs` on the page
## Linear
- part of GROWTH-1416
## 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
## What is the current behavior?
There's no page covering the breaking changes between Supabase CLI v2
and v3. v3.0.0 was released on 2026-11-02.
## What is the new behavior?
Adds a migration guide at
`/docs/guides/local-development/cli/migrating-to-v3`, linked from the
Local Dev / CLI nav just under "Install and run the CLI". It's modelled
on [Vite's migration guide](https://vite.dev/guide/migration): a short
summary, what to do before upgrading, how to install (or stay on v2), a
CI quick-reference table, then one section per change, ending with the
removed commands, flags, config keys and env vars as tables.
The content comes from the `BREAKING CHANGE` footers of the breaking PRs
on supabase/cli `next`, checked against the code there:
supabase/cli#6609, supabase/cli#7064, supabase/cli#7066,
supabase/cli#7074, supabase/cli#7109, supabase/cli#7116,
supabase/cli#7172, supabase/cli#7176, supabase/cli#7188 and
supabase/cli#7221.
## Additional context
The page describes v3.0.0 as released: npm `latest`, Homebrew, Scoop and
the Linux packages all install v3.
The "Staying on v2" channels are live with v2.122.1: npm `v2.stable`,
`supabase/tap/supabase@2`, `supabase-v2-stable` on Scoop, and `version:
v2.stable` or a semver range like `^2` on `supabase/setup-cli@v3`
(ranges need v3.2.0).
It also updates about 60 existing guides and troubleshooting pages for
v3. Hosted examples pass `--remote`, CI examples that change a hosted
project pass `--yes`, deprecated target flags and removed commands are
replaced, and pages that described migra as the default now describe
pg-delta.
It adds a new concept page, "Running commands against local and hosted
projects" at `/docs/guides/local-development/local-and-hosted-projects`,
linked from the Local Dev nav after "Local development workflow". It
covers how a command picks its target (local by default, `--remote` and
its forms, the linked project, the `Target:` line), how settings resolve
(flag, then shell env, then project env files, then config), and when
the CLI asks before changing a hosted project (`--yes`, `SUPABASE_YES`,
`--dry-run`, seeding), with a CI recipe and a section for AI coding
agents. The migration guide links to it from its target, consent and
config sections.
Tracks CLI-2747
🤖 Generated with [Claude Code](https://claude.com/claude-code)
From a paused branch, "Manage branches" showed the paused screen instead
of the Branches page, so the click seemed to do nothing. The next branch
pick then kept the hidden `/branches` route. The Branches page now
renders for paused branches, and picking a branch from the Branches
pages opens that branch's home page.
Fixes FE-4831
## Testing instructions
**Setup:** a project with branching enabled and at least three branches:
- the default `main` branch (running)
- one other running branch (`live`)
- one paused branch (`paused`)
Open the branch switcher with the chevron next to the branch name in the
top header.
**1. Manage branches from a paused branch**
1. Open `/project/<paused-ref>`. The paused state shows.
2. Open the branch switcher and click **Manage branches**.
3. Expected: the URL is `/project/<paused-ref>/branches` and the
Branches page renders with the full branch list. The "project is paused"
screen does not show.
**2. Switching to a live branch from the Branches page**
1. Continue from step 1 (on `/project/<paused-ref>/branches`).
2. Open the branch switcher and click `live`.
3. Expected: on the first click, the URL is `/project/<live-ref>` and
the live branch's project home page renders. It does not land on
`/project/<live-ref>/branches`.
**3. Switching straight from a paused branch (no Manage branches click
first)**
1. Open `/project/<paused-ref>`.
2. Open the branch switcher and click `live`.
3. Expected: the URL is `/project/<live-ref>` on the first click.
**4. Merge requests page**
1. Open `/project/<paused-ref>/branches/merge-requests`.
2. Expected: the Merge requests page renders, not the paused screen.
3. Open the branch switcher and click `live`. Expected: the URL is
`/project/<live-ref>`.
**5. Regression: switching branches keeps the current page elsewhere**
1. Open `/project/<live-ref>/editor` (Table Editor).
2. Open the branch switcher and click `main`.
3. Expected: the URL is `/project/<main-ref>/editor`, so the current
page is kept.
4. Repeat from `/project/<live-ref>/settings/general`. Expected:
`/project/<main-ref>/settings/general`.
**6. Regression: paused screen still shows on other pages**
1. Open `/project/<paused-ref>/editor`.
2. Expected: the "project is paused" screen still shows.
**7. Console**
- During cases 1–4, there should be no unhandled errors in the console
caused by the navigation itself.
This PR updates Management API docs automatically.
This regenerates:
- Management API specs and sections
- Personal Access Tokens permission-to-endpoint table
- Personal Access Tokens MCP tool permissions table
Sources include the live Management API specs, MCP permission map,
and Studio's shared permission catalog.
Co-authored-by: phamhieu <689843+phamhieu@users.noreply.github.com>
<!-- claude-slack-attribution -->
_Requested via [Slack
thread](https://supabase.slack.com/archives/C076KTY11DF/p1793584471038389?thread_ts=1793584471.038389&cid=C076KTY11DF)_
## Problem
The weekly Web 404 Review found broken URLs that are emitted by links in
this repo, or that a redirect can send to a live page. I fixed the ones
I confirmed in the code. Each fix is its own commit, so any one of them
can be dropped by reverting that commit.
## Solution
| Path that 404s | App | Change |
| --- | --- | --- |
| `/blog/sitemap.xml` | www | Add a permanent redirect to
`/sitemap_www.xml` in `apps/www/lib/redirects.js`, next to the existing
`/blog/rss.xml` redirect. Old supabase.io links still point at this
legacy per-section sitemap. |
| `/partners/sitemap.xml` | www | Add a permanent redirect to
`/sitemap_www.xml` in `apps/www/lib/redirects.js`, next to the other
`/partners/*` redirects. Same legacy supabase.io source. |
| `/design-system/og.jpg` | design-system |
`apps/design-system/config/site.ts`: `ogImage` pointed at a file that
was never added to the app. Point it at
`https://supabase.com/docs/img/supabase-og-image.png`, the shared OG
image that docs, learn, and kb already use. That image is 1200x600, so
`og:image:height` in
`apps/design-system/app/(app)/docs/[[...slug]]/page.tsx` changes from
630 to 600 to match. |
| `/docs/reference/auth/config` | docs |
`apps/docs/spec/supabase_kt_v1.yml`, `supabase_kt_v2.yml`,
`supabase_kt_v3.yml`, `supabase_swift_v1.yml`, `supabase_swift_v2.yml`:
the refresh token rotation and `REFRESH_TOKEN_REUSE_INTERVAL` links now
go to
`/docs/guides/local-development/cli/config#auth.enable_refresh_token_rotation`
and `#auth.refresh_token_reuse_interval`, matching the Dart v2 spec.
Also add a permanent redirect from `/docs/reference/auth/config` to
`/docs/guides/local-development/cli/config` in
`apps/docs/lib/redirects/static-redirects.json`, so external links to
the old URL stop 404ing. |
| `/app/settings/api-keys` | docs |
`elevenlabs-generate-speech-stream.mdx` and
`elevenlabs-transcribe-speech.mdx`: the ElevenLabs API key link was a
relative path that resolved on supabase.com. It now uses
`https://elevenlabs.io/app/developers/api-keys`, the current ElevenLabs
path (`/app/settings/api-keys` 308s there). The code-sample comments on
both pages use the same URL. |
I left out the other lines in the review. They need feature work, live
outside this repo, or come from stale clients with no matching link in
the code.
## To test
- [x] www preview: open `/blog/sitemap.xml`. It should 308 redirect to
`/sitemap_www.xml` and render the sitemap.
- [x] www preview: open `/partners/sitemap.xml`. It should 308 redirect
to `/sitemap_www.xml` and render the sitemap.
- [x] design-system preview: view source on any
`/design-system/docs/...` page. The `og:image` and `twitter:image` meta
tags should be `https://supabase.com/docs/img/supabase-og-image.png`,
and that URL should load an image. `og:image:height` should be `600`.
- [x] docs preview: open `/docs/reference/kotlin/auth-setsession` and
`/docs/reference/swift/auth-setsession`. The "Refresh token rotation"
and `REFRESH_TOKEN_REUSE_INTERVAL` links should open the matching
sections of `/docs/guides/local-development/cli/config`.
- [x] docs preview: open `/docs/reference/auth/config`. It should 308
redirect to `/docs/guides/local-development/cli/config`.
- [x] docs preview: open `/docs/reference/auth`. It should still 308
redirect to `/docs/reference/self-hosting-auth/start`, so the new
`/docs/reference/auth/config` entry doesn't collide with it.
- [x] docs preview: open
`/docs/guides/functions/examples/elevenlabs-generate-speech-stream` and
`/docs/guides/functions/examples/elevenlabs-transcribe-speech`. The "API
key" link under Requirements should go to
`https://elevenlabs.io/app/developers/api-keys`.
## 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)
## Linear
- fixes GROWTH-1409
---
_Generated by [Claude
Code](https://claude.ai/code/session_011aGhSAkL6hxEkWQxXbNazM)_
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com>
<!-- claude-slack-attribution -->
_Requested by **Pam Chia** · [Slack
thread](https://supabase.slack.com/archives/C076KTY11DF/p1792977863856759?thread_ts=1792977863.856759&cid=C076KTY11DF)_
## Problem
**Before:** `getRegionSelectionType` had an untouched-field branch that
also returned `auto`, but it was unreachable: `ProjectCreationForm`
passed `dirtyFields.dbRegion` (`undefined` when untouched) into an
`isDbRegionDirty = true` default parameter, so the branch never fired.
With the new Auto (best available) region option also reporting `auto`,
the value was ambiguous between "left untouched" and "picked the Auto
option".
**After:** `auto` means the user submitted the Auto (best available)
region. An untouched field reports whatever default it holds (`general`
or `auto`).
Production values for untouched submissions don't change, since the
removed branch never fired.
Fixes
[GROWTH-1358](https://linear.app/supabase/issue/GROWTH-1358/studio-regionselectiontype-never-reports-auto-for-untouched-default)
## Solution
- `ProjectCreation.utils.ts`: `getRegionSelectionType` classifies only
by the submitted region. Removed the `isDbRegionDirty` argument and the
untouched-field branch.
- `ProjectCreationForm.tsx`: stopped passing `isDbRegionDirty`. The
default-region sync effect still uses it, unchanged.
- `ProjectCreation.utils.test.ts`: removed the untouched-field cases.
The Auto option cases (available and unavailable) stay.
- `packages/common/telemetry-constants.ts`: updated the
`regionSelectionType` doc to the new meaning.
## Review instructions
1. `pnpm --filter studio exec vitest run
components/interfaces/ProjectCreation` passes.
2. On the preview, create a project with the Auto region option and
confirm `project_creation_simple_version_submitted` fires with
`regionSelectionType: 'auto'`.
3. Create another project leaving a smart group default (e.g. Americas)
untouched, or picking an exact region, and confirm it reports `general`
or `specific`.
## 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)
---
_Generated by [Claude
Code](https://claude.ai/code/session_01U4bWS81PTj81V8YkZeFP2Q)_
---------
Co-authored-by: Claude <noreply@anthropic.com>
## What kind of change does this PR introduce?
Feature.
## What is the current behavior?
Turning on "User can login" for an existing role that couldn't log in
gives no way to set a password. Users have to run `alter role ...
password` in the SQL editor.
## What is the new behavior?
In Database > Roles, turning on "User can login" for a role that
couldn't log in now shows the same optional password field as the create
panel, including the generate and copy actions.
- The field only shows for roles that don't currently have login. Roles
that can already log in don't get one.
- The password is sent only when login is gained in that save and the
field isn't empty. An empty field turns on login without a password, as
in create mode.
- The password is kept out of the "changed fields" diff, so unrelated
edits never send `password ''`.
- The password field is extracted from the create panel into a shared
`RolePasswordField`, which also owns the "Password generated"
announcement state.
Follow-up to #52463. Changing the password of a role that can already
log in is tracked separately and is the next PR in this stack.
<img width="840" height="655" alt="Screenshot 2026-10-29 at 15 47 33"
src="https://github.com/user-attachments/assets/8bb52e86-7b1e-4911-b625-2532fb7dfa25"
/>
## Testing
- New `RoleRow` component tests cover the field's visibility, sending
the password, and omitting it when empty or for roles that already have
login.
- Existing `CreateRolePanel` tests still pass.
Part of FE-4763.
I am updating these meters to make them not so elevated, to reduce
customer alarm. I am improving the query info to reduce alarm, and
adding a GH discussion link to help route customers to a central
location to give feedback for us to consider while improving the product
ahead of launch.
## Problem
The upcoming meters for ingest and logs work well, but are increasing
support ticket volume in a manner that is counter productive to our
ability to address the issues, while trying to tend to customer concern
and sentiment.
## Solution
Addresses customer concern by reducing visibility and adding a GH
discussion link to cusotmers can be routed to a cnetral place where we
can provide updates and we can collect feedback publicly to address any
customer concerns. We still want feedback and to address them, we just
need to control the volume.
Includes:
- removing upcoming pill from both meters
- moving the meters lower
- adjusting the query text to add more confidence around billing
timeline enforcement
- added link to the GH discussion to route feedback
before:
sudio: usage
<img width="1284" height="424" alt="image"
src="https://github.com/user-attachments/assets/0587f2a9-be6d-4a11-8e33-64b6354bc41d"
/>
and after:
<img width="861" height="448" alt="image"
src="https://github.com/user-attachments/assets/708497af-eda9-478f-ad84-f29196f2f01f"
/>
## Problem
- the change is a follow-up to search v2 (#51175, #52233), which runs as
the `docs-search-v2` experiment
- in the `search-v2-active` group, `cmd+k` opens the new search instead
of the legacy command menu, so readers lose ask ai
- a search with no results stops at "No results found." and gives no
next step
## Solution
- adds an ask ai panel and a `cmd+i` shortcut to search v2, so the
`search-v2-active` group can ask supabase ai
- adds ask ai entries to the top nav, the results footer and empty
results, so readers can ask from search
- changes search and ask ai to use one dialog for the page, so two
dialogs never open together
- adds `renderNoResults` and `renderFooterStart` slots to the
`docs-search` panel, so the package has no ask ai code
- nit: adds a `keycaps` variant to `KeyboardShortcut` with a
design-system example, and uses it in the search trigger and footers
| state | preview |
| -------|------|
| after | <video
src="https://github.com/user-attachments/assets/6681fcba-6267-4ee1-b9e0-154b5f45091d"
/> |
<!--
## Preview links
If relevant, include links to changed pages for easy review access.
Copy the preview base URL from the Vercel bot comment on this PR. Use
the following table as an example template.
| Site | Live | Preview | Search for |
| -------------- |
-------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------
| ----------------------------- |
| WWW | [/blog/your-post](https://supabase.com/blog/your-post) |
[/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post)
| unique phrase from the change |
| Docs |
[/docs/guides/your-page](https://supabase.com/docs/guides/your-page) |
[/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page)
| unique phrase from the change |
| Studio | [/dashboard](https://supabase.com/dashboard) |
[/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard)
| unique phrase from the change |
| Design system | [/design-system](https://supabase.com/design-system) |
[/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system)
| unique phrase from the change |
| UI library | [/library](https://supabase.com/library) |
[/library](https://ui-library-git-branch-name-supabase.vercel.app/library)
| unique phrase from the change |
| Knowledge base |
[/kb/guides/your-page](https://supabase.com/kb/guides/your-page) |
[/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page)
| unique phrase from the change |
-->
<!-- ## Additional context
Optionally add any other context or screenshots.
-->
## Review instructions
1. open
[/docs?docs-search-v2=search-v2-active](https://docs-git-antlio-feat-docs-ask-ai-supabase.vercel.app/docs?docs-search-v2=search-v2-active)
2. make sure that the top nav shows the search box and an `Ask AI`
button
3. press `cmd+i` (`ctrl+i` on windows and linux), and make sure that the
ask ai dialog opens with example questions
4. select an example question, and make sure that the bolt icon changes
from gray to color while the answer loads
5. press `cmd+k`, and make sure that the same dialog changes to search
6. search for `zzqqxx`, select `Ask Supabase AI: zzqqxx`, and make sure
that ask ai opens and sends the question
7. search for `auth`, and make sure that the results footer shows `Ask
Supabase AI` and the keycap hints
## Checklist
Check all before review:
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
Stacked on supabase/supabase#52422.
## What
The self-hosted Assistant tools become contracts, so every tool the
Assistant can call now comes from the registry and the allowlist is
derived from it.
* The fallback tools (`getSchemaTables`, `getRlsKnowledge`,
`getFunctions`, `getEdgeFunctionKnowledge`) are deleted. Self-hosted now
gets the shared tools plus:
* `list_tables`: a local contract with the same input as the MCP tool
and a similar output, built from pg-meta. It shares its prompt guidance
with the remote contract, which moves to `list-tables.remote.ts`. On
platform the remote contract is still used.
* `list_functions`: self-hosted only, filtered by schema in SQL.
* `list_policies`: now available in both environments.
* `runPgMetaQuery` (`tool-sql.server.ts`) runs pg-meta-built SQL and
validates the rows with the builder's zod schema. Off platform it calls
`executeQuery` directly, because the default fetcher goes through a
relative API URL that doesn't resolve server-side.
* The allowlist comes from the registry:
* `ToolName` and the tool set validation schema are built from the
contract keys. The tool category map is removed.
* `mcp-tools.ts` keeps only tools with a remote contract, before opt-in
filtering, so `UI_EXECUTED_TOOLS` is gone. `EXPECTED_MCP_TOOLS` is
derived from the contracts and type-checked against the MCP package.
* Saved chats: the legacy contracts now trim replayed outputs.
`getRlsKnowledge` replays only the saved policy list, without the stale
RLS instructions. `getEdgeFunctionKnowledge` replays a pointer to
`load_knowledge`.
* The logs reference text no longer names `query_logs`.
## Behavior changes
* `list_policies` on platform validates rows before formatting, so a row
that fails pg-meta's schema now errors the tool call instead of
returning text.
* `list_tables` on self-hosted doesn't include the MCP tool's optional
`advisory` field.
* `list_functions` with an empty `schemas` list returns every non-system
schema.
* On platform, if the MCP tools fail to load, `list_tables` is dropped
from the tool set like the other remote tools.
## Tests
* Unit tests for `runPgMetaQuery`, the local `list_tables` and
`list_functions`, and the output mapping. The SQL boundary is mocked;
not yet run against a live self-hosted database.
* Legacy contract tests cover trimming, the empty and missing policy
cases, and that replaying an already-trimmed output leaves it unchanged.
## 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>)
## Problem
The Studio error shown when an organization does not exist, or the user
lacks permission to view it, has two grammar mistakes: "permission to
access to it" and "Contact the the owner".
## Solution
Changed the copy to "permission to access it" and "Contact the owner".
This is a text-only change in `OrgNotFound.tsx`, reformatted with the
repo's Prettier config. No logic changed.
## Review instructions
1. Open `/dashboard/org/<a-slug-that-does-not-exist>` on the Studio
preview.
2. Confirm the message reads: "This organization does not exist or you
do not have permission to access it. Contact the owner if you believe
this is a mistake."
## 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, no docs
changed)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Fixes#42997
Removed `ip_address` from the audit log example and clarified that
client IP addresses are stored in `auth.sessions`, but are not currently
included in Auth audit logs.
This aligns the documentation with the current behavior.
---
## I have read the CONTRIBUTING.md file.
YES
## What kind of change does this PR introduce?
Docs update
## What is the current behavior?
The documentation example includes `ip_address` in Auth audit logs, but
this field is not actually present in the audit logs.
## What is the new behavior?
The example no longer includes `ip_address`, and a note clarifies that
IP addresses are stored in `auth.sessions`, but not included in audit
logs.
## Additional context
N/A
---------
Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
Co-authored-by: Nik Richers <nik@validmind.ai>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
## Problem
The custom SMTP Management API example in the Auth documentation sends
`smtp_port` as a number (`587`). The API expects a string and rejects
the numeric value with:
```json
{"message":"smtp_port: Invalid input, expected string, received number"}
```
Fixes#52384.
## Solution
Change `smtp_port` from `587` to `"587"` in the `curl` example in
`apps/docs/content/guides/auth/auth-smtp.mdx`, matching the API's
expected string type.
## Review instructions
1. Open `apps/docs/content/guides/auth/auth-smtp.mdx`.
2. Find the custom SMTP Management API example.
3. Verify that `smtp_port` is `"587"` and that the rest of the example
remains unchanged.
## Validation
- `git diff --check` — passed.
- JSON payload parsing — passed; `smtp_port` is a string.
- Prettier check for the modified MDX file — passed.
- Full monorepo build — not run; this is a one-line documentation
change.
- Live API snippet test — deferred because it would target the
production Management API.
## Checklist
- [x] I have read
[[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md).
- [ ] If I edited an existing docs topic, I used the `/edit-the-docs`
skill, which applies the docs [[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide).
Co-authored-by: Nik Richers <nrichers@gmail.com>