Commit Graph
40517 Commits
Author SHA1 Message Date
Colum Ferry a26ee8b3de docs: call out the [inbucket] rename in the CLI v3 migration guide (#52686)
## 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)
2026-11-03 13:10:37 +00:00
Pamela Chia aad17d2ee2 fix: server-render /open-source repos and library docs code (#52655)
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
2026-11-03 20:48:08 +08:00
claude[bot] 2dc0258b14 docs(legal): Privacy Policy v5 (OpenAI cookie, click identifiers) (#52647) 2026-11-03 07:21:05 -05:00
b2e8cb07a4 fix: horizontal overflow on /solutions/no-code mobile view (#47913)
## 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>
2026-11-03 18:49:25 +08:00
Zammad NasirandNik Richers cf822303b8 fix: footer social links open in new tab with security attributes (#45362)
## 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>
2026-11-03 18:48:22 +08:00
Francesco SansalvadoreandCursor Agent 5912394ffc chore(studio): improve object versioning feature preview (#52689)
Improve copywriting and add image for the Storage Object Versioning
feature preview.

|Before | After |
|--|--|
| <img width="1096" height="717" alt="Screenshot 2026-11-03 at 11 05 30"
src="https://github.com/user-attachments/assets/88a7f13e-4762-48cd-89db-57e2c51f7613"
/> | <img width="1075" height="693" alt="Screenshot 2026-11-03 at 11 06
28"
src="https://github.com/user-attachments/assets/bab3a2ef-f8bf-4188-865a-701e482347f1"
/> |

## How to review

1. Open `Storage object versioning` feature preview
2. See feature preview
3. Acknowledge feature preview
4. Approve

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-11-03 10:40:46 +00:00
supabase-vercel-tedd[bot] 381f8d51a5 chore(deps): bump @hono/node-server to 2.1.5 (#52687)
## Problem

`pnpm audit` reports a moderate advisory for `@hono/node-server`
(patched in `>=2.1.3`). The lockfile resolves it to `1.19.17`, a
transitive dependency of `@modelcontextprotocol/sdk` and
`@modelcontextprotocol/node` (used by Studio).

## Solution

Ran `pnpm tsx scripts/fix-audit-vulnerability.ts @hono/node-server
--json`, which resolved the advisory without a permanent override.
Lockfile only:

- `@hono/node-server` `1.19.17` -> `2.1.5`. Both parents already declare
ranges that allow 2.x (`^1.19.9 || ^2.0.5` and `^1.19.9 || ^2.1.3`).
- pnpm also re-pointed two `@aws-sdk` entries from `@smithy/core`
`3.23.17` to `3.31.1`, a version already in the lockfile.

## Review instructions

1. `pnpm install --frozen-lockfile` succeeds.
2. `pnpm audit` no longer reports `@hono/node-server`.

Checked locally: frozen install, `pnpm audit`, `pnpm turbo run typecheck
--filter='...[origin/master]'` (studio, library, vue-blocks), `pnpm
turbo run lint --filter='[origin/master]'`, and Prettier on
`pnpm-lock.yaml` all pass. No source files changed, so no unit tests
apply.

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


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

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-03 10:19:07 +00:00
155f6d7960 chore: update cli config schemas (#52638)
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>
2026-11-03 09:37:03 +00:00
kanadandClaude 88ca61270f docs: clarify that the supabase stack commands predate CLI v3 (#52667)
## 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>
2026-11-03 09:28:38 +00:00
TheOtherBrian1andcopilot-swe-agent[bot] 0e0f84ac30 Remove MGMT API examples (#52676)
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>
2026-11-03 17:14:10 +09:00
levonandClaude Sonnet 5.5 5e896fe41f docs: add Levon Galstyan to humans.txt (#52658)
## Problem

As part of onboarding, I need to add myself to humans.txt

## Solution

This PR does that!

## Review instructions

N/A

## 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: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 09:02:06 +01:00
Anthony LioandJoshen Lim 929af55026 fix(studio): stop csp-blocked images from failing feedback screenshots (#52590)
## Problem

- "Capture screenshot" in the studio feedback widget fails in
production, and studio shows the "Failed to capture screenshot" toast
- `html-to-image` downloads each image with `fetch()`, and the csp
`connect-src` does not allow the github and google avatar hosts
- the blocked avatar gets an empty `src`, so its `onerror` rejects the
whole capture

## Solution

- changes the capture to use a transparent pixel for each image that it
cannot download, so a blocked avatar shows blank and the screenshot
still completes

| state | preview |
| -------|------|
| before | <img width="600" height="280" alt="image"
src="https://github.com/user-attachments/assets/53c5916e-cd37-4fb5-8989-070537aa9f76"
/> |

<!--
## 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
[/dashboard](https://studio-git-antlio-fix-studio-feedback-screenshot-supabase.vercel.app/dashboard)
and sign in with an account that has a github or google avatar
2. click "Feedback" in the top bar, click the image button, and click
"Capture screenshot"
3. capturing works and "Failed to capture screenshot" toast does not
show
4. click the thumbnail, and make sure that the page shows in the
screenshot with a blank area where the avatar is

## 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: Joshen Lim <joshenlimek@gmail.com>
2026-11-03 09:41:50 +02:00
Joshen Lim 7c52a9b539 Joshenlim/fe 3931 re phone mfa enrollment repeatedly force disabled despite (#52629)
## 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`
2026-11-03 14:38:39 +08:00
Riccardo BusettiandJoshen Lim b9a2422deb fix(pipelines): Fix data loading issue in Pipelines (#52642)
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-11-03 14:37:49 +08:00
K-Dog (Kevin) 5dfd86d35c fix: regressed studio typecheck performance (#52677)
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.
2026-11-03 14:33:17 +08:00
Joshen Lim 7bb6e13aa8 Include existing postgres config params in PUT payload (#52675)
## 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
2026-11-03 14:04:17 +08:00
Joshen Lim ab60ab2684 Fix ProjectLayout side nav width changes after opening and closing inline SQL Editor (#52623)
## 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
2026-11-03 14:00:59 +08:00
403fe6c2fc Add BeeAPro case study (#52674)
Adds the BeeAPro customer story (multi-tenant training platform for
compliance-heavy industries, run on one Supabase project with Row Level
Security).

- New file: apps/www/_customers/beeapro.mdx
- New logos: on-light and on-dark beeapro.png
- Linear:
https://linear.app/supabase/issue/MARKET-2421/case-study-beeapro-academy

Before merge:
- Confirm the publish date in the frontmatter

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

---------

Co-authored-by: Wendie Cheung <wendie.cheung@supabase.io>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 16:54:23 +11:00
92c13cdb2a Add VideoGen case study (#52672)
Adds the VideoGen customer story (Firebase to Supabase migration of 3.3
million users).

- New file: apps/www/_customers/videogen.mdx
- New logos: on-light and on-dark videogen.svg (single-color wordmark
from VideoGen's press kit)
- Linear:
https://linear.app/supabase/issue/MARKET-2427/case-study-videogen

Before merge:
- Confirm the publish date (TODO in the frontmatter)
- Anton Koenig sign-off still open

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

https://claude.ai/code/session_01NPB7PkB3r3qmwcheteas5e

---------

Co-authored-by: Wendie Cheung <wendie.cheung@supabase.io>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 16:24:37 +11:00
Eduardo Gurgel 90c3e57e05 feat(studio): realtime health advisors (#52535) 2026-11-03 16:29:25 +13:00
Joshen Lim 7439ae34d1 Fix update role panel not scrollable (#52621)
## 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"
/>
2026-11-03 11:12:20 +08:00
shaziya 5ce8532dff chore(www): update links in Stripe Data Pipeline blog post (#52668)
## 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)
2026-11-02 23:27:12 +00:00
Charis 8be85ad4ad feat(studio): guard branch update and push with FGA grants (#52377)
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.
2026-11-02 15:52:01 -05:00
kanadandClaude dc3cbeffe8 fix: remove anon read access to interfaces_feedback (#52534)
## Problem

The CLI (supabase/cli#5988) and MCP server (supabase/mcp#474) only
submit and delete feedback. Neither reads it back. But `anon` can still
read a row's feedback text with its delete token, so a leaked token
exposes the submission.

Linear: [CLI-2406](https://linear.app/supabase/issue/CLI-2406)

## Solution

New migration on `public.interfaces_feedback`:

- Revoke all privileges from `anon` and `authenticated`, then grant
`anon` only `delete` and `select (delete_token)`.
- Rename the select policy to "Token holders can match their own
feedback for deletion".
- Update the `delete_token` column comment to say it authorizes deletes
only.

Key choices:

- **The select policy and `select (delete_token)` stay.** Clients delete
with a `delete_token=eq.<token>` filter. A filtered delete needs select
on the filtered column and must pass the select policy. Tested locally:
revoking the grant makes deletes fail with `42501`, and dropping the
policy makes them silently match 0 rows.
- **Privileges are reset, not revoked column by column.** Default grants
differ between Postgres images. On the current local image, `anon` gets
every table privilege by default, which overrides column-level grants.
Starting from `revoke all` gives the same end state everywhere.

No client changes are needed. The delete policy and
`submit_interfaces_feedback` are unchanged.

## Review instructions

Run these against a local stack (`supabase db reset`) or this PR's
preview branch. Replace the placeholders:

- `<PROJECT_URL>`: for example `http://127.0.0.1:54321`
- `<ANON_KEY>`: the project's anon key
- `<DELETE_TOKEN>`: the token returned in step 1 or 5

1. Submit feedback. The response is the delete token.

   ```bash
   curl -X POST '<PROJECT_URL>/rest/v1/rpc/submit_interfaces_feedback' \
     -H 'apikey: <ANON_KEY>' \
     -H 'Content-Type: application/json' \
     -d '{"feedback": "test"}'
   ```

2. Try to read the feedback with the token. Expect `401` with code
`42501`.

   ```bash
curl
'<PROJECT_URL>/rest/v1/interfaces_feedback?select=feedback&delete_token=eq.<DELETE_TOKEN>'
\
     -H 'apikey: <ANON_KEY>' \
     -H 'x-feedback-token: <DELETE_TOKEN>'
   ```

Only `select=delete_token` succeeds. Every other column returns `42501`.

3. Delete without the token header. Expect `Content-Range: */0`.

   ```bash
curl -i -X DELETE
'<PROJECT_URL>/rest/v1/interfaces_feedback?delete_token=eq.<DELETE_TOKEN>'
\
     -H 'apikey: <ANON_KEY>' \
     -H 'Prefer: count=exact'
   ```

4. Delete with the token header. Expect `Content-Range: */1`.

   ```bash
curl -i -X DELETE
'<PROJECT_URL>/rest/v1/interfaces_feedback?delete_token=eq.<DELETE_TOKEN>'
\
     -H 'apikey: <ANON_KEY>' \
     -H 'Prefer: count=exact' \
     -H 'x-feedback-token: <DELETE_TOKEN>'
   ```

5. Submit feedback with a project ref and user ID.

   ```bash
   curl -X POST '<PROJECT_URL>/rest/v1/rpc/submit_interfaces_feedback' \
     -H 'apikey: <ANON_KEY>' \
     -H 'Content-Type: application/json' \
-d '{"feedback": "test", "project_ref": "my-project", "user_id":
"my-user"}'
   ```

6. Delete with only the token header. Expect `Content-Range: */0`.

   ```bash
curl -i -X DELETE
'<PROJECT_URL>/rest/v1/interfaces_feedback?delete_token=eq.<DELETE_TOKEN>'
\
     -H 'apikey: <ANON_KEY>' \
     -H 'Prefer: count=exact' \
     -H 'x-feedback-token: <DELETE_TOKEN>'
   ```

7. Delete with all three headers. Expect `Content-Range: */1`.

   ```bash
curl -i -X DELETE
'<PROJECT_URL>/rest/v1/interfaces_feedback?delete_token=eq.<DELETE_TOKEN>'
\
     -H 'apikey: <ANON_KEY>' \
     -H 'Prefer: count=exact' \
     -H 'x-feedback-token: <DELETE_TOKEN>' \
     -H 'x-feedback-project-ref: my-project' \
     -H 'x-feedback-user-id: my-user'
   ```

8. Optional: run `supabase feedback add` and `supabase feedback delete`
against this PR's preview branch. Both succeed (already confirmed).

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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 12:20:07 -08:00
Miranda Limonczenko fca0f99354 docs: move the explain() guide to guides/api/query-plans (#52471)
Closes DOCS-1496

## Problem

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

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

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

## Solution

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

### Verification

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

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

### Not verified

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

## Manual testing

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

## Problem

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

## Solution

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

### Not verified

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

## Manual testing

1. Open [Production security
checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/security/production-checklist).
See the agent prompt below the opener and four groups of checks. Click
**Copy** and see the prompt text.
2. Open [Production
checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/deployment/going-into-prod#security).
See the Security heading with a one-sentence pointer to the new page.
3. In the Security sidebar under Guides, click **Production security
checklist**. See the new page open.
2026-11-02 09:57:08 -08:00
kemal.earth 38ae9fea1c feat(studio): add admonition for api keys settings view (#52250)
## Problem

API Keys Settings view needs updating.

## Solution

Added admonition with update and link to docs.
2026-11-02 16:26:42 +00:00
Pamela Chia 315447c4f9 fix: server-render FAQ answers and library catalog (#52644)
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
2026-11-02 23:51:46 +08:00
Drew McLellan 5ff6930c2a feat(studio): send role passwords as precomputed SCRAM-SHA-256 verifiers (#52544)
## 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.
2026-11-02 15:42:59 +00:00
Pamela Chia 6a1228f4e4 feat(www): serve MCP server card and list it in the ARD catalog (#52643)
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
2026-11-02 23:32:52 +08:00
Pamela Chia b98eca75c7 fix(studio): give disk space warning plan-specific guidance (#52633)
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
2026-11-02 22:48:08 +08:00
supabase-supabase-autofixer[bot]andgithub-actions[bot] 4a92bac8d8 [bot] Decrease ESLint ratchet baselines (#52597)
Automated weekly decrease of ESLint ratchet baselines.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-11-02 09:22:17 -05:00
Jordi Enric 298fda50dc feat(logs): filter by any log attribute DEBUG-223 (#52513)
Support filtering log attributes through the picker and log details, preserving filters across URLs and query surfaces.

Fixes DEBUG-223.
2026-11-02 15:14:50 +01:00
Viacheslav Sergeev da454314b1 fix(studio): select the full folder name when renaming in Storage (#52594)
## 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)
2026-11-02 15:06:32 +01:00
Kody Jackson a23ab5ef9e fix(ui-library) - add in core SEO features (#52567)
## Problem

The UI was missing several common SEO affordances, including:
- canonical URLs
- JSON+LD structured data (`TechArticle`, `BreadcrumbList`)
- a sitemap

Also the [examples
pages](https://supabase.com/library/example/password-based-auth/auth/sign-up)
should be tagged with `noindex` b/c they're demo webpages.

## Solution

Adds these + adds the newly created sitemap to the apps/www listing.

## Preview links

### Sitemap


https://ui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app/library/sitemap.xml
<img width="1338" height="669" alt="image"
src="https://github.com/user-attachments/assets/75bdbfa0-1294-4ed2-a045-fc76d2c8f133"
/>

### Canonical URLs

Also fixed a bug in the og:url property, where it didn't set the
`/library` and instead rendered `undefined`.

**Previous**

https://supabase.com/library/docs/nextjs/password-based-auth
<img width="1338" height="702" alt="image"
src="https://github.com/user-attachments/assets/90561e30-f5b0-4a91-b19d-340b542c996d"
/>


**New**


https://ui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app/library/docs/nextjs/password-based-auth
<img width="1338" height="702" alt="image"
src="https://github.com/user-attachments/assets/2bdf34b2-2cc2-4b50-b57b-807835ba5d01"
/>

### JSON-LD

-
[preview](https://ui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app/library/docs/nextjs/password-based-auth)
-
[validation](https://validator.schema.org/#url=https%3A%2F%2Fui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app%2Flibrary%2Fdocs%2Fnextjs%2Fpassword-based-auth)

<img width="1338" height="702" alt="image"
src="https://github.com/user-attachments/assets/25627028-c37a-4940-ad6d-0d85d31f3ef9"
/>

### Examples

Now have a `noindex` value on them.


https://ui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app/library/example/password-based-auth/auth/sign-up

<img width="1338" height="702" alt="image"
src="https://github.com/user-attachments/assets/16f30d8c-8471-43e0-a55c-e6dc30e326e0"
/>
2026-11-02 08:00:28 -06:00
03c2008987 feat(docs) - add last updated date (#52421)
## Problem

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

## Solution

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

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

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

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

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

## Preview links

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

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

## Gaps / open review questions

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

---------

Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com>
Co-authored-by: anthony lio <lionnet.ant@gmail.com>
2026-11-02 08:00:09 -06:00
Drew McLellan 1e94d386a4 feat(studio): add a reset password action for custom roles (#52506)
## 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.
2026-11-02 13:52:18 +00:00
Charis 4810bbcfdf feat(studio): guard branch read, delete, reset, and restore with FGA grants (#52376)
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.
2026-11-02 08:49:19 -05:00
Pamela Chia d2d0a9ec8e fix(www): server-render the /events list (#52637)
`/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
2026-11-02 21:48:56 +08:00
Pamela Chia f5e3e7f7a2 fix(www): serve /nextjs as a 308 to the Next.js tutorial (#52634)
`/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
2026-11-02 21:48:44 +08:00
Colum Ferry d97a410577 docs: add a Supabase CLI v2 to v3 migration guide (#52147)
## 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)
2026-11-02 13:44:40 +00:00
Jordi Enric be28b2517f fix(logs): correlate request and trace IDs DEBUG-260 (#52514)
Correlate related log timelines using request and trace IDs, and improve the Timeline empty state.

Fixes DEBUG-260.
2026-11-02 14:38:02 +01:00
Ali Waseem 7d0c1c60bd fix(studio): show branches page for paused branches and leave it on branch switch (#52572)
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.
2026-11-02 06:27:18 -07:00
supabase-supabase-autofixer[bot]andphamhieu 8e2ff1f0e8 feat: update mgmt api docs (#52615)
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>
2026-11-02 14:16:44 +02:00
Jordi Enric c238864d16 docs(skills): align testing and code-review guidance (#52500)
In the retro we discussed updating local skills. I was asked to share my
local skills and see where they differ from the repo skills.
2026-11-02 12:47:05 +01:00
supabase-vercel-tedd[bot] 512b15e3dd chore(deps): bump follow-redirects to 1.16.2 (#52612)
Bumps the transitive dependency `follow-redirects` from 1.16.1 to 1.16.2
in `pnpm-lock.yaml` to resolve a high-severity advisory reported by
`pnpm audit`.

## Problem

`pnpm audit` flags `follow-redirects` 1.16.1 for
[GHSA-mrwp-f3q8-3g9p](https://github.com/advisories/GHSA-mrwp-f3q8-3g9p)
(CVE-2026-116689): "Cross-realm sensitiveHeaders arrays are discarded
and custom credentials can follow redirects". Affected range is
`>=1.16.0 <=1.16.1`, patched in 1.16.2.

It comes in through `axios`:

- `apps/studio > @stripe/sync-engine > supabase-management-js > axios >
follow-redirects`
- `apps/ui-library > axios > follow-redirects`

## Solution

Ran `scripts/fix-audit-vulnerability.ts follow-redirects`, which moved
the lockfile to 1.16.2 and confirmed with `pnpm audit` that the advisory
is gone without needing a permanent override. No manifest or code
changes.

The `pnpm install` run by the script also rewrote some unrelated
`@smithy/*` lockfile entries (deprecation notes and a `@smithy/core`
resolution for two `@aws-sdk/*` packages). Those hunks were dropped so
the diff only touches the three `follow-redirects` lines. `pnpm install
--frozen-lockfile` passes on the result.

Packages tried first, in the order the script lists them (both reverted
cleanly by the script):

- `@graphql-tools/utils` (GHSA-7mx3-vvmw-hjmv): `still_vulnerable`. The
vulnerable copy is still resolved after the temporary override is
removed, so it needs a parent dependency update.
- `@vue/server-renderer` (GHSA-g2v6-rqmx-r4w6): `still_vulnerable`, same
reason.

## Validation

- `pnpm audit` no longer reports `follow-redirects`; `pnpm why
follow-redirects -r` shows only 1.16.2.
- `pnpm install --frozen-lockfile`: passes.
- `pnpm --filter studio lint`: passes (0 errors).
- `pnpm --filter studio typecheck`: could not finish locally, `tsc` was
killed for running out of memory (exit 137) on both runs. The change is
lockfile-only, so CI typecheck is the check to rely on.

## Review instructions

1. Open the Studio preview and load the dashboard.
2. Open a project's home page, the Table Editor, and the SQL Editor, and
check that they work with no new console errors.

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


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

Out of memory: `pnpm --filter studio typecheck`

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-02 11:54:29 +01:00
2b85c37aea fix: broken links from the Web 404 Review, week of 2026-10-26 (#52617)
<!-- 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>
2026-11-02 18:29:52 +08:00
K-Dog (Kevin) 31c9854c2a chore: update api types (#52618)
Fixes API-types as per latest develop - pending prod deployment today to
clear out the failing action that checks against prod types
2026-11-02 18:27:59 +08:00
Riccardo Busetti cd0b65c03e feat(logs): Add Pipelines to unified logs and rename ETL to Pipelines (#52555) 2026-11-02 11:26:29 +01:00
claude[bot]andClaude 419ab63a14 fix(studio): report regionSelectionType 'auto' only for the Auto region option (#52283)
<!-- 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>
2026-11-02 18:11:26 +08:00