Commit Graph
22209 Commits
Author SHA1 Message Date
Charis 28e5d2fd64 refactor(studio): migrate search_docs remote MCP tool to a contract (#52305)
Migrates `search_docs` to `RemoteToolContract`. Follow-up to #52226.

- It is the last remote MCP tool that was still gated by
`TOOL_CATEGORY_MAP`.
- Opt-in level is unchanged: always available (`minOptInLevel: null`).
`needsApproval` is `false`.
- Registered in `REMOTE_TOOL_CONTRACTS` and removed from
`TOOL_CATEGORY_MAP`.

No change to what the model sees.
2026-10-26 09:31:45 -04:00
supabase-supabase-autofixer[bot]andantlio ce393db239 feat: update mgmt api docs (#52280)
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: antlio <14966155+antlio@users.noreply.github.com>
2026-10-26 15:28:56 +02:00
Kody Jackson b123d74008 chore(kb,docs) - migrate migration pages (#52243)
## Problem

Don't want dupe entries of migration pages. Consolidation + redirects.

## Solution

Went ahead and kept the listing on the docs homepages and docs resource
pages b/c those links are good for general discoverability (for people,
bots).

Also migrated over the existing Vercel Postgres guide that got missed in
the first pass of this.

Updates relevant links elsewhere w/in the app too.

## Preview links


[KB](https://kb-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/)
[KB Vercel
Postgres](https://kb-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/kb/guides/migrate-from-vercel-postgres)

[Docs
homepage](https://docs-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/docs)
[Docs resources
page](https://docs-git-kody-devrel-764-remove-migration-guides-docs-supabase.vercel.app/docs/guides/resources)

[www neon
migration](https://zone-www-dot-com-git-kody-devrel-764-remove-mig-a4e53a-supabase.vercel.app/solutions/switch-from-neon)
2026-10-26 08:19:26 -05:00
Kody Jackson 38915f19be chore(www,kb) - add cross links to hosted-postgres page (#52242)
## Problem

We want to do more to promote this page.

## Solution

Adds relevant cross links from other sources.

## Preview links

n/a, atomic changes, not helpful to have preview links
2026-10-26 08:08:08 -05:00
supabase-supabase-autofixer[bot]andgithub-actions[bot] 0d8b819cbc [bot] Decrease ESLint ratchet baselines (#52265)
Automated weekly decrease of ESLint ratchet baselines.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-10-26 09:07:18 -04:00
Charis ac1fa9f1b6 fix(studio): add missing grant to entity search query (#52302)
## Problem

Typecheck and the `DatabaseEntitySearchCommands.test.tsx` unit tests
fail on master. `executeSql` in `entity-search-query.ts` does not pass
the now-required `grant`.

## Solution

Pass `grant: unguarded.migrating`, matching the other `data/database`
queries.
2026-10-26 12:38:25 +00:00
Saxon Fletcher bc9bee459f refactor(studio): extract reusable logs table building blocks (#50953)
Extract shared logs tables and query helpers. Validate query parameters and preserve defaults, keep custom preview footers independent of pagination, and cover preview behavior and omitted log counts.
2026-10-26 13:06:29 +01:00
Charis 254e24b170 feat(studio): require grants in fetch wrappers for FGA-annotated endpoints (#52238)
## Problem

Resolves FE-4689 and FE-4690.

Builds on #52105. Studio's fetch wrappers don't know which FGA
permissions an endpoint requires, so a UI guard and the request it
protects can drift apart. This makes the `grant` minted by
`useGrant`/`getGrant`/`ensureGrant` part of the request itself: calling
an annotated endpoint without a matching grant is a compile error.

## Solution

### What changed

- **Fetch wrappers** (`data/fetchers.ts`, `data/guarded-fetch.ts`):
`get`/`post`/`put`/`patch`/`del` keep their names, so no imports change.
- The `grant` option is required for endpoints annotated with
`x-fga-permissions`, and forbidden for unannotated ones.
- It accepts a `Grant` for that exact endpoint (or one of its variants)
or `unguarded`.
  - The wrapper strips the grant before calling openapi-fetch.
  - `head`/`trace`/`options` are unchanged.
- **Owned params**: refinements can declare query params the wrapper
sets from the grant's variant (`ownedQuery`). These params are removed
from the init type (`Omit<Query, Owned> & { [K in Owned]?: never }`), so
callers can't pass them. Nothing uses this yet: the api-keys `reveal`
variant is the first.
- **`assertGrant`** runs in development only and throws
`GrantAssertionError`. It checks:
  - the endpoint;
  - a missing grant;
  - the variant against `when(init)` predicates;
- the path `ref` against the grant's project, also accepting the parent
project ref for a grant minted on a branch;
  - the path `slug` against the grant's organization.
- **Escape hatches**:
  - `unguarded.migrating` for unmigrated call sites.
- `unguarded.byDesign('reason')` for calls that intentionally skip the
check.
- **Grants** now record `permissionsProjectRef`, the ref permissions
were evaluated against. It's required once the scope is resolved.
- **Readable errors**: a missing or wrong grant reports the caller's own
init type plus the expected `grant` type, instead of openapi-fetch's
full options type. Under `noErrorTruncation`, the old message was tens
of KB per call site.
- **`executeSql`** now requires a grant for `POST
/platform/pg-meta/{ref}/query`, so every caller counts as unmigrated.
- **Codemod**: added `grant: unguarded.migrating` at every existing call
site that hits an annotated endpoint, including all `executeSql`
callers. No behavior change. A follow-up lint rule ratchets the count
down.
- **Dependencies**: adds `openapi-typescript-helpers` (the version
openapi-fetch already uses) for the helper types. Only openapi-fetch's
unexported `InitParam` is copied locally.

### Type-level notes

- The grant is checked in the parameter type rather than in `Init`'s
constraint. That way `Init` is still inferred from the argument, which
keeps both the return type and the error message tied to the caller's
code.
- The grant is replaced rather than intersected. Intersecting a wrong
grant with the expected one can reduce the init type to `never`, which
then accepts the call.
- `NoInfer<Path>` stops a grant's endpoint from becoming an inference
candidate for the path.

## Review instructions

### Tests

- `data/guarded-fetch.test.ts`:
- Type equality with the raw client: required params and body,
template-literal paths, `parseAs`, `signal`/`headers`, optional-init
endpoints, and `unguarded`. An openapi-fetch upgrade that breaks the
local `InitParam` copy fails typecheck.
  - Negative type cases:
    - a missing or `undefined` grant;
    - a missing init on an annotated endpoint;
    - a grant for a different path or method;
    - any grant or `unguarded` on an unannotated endpoint;
    - a forged grant;
    - params and body still checked;
    - an unknown path.
- `guardMethod` and `assertGrant` runtime behavior, including
branch-parent refs and org slugs.
- Variant and owned-param tests are deferred to the api-keys (`reveal`)
and pg-meta (`read`/`write`) PRs, since no refinements exist yet.

1. Run `pnpm typecheck` and confirm Studio passes. Then remove a `grant:
unguarded.migrating` and check that the error is short and names the
expected grant.
2. Run `pnpm test:studio`.
3. Skim the codemod commit: it only adds `grant: unguarded.migrating`
and the `unguarded` import.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-26 07:58:22 -04:00
Charis e38c93e960 feat(studio): block read replica creation when upgrade crosses collation lineage (#52244)
## What

Read replica creation is now blocked when upgrading the primary's
Postgres would cross a collation lineage boundary. The check uses the
upgrade eligibility endpoint, and the lineage boundary logic is ported
from the platform. The blocker shows an admonition asking the user to
upgrade Postgres first, with a link to the upgrade section in General
settings.

- Multiple blockers on the replica dialog now collapse into a single
admonition.
- `useCheckEligibilityDeployReplica` now exposes `isLoading`, `isError`,
`error`, and `refetch`. The dialog shows a skeleton while loading and an
error with a Retry action on failure.

## Notes for reviewers

- Upgrade eligibility only runs for active, healthy projects, so other
projects are not blocked by this check.
- The admonition copy needs a messaging review.

## Testing

- Unit tests for the collation lineage util.
- Component tests for blocker collapsing, the loading state, and
error/retry.

Closes FE-4643
2026-10-26 07:56:40 -04:00
Jeremias Menichelli f4d6d90527 chore: Open new search on ctrl+k and not-found page (#52233)
## Problem

When user press `ctrl` + `k` on docs, with the search v2 experiment
active, the old search opens instead of the new one.

Also, search v2 doesn't open on 404 page.

## Solution

Add missing key handler.

<!--
## 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 preview with new search experiment enabled
2. Press `ctrl` + `k`, the new search modal should appear
3. Then open a 404 page
4. Make sure that the "Search the page" button opens the new modal too

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-26 11:05:24 +01:00
Jeremias Menichelli e0e6a01905 chore: Remove custom ids from md headings (#52230)
## Problem

Markdown for agents hold the custom IDs, which leak into search
embeddings.

<img width="701" height="231" alt="Screenshot 2026-10-23 at 15 07 17"
src="https://github.com/user-attachments/assets/1e79e282-b954-4bf5-850c-8f0074e5b094"
/>


## Solution

Update markdown generation scripts to remove them.

<img width="399" height="297" alt="Screenshot 2026-10-23 at 15 07 11"
src="https://github.com/user-attachments/assets/af5183b8-8585-450b-a624-9127e4babfe8"
/>


<!--
## 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 preview link.
1. Go to a page that has a custom id in their headings
1. Open the corresponding markdown file by adding .md extension to the
URL
1. Markdown version of the page should have deleted custom IDs in
headings.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-26 11:04:54 +01:00
Jeremias Menichelli fa9f1baeb4 fix: Trim query texts. Prevent searches with less than two characters (#52220)
## Problem

Currently we are firing searches too early and too often. Analyzing
data, most common cases are people adding spaces while typing, and not
so meaningful two character searches _(see screenshot below)_.

<img width="419" height="460" alt="Screenshot 2026-10-23 at 13 23 17"
src="https://github.com/user-attachments/assets/ead60c12-e558-4584-9108-1b4326846ce0"
/>

This first, makes unnecessary calls to our search function, but second
pollutes data.

## Solution

 - Trim queries before sending them to the search callbacks
- Avoid searches with only two characters, this is configurable on the
consumable side of the components via a `minCharacters` prop which
default is `0`.

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

Open both docs and kb previews, and open the new search experience in
both.

- Write combinations like " au", "au ", or "au" these strings shouldn't
trigger a search call in the network tab
- Once you add a third character that is not a space, a search call
should happen

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-26 11:04:10 +01:00
claude[bot]andClaude b2d7ddbdf3 feat(www): add Business Associate Agreement legal page (#52227)
<!-- claude-slack-attribution -->
_Requested by **Nicole Kramer** · [Slack
thread](https://supabase.slack.com/archives/C0161K73J1J/p1792759190025999)_

## Problem

**Before:** there is no Business Associate Agreement (BAA) page in the
Legal Hub.

**After:** a new page at
`/legal/customer-resources/business-associate-agreement`, listed in the
Legal Hub (`/legal`) under Customer Legal Resources, and indexable like
any standard page (no noindex/nofollow, no header rule; the sitemap is
generated from `pages/**/*.tsx`, so it is included automatically).

Adds a versioned BAA page whose text is the Word doc `2026.10.23 -
Supabase - BAA.docx`.

## Solution

Mirrors the Data Processing Addendum page:
`apps/www/pages/legal/customer-resources/business-associate-agreement.tsx`
uses `LegalDocVersions` with a newest-first `versions` array, and the
content is in
`apps/www/data/legal/customer-resources/business-associate-agreement/v1.mdx`.
The doc was converted with pandoc and hand-fixed to the legal MDX
conventions (ASCII quotes, bare URLs, bold defined terms inside quotes,
literal `(i)`/`(a)` paragraphs, `##` numbered section headings). The
doc's title line "Business Associate Agreement" is not repeated in the
MDX because the page renders it as the h1.

**Version and date:** per Nicole, the version and date show only in the
page header ("Version 1 - October 23, 2026", via `effectiveDate:
'October 23, 2026'`), like the rest of the Legal Hub. The doc's two body
placeholder lines ("Version 1 - [Month Day, 2026]" and "Last modified:
[Month Day, 2026]") are removed from the body.

**Two wording edits, both per Nicole:**
1. First paragraph: `(as applicable, "Supabase")` now reads `(as
applicable, "Supabase" or "Business Associate")`.
2. Section 15: `and the "Last modified" date at the top of this BAA will
be updated accordingly.` now reads `and the date at the top of this BAA
associated with the current version of this BAA, will be updated
accordingly.`

**Formatting change, per Nicole:** 10.10, 10.11, 11.1, 11.2 and 11.3
were headings in the Word doc. They are now plain numbered paragraphs,
matching 2.1-2.3 and 10.1-10.9 (markup only, text unchanged). Their body
paragraphs and the nested (i)/(ii)/(a)/(b) paragraphs under 11.2 are
unchanged. Nothing in the repo linked to the removed heading anchors.

Everything else is verbatim from the doc: after applying the two removed
lines and the two wording edits, the docx and MDX have 61 paragraphs
each with 0 differences (title line excluded). The docx has no tracked
changes and no comments.

## Open questions / oddities (wording left untouched)

1. In 11.2 the doc indents (i)/(ii) and (a)/(b) as nested items. Per the
legal MDX convention they render as flat, unindented paragraphs, so the
nesting is not visually represented.
2. Curly quotes are normalized to straight quotes (ASCII convention).
3. The page uses the same `prose` wrapper as the DPA page. There are no
headings containing a literal "(c)", so `legal-prose` is not needed.

## Review instructions

1. Open the Vercel preview for `www` and go to `/legal`. The BAA should
be listed under Customer Legal Resources.
2. Open `/legal/customer-resources/business-associate-agreement` and
compare it with the Word doc. The header should show "Version 1 -
October 23, 2026" and the body should have no version or date lines.
3. Check that the page has no noindex meta tag and no `X-Robots-Tag`
header.

Checks run locally: prettier (repo options, minus the SQL plugin)
passes, the case-hazard script passes, and the docx-versus-MDX text diff
shows 0 differences beyond the known edits. Typecheck, lint and tests
were not run because `pnpm install` fails in this sandbox.

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

https://claude.ai/code/session_01HY4xb77U7SvkyMJP5kPJLs

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-26 19:47:48 +11:00
Gildas Garcia 54a271b0f8 Upgrade sonner to 2x and update toast design (#52003)
## Problem

Two issues:
- There's an accessibility issue with sonner before v2 as it applies
`role="status"` to an `li` element
- The custom Tailwind classes we pass are not applied and once applied
correctly, the design is not what we want

## Solution

- Upgrade sonner to v2 (the aria attribute are now applied to the toasts
container)
- Fix the design, especially the close icon and the upload usages (with
progression)

In all screenshots, the close button is only displayed when hovering the
toast.

<img width="384" height="73" alt="image"
src="https://github.com/user-attachments/assets/c34038f1-30ce-43d7-a031-81727d61592c"
/>

<img width="776" height="156" alt="image"
src="https://github.com/user-attachments/assets/ec27ff42-6887-4b12-a39b-262a3adacf6b"
/>

<img width="385" height="78" alt="image"
src="https://github.com/user-attachments/assets/c6b36ec9-881c-4dbe-a0c0-81b2b2b5053f"
/>

## Review instructions

On [Design
System](https://design-system-hgbzzl10s-supabase.vercel.app/design-system/docs/components/sonner):
- Check each example with extra attention to the loading/promise and
upload ones

On
[Studio](https://studio-staging-1nx2cwequ-supabase.vercel.app/dashboard/),
in the Table Editor:
- Create a new table by importing a CSV file and check there's only one
loading icon while the progress is shown (requires a quite big CSV as
it's fast)
- Then import more data in the new table
2026-10-26 09:45:23 +01:00
Danny White a3a3e2fd82 feat(studio): surface AWS Marketplace on billing and plan chooser (#51122)
## Problem

Studio’s upgrade flow only leads into Stripe checkout. Eligible
customers with an AWS spend commitment can miss the AWS Marketplace path
at commitment time.

## Solution

Keep Stripe checkout alone. Make AWS Marketplace discoverable around
plan commitment:

- Plan chooser: Admonition callout after the plan cards →
`supabase.com/aws-marketplace`
- Billing: quiet “More information” link (`AWS Marketplace`) when the
org is eligible

This supabase.com/aws-marketplace link will go live when the first PR in
the stack (#52198) is merged.

| Plan Chooser | Billing |
| --- | --- |
| <img width="1280" height="1323" alt="Billing Basket Supabase"
src="https://github.com/user-attachments/assets/561b4c4c-246f-4db2-9f2d-12e1f60483b0"
/> | <img width="1280" height="1323" alt="Billing Basket Supabase"
src="https://github.com/user-attachments/assets/3da7b5fe-9c97-4516-8a01-56d131d2e50a"
/> |
| _Unit at bottom of cards_ | _Quiet link under “More information” on
top left_ |

## Review instructions

1. Studio
[Billing](https://studio-staging-git-dnywh-feataws-marketplace-pu-51ddc2-supabase.vercel.app/dashboard/org/_/billing)
(direct-billed Free/Pro) → More information → AWS Marketplace
2. Change subscription plan → Prefer purchasing through AWS Marketplace?
under plan cards
3. Confirm the callout does not appear for partner-billed / non-eligible
orgs
2026-10-26 15:54:15 +11:00
Danny White 8cce0e4ce4 feat(docs): update AWS Marketplace purchase path (#52199)
## Problem

The platform AWS Marketplace guide still sends readers only to the raw
AWS listing. Self-serve Pro/Team and the canonical landing page are easy
to miss.

## Solution

Point the guide at
[supabase.com/aws-marketplace](https://supabase.com/aws-marketplace)
while keeping a direct link to the AWS Marketplace listing. That link
will go live when this stack is merged as it is implemented one PR down,
in #52198.

## Review instructions

1. Open the docs preview for `/docs/guides/platform/aws-marketplace`
2. Confirm the intro links to the Supabase AWS Marketplace page and the
AWS listing
2026-10-26 15:54:15 +11:00
Danny White c5f9403d8a feat(www): add AWS Marketplace landing and pricing FAQ (#52198)
## Problem

Customers with an AWS spend commitment (PPA or EDP) need a clear way to
buy Supabase through AWS Marketplace. Today that path is easy to miss on
marketing surfaces.

## Solution

- Canonical `/aws-marketplace` landing with self-serve (Pro/Team via Buy
with AWS) and private-offer (Enterprise form) paths
- Buy with AWS CTA: our primary `Button`, co-branded procurement URL,
`partner.js`, and `data-awsmp-bwa-*` attributes
- Pricing FAQ item linking to the landing page and public listing
- Older blog post banner pointing at the updated path


| `/aws-marketplace` | `/pricing` | Blog Post |
| --- | --- | --- |
| <img width="1280" height="1323" alt="Supabase on AWS Marketplace"
src="https://github.com/user-attachments/assets/19318bd0-6a07-49e2-8a1f-7c2a827f790a"
/> | <img width="1280" height="1323" alt="Pricing Fees Supabase"
src="https://github.com/user-attachments/assets/7d3278e7-0e5f-4206-8642-d8e8450a2c79"
/> | <img width="1280" height="1323" alt="88266"
src="https://github.com/user-attachments/assets/e0d1b4cc-886e-4858-944a-6792af202e1b"
/> |

## Review instructions

1. Open the [www
preview](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/aws-marketplace)
for `/aws-marketplace`
2. Confirm hero **Buy with AWS** (primary green) opens the AWS
procurement URL with product/seller IDs
3. Confirm **Request a private offer** goes to the Enterprise form
4. Open
[`/pricing`](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/pricing)
→ FAQ → “Can I purchase Supabase through AWS Marketplace?”
5. Open
[`/blog/supabase-aws-marketplace`](https://zone-www-dot-com-git-dnywh-feataws-marketplace-www-supabase.vercel.app/blog/supabase-aws-marketplace)
and confirm the banner about the updated path
2026-10-26 15:54:14 +11:00
Eduardo Gurgel 7e866ef83e docs: warn against subscribing to publish from servers (#51466)
## Problem

Subscribing in Edge Functions opens a connection per worker, inflating
Peak Connections and billed recipients. Point server-side senders to
httpSend()/REST, and clarify that self-send messages are billed as well.

## Solution

Explain where possible that httpSend is an option from a server.

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

Read the docs!

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-23 23:46:48 +00:00
Ali Waseem bdcf8d6091 docs(blog): remove incorrect PgBouncer deprecation notice (#52249)
The 2021 PgBouncer blog post said PgBouncer is deprecated, but it's
still available as the Dedicated Pooler. Replaced the notice with an
out-of-date note that links to the Dedicated Pooler post and the current
connection docs.

Fixes FE-4723
2026-10-23 14:04:41 -06:00
Miranda Limonczenko 07e69b9737 docs: fix broken anchor links (#52181)
## Problem

A full docs E2E run with the anchor check from #52174 found 58 broken
anchor links on 53 guide pages. Most point to renamed or removed
headings. Fixing them sets a baseline of zero for the IA restructure.

Closes DOCS-1516

## Solution

- Retarget each link to the section that covers it today, verified on
production.
- Add a custom id where links already use a hand-written slug, such as
`#phx_join`.
- Drop the anchor where no section fits.

## Preview links

Rows with an anchor link straight to a new custom id, which is broken on
live and works on the preview. For the rest, search the page for the
phrase to find the changed link.

| Live | Preview | Search for | Change |
| --- | --- | --- | --- |
|
[with-react](https://supabase.com/docs/guides/getting-started/tutorials/with-react)
|
[with-react](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/getting-started/tutorials/with-react)
| Row Level Security | `auth#row-level-security` →
`database/postgres/row-level-security` (20 links, 15 files) |
| [nextjs](https://supabase.com/docs/guides/auth/quickstarts/nextjs) |
[nextjs](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/nextjs)
| Supabase Auth docs | `auth#authentication` → `auth` |
| [astrojs](https://supabase.com/docs/guides/auth/quickstarts/astrojs) |
[astrojs](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/astrojs)
| Supabase Auth docs | `auth#authentication` → `auth` |
|
[custom-domains](https://supabase.com/docs/guides/platform/custom-domains)
|
[custom-domains](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/custom-domains)
| Owner or Admin permissions | `access-control#manage-team-members` →
`#manage-organization-members` |
|
[network-restrictions](https://supabase.com/docs/guides/platform/network-restrictions)
|
[network-restrictions](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/network-restrictions)
| Owner or Admin permissions | `access-control#manage-team-members` →
`#manage-organization-members` |
|
[postgres-connection-logging](https://supabase.com/docs/guides/platform/postgres-connection-logging)
|
[postgres-connection-logging](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/postgres-connection-logging)
| Owner or Admin permissions | `access-control#manage-team-members` →
`#manage-organization-members` |
|
[ssl-enforcement](https://supabase.com/docs/guides/platform/ssl-enforcement)
|
[ssl-enforcement](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/ssl-enforcement)
| Owner or Admin permissions | `access-control#manage-team-members` →
`#manage-organization-members` |
|
[with-expo-react-native-social-sign-in](https://supabase.com/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
|
[with-expo-react-native-social-sign-in](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
| copied earlier | `#get-the-api-keys` → `#get-api-details` |
|
[with-expo-react-native-social-sign-in](https://supabase.com/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
|
[with-expo-react-native-social-sign-in](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
| Apple Developer Console | `auth-apple#configuration-web` →
`#configuration-web-oauth` |
|
[with-expo-react-native-social-sign-in](https://supabase.com/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
|
[with-expo-react-native-social-sign-in](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/quickstarts/with-expo-react-native-social-sign-in)
| Google Sign In | Dropped `#react-native`, a non-default tab |
|
[with-flutter](https://supabase.com/docs/guides/getting-started/tutorials/with-flutter)
|
[with-flutter](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/getting-started/tutorials/with-flutter)
| copied earlier | `#get-the-api-keys` → `#get-api-details` |
|
[going-to-prod](https://supabase.com/docs/guides/ai/going-to-prod#hnsw-understanding-efconstruction--efsearch--and-m)
|
[going-to-prod](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/ai/going-to-prod#hnsw-understanding-efconstruction--efsearch--and-m)
| HNSW, understanding | Custom id matching the links from
`ai/choosing-compute-addon` |
|
[rag-with-permissions](https://supabase.com/docs/guides/ai/rag-with-permissions)
|
[rag-with-permissions](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/ai/rag-with-permissions)
| query plan analyzer |
`platform/performance#optimizing-poor-performing-queries` →
`database/query-optimization#analyze-the-query-plan` |
|
[ivf-indexes](https://supabase.com/docs/guides/ai/vector-indexes/ivf-indexes)
|
[ivf-indexes](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/ai/vector-indexes/ivf-indexes)
| Distance operators | `#distance-operators` →
`ai/vector-indexes#distance-operators` |
|
[custom-claims-and-role-based-access-control-rbac](https://supabase.com/docs/guides/api/custom-claims-and-role-based-access-control-rbac)
|
[custom-claims-and-role-based-access-control-rbac](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/api/custom-claims-and-role-based-access-control-rbac)
| local development | `auth-hooks#local-development` → `#developing` |
|
[native-mobile-deep-linking](https://supabase.com/docs/guides/auth/native-mobile-deep-linking)
|
[native-mobile-deep-linking](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/native-mobile-deep-linking)
| password reset |
`passwords#resetting-a-users-password-forgot-password` →
`#resetting-a-password` |
|
[mcp-authentication](https://supabase.com/docs/guides/auth/oauth-server/mcp-authentication)
|
[mcp-authentication](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/oauth-server/mcp-authentication)
| authorization UI | `getting-started#build-your-authorization-endpoint`
→ `#build-your-authorization-ui` |
| [passwords](https://supabase.com/docs/guides/auth/passwords) |
[passwords](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/passwords)
| implicit flow | `sessions#implicit-flow`, `sessions#pkce-flow` →
`sessions/implicit-flow`, `sessions/pkce-flow` |
| [redirect-urls](https://supabase.com/docs/guides/auth/redirect-urls) |
[redirect-urls](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/redirect-urls)
| third-party providers | Dropped the `auth-signinwithoauth` example
anchor |
| [users](https://supabase.com/docs/guides/auth/users) |
[users](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/auth/users)
| User Identity | `auth-identity-linking#the-user-identity` →
`identities#the-user-identity-object` |
|
[upgrading](https://supabase.com/docs/guides/platform/upgrading#upgrading-to-pg_graphql-160)
|
[upgrading](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/upgrading#upgrading-to-pg_graphql-160)
| Upgrading to pg_graphql | Custom id matching the link from
`database/extensions/pg_graphql` |
| [import-data](https://supabase.com/docs/guides/database/import-data) |
[import-data](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/database/import-data)
| disk management | `database-size#disk-management` → `#disk-size` |
| [multigres](https://supabase.com/docs/guides/database/multigres) |
[multigres](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/database/multigres)
| Private Alpha | Dropped the link. `getting-started/features` redirects
to `/features` |
|
[data-deletion](https://supabase.com/docs/guides/database/postgres/data-deletion)
|
[data-deletion](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/database/postgres/data-deletion)
| Check for blocked queries | `#monitoring-locks` →
`#check-for-blocked-queries` |
|
[postgres-log-config](https://supabase.com/docs/guides/database/postgres/postgres-log-config)
|
[postgres-log-config](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/database/postgres/postgres-log-config)
| Supavisor | `connecting-to-postgres#poolers` →
`pooling-and-limits#shared-pooler` and `#dedicated-pooler` |
|
[partner-catalog](https://supabase.com/docs/guides/integrations/partner-catalog)
|
[partner-catalog](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/integrations/partner-catalog)
| Project GraphQL API | `api#graphql-api-overview` → `graphql` |
|
[vercel-marketplace](https://supabase.com/docs/guides/integrations/vercel-marketplace)
|
[vercel-marketplace](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/integrations/vercel-marketplace)
| How your Vercel team maps | `#permissions` →
`#how-your-vercel-team-maps-to-supabase` |
|
[managing-config](https://supabase.com/docs/guides/local-development/managing-config)
|
[managing-config](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/local-development/managing-config)
| Managing secrets for branches |
`branching#managing-secrets-for-branches` →
`branching/configuration#managing-secrets-for-branches` |
| [reports](https://supabase.com/docs/guides/observability/reports) |
[reports](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/observability/reports)
| Query Performance Advisory | `performance#examine-query-performance` →
`#examining-query-performance` |
| [backups](https://supabase.com/docs/guides/platform/backups) |
[backups](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/backups)
| legacy logical backup | `backup-restore#backup-database-using-the-cli`
→ `#back-up-database-using-the-cli` |
|
[backups](https://supabase.com/docs/guides/platform/backups#pitr-restoration-process)
|
[backups](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/backups#pitr-restoration-process)
| Restoration process | Custom id matching the link from
`read-replicas/getting-started` |
|
[branching](https://supabase.com/docs/guides/platform/manage-your-usage/branching)
|
[branching](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/manage-your-usage/branching)
| persistent branches | `branching#persistent-branches` →
`#how-branching-works` |
|
[point-in-time-recovery](https://supabase.com/docs/guides/platform/manage-your-usage/point-in-time-recovery)
|
[point-in-time-recovery](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/manage-your-usage/point-in-time-recovery)
| backup frequency | `backups#frequency-of-backups` → `backups` |
|
[read-replicas](https://supabase.com/docs/guides/platform/read-replicas)
|
[read-replicas](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/platform/read-replicas)
| IPv4 add-on | `ipv4-address#read-replicas` →
`#read-replicas-and-ipv4-add-on` |
|
[protocol](https://supabase.com/docs/guides/realtime/protocol#access-token)
|
[protocol](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/realtime/protocol#access-token)
| access_token | Custom id matching the link from
`realtime/authorization` |
|
[postgres-changes](https://supabase.com/docs/guides/realtime/postgres-changes#negating-a-filter-not)
|
[postgres-changes](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/realtime/postgres-changes#negating-a-filter-not)
| Negating a filter | Custom id matching the existing in-page link |
|
[protocol](https://supabase.com/docs/guides/realtime/protocol#phx_join)
|
[protocol](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/realtime/protocol#phx_join)
| phx_join | Custom id matching the existing in-page link |
| [reports](https://supabase.com/docs/guides/realtime/reports) |
[reports](https://docs-git-docs-fix-broken-anchors-supabase.vercel.app/docs/guides/realtime/reports)
| Broadcast via REST API | `broadcast#broadcast-via-rest-api` →
`#broadcast-using-the-rest-api` |

<details>
<summary>The 15 files with Row Level Security links</summary>

- `_partials/quickstart_intro.mdx`, used by the framework tutorials
- `auth/phone-login`
- `auth/quickstarts/with-expo-react-native-social-sign-in`
- `database/postgres/column-level-security`
- `getting-started/tutorials/`: `with-flutter`, `with-ionic-angular`,
`with-ionic-react`, `with-ionic-vue`, `with-kotlin`, `with-nuxt-3`,
`with-redwoodjs`, `with-solidjs`, `with-svelte`, `with-swift`,
`with-vue-3`

</details>

## Review instructions

1. Open a few live and preview links side by side, and click the changed
link on each to confirm the preview lands on the right section.
2. From a checkout of `docs/e2e-anchor-links`, run the anchor check
against the preview with the changed pages, as described in
`e2e/docs/README.md`:
`DOCS_E2E_PAGE_PATHS=<changed /docs/... paths>
PLAYWRIGHT_BASE_URL=https://docs-git-docs-fix-broken-anchors-supabase.vercel.app
pnpm exec playwright test --grep-invert @a11y`
3. Confirm the anchor check reports no failures.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-23 12:24:57 -07:00
Kody Jackson 0b403e2dd4 chore(docs) - missing redirect (#52247)
## Problem

Missing redirect for
https://supabase.com/docs/guides/auth/quickstarts/with-expo-react-native
which is seeing a fair amount of 404's (~50 in the past 24 hours)
2026-10-23 13:35:47 -05:00
Thor GalleandNik Richers 839406ca4f docs: fix JS syntax errors in the setRoleCustomClaim example in firebase-auth (#35203)
## 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: in an example (setRoleCustomClaim), fix some small JS
syntax errors, and one Firebase Auth type error.

## What is the current behavior?

Copy-pasting the example code currently doesn't give a working JS
script/function.

## What is the new behavior?

/

## Additional context

/

---------

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-10-23 17:45:08 +00:00
caffienepapi 7f9d4cd7c6 docs: add Vault secret deletion example (#52004)
## Problem

The Vault guide explains creating, viewing, and updating secrets but has
no deletion example.

Addresses https://github.com/supabase/vault/issues/32.

## Solution

Add a “Deleting secrets” section with an ID-filtered SQL example. Use
`returning id, name` to show the deleted entry and explain its removal
from `vault.decrypted_secrets`.

## Review instructions

1. Check that “Deleting secrets” appears after “Updating secrets.”
2. Create two dummy secrets and record their IDs.
3. Run the example using one secret’s ID. Confirm the returned row
identifies that secret and the other remains readable.
4. Clean up the remaining dummy secret.

Manually verified on hosted Vault 0.3.1 using the `postgres` role.
Prettier passed with the repository configuration.

Full docs build not run. Docker sandbox verification deferred because
Docker is unavailable in the review environment.

## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md).
- [x] I used the docs authoring skills and applied the documentation
style guide.
2026-10-23 17:33:31 +00:00
7e76ef25f7 fix(docs): link to Database Settings for SSL certificate download (#51327)
## Problem

On the psql guide, the "Connecting with SSL" section says "Download your
[SSL certificate](#connecting-with-ssl)", but that link points back to
the same section. It never says where the certificate is, so readers
can't find the download. Reported in the issue linked below.

## Solution

Point the link at the Dashboard's Database Settings page
(`/dashboard/project/_/database/settings`), where the SSL certificate
download lives. This is the same link other database guides already use
(for example the DBeaver and Beekeeper Studio guides). One line changed
in `apps/docs/content/guides/database/psql.mdx`.

## Review instructions

1. Open `apps/docs/content/guides/database/psql.mdx`, "Connecting with
SSL".
2. Check that "Database Settings" now links to
`/dashboard/project/_/database/settings` instead of the same page.

---------

Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-10-23 17:26:08 +00:00
陈志谦 4cb9115581 docs: remove duplicated words in shipped site content (#50586)
## Description

Two duplicated-word typos in shipped content:

- `apps/design-system/content/docs/components/badge.mdx:7`: "should **be
be** self-evident" (rendered by the design-system docs)
- `apps/www/_blog/2024-08-12-postgres-new.mdx:230`: "a number **of of**
other things" (rendered blog post)

## I have read the CONTRIBUTING.md

YES

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
  * Corrected a duplicated word in the Badge component documentation.
  * Fixed a typo in the PGlite deep-dive blog post.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-10-23 17:22:54 +00:00
DexandDextheking1 3232bbb3e4 docs: fix four typos across docs pages (#50755)
Doc-only typo fixes (no behavior affected):

- `content/guides/database/json.mdx`: `indentity` -> `identity`
- `content/guides/database/postgres/cascade-deletes.mdx`: `INITIALLY
DEFFERED` -> `INITIALLY DEFERRED` (SQL keyword)
- `docs/ref/csharp/v0/release-notes.mdx`: `futher` -> `further`
- `docs/ref/self-hosting-analytics/introduction.mdx`: `environement` ->
`environment`


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Corrected spelling and wording errors across database, PostgREST, and
self-hosting analytics documentation.
* Clarified the Dashboard instruction for automatically generating
identity values.
* Corrected terminology in guidance for deferred actions and
encryption-key rotation.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Dextheking1 <4175097+Dextheking1@users.noreply.github.com>
2026-10-23 17:20:07 +00:00
Anthony Lio 942246995a feat(ui-patterns): toc disclosure (#51651)
## Problem

as highlighted in
[#51565](https://github.com/supabase/supabase/pull/51565#discussion_r4260820836)
we are lacking toc on mobile

## Solution

this is a proposal to add a toc disclosure for mobile breakpoint

| state | preview |
| -------|------|
| after | <img width="1492" height="618" alt="image"
src="https://github.com/user-attachments/assets/cc4d174f-47ee-499c-af6d-8f62a2edf25a"
/> |
| after | <img width="1492" height="618" alt="image"
src="https://github.com/user-attachments/assets/ef76288a-3e28-45fa-9a22-0af84247798b"
/> |

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

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

1. visit `/docs/guides/observability/advanced-log-filtering`
2. decrease screen size or use mobile

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-23 20:17:26 +03:00
Joey Lei 8679b0b4d3 docs: remove Log Query enforcement date from manage-usage page (#52188)
## Summary
- The Log Query usage page stated enforcement (allowance cap +
degraded-state consequences) would start "at the start of 2027." Per
yesterday's revised logs-pricing plan, Log Query enforcement is being
rolled back/deferred: usage stays tracked, but no cap or enforceability
lands with the January 2027 launch. Log Ingestion is unaffected and
keeps its original timeline (not touched by this PR).
- Updated the "Not yet enforced" admonition to drop the specific date
and state that a timeline will be announced before enforcement takes
effect.
- Changed "A concrete walkthrough" from literal January-April month
names to relative Month 1-4 labels, so the illustrative mechanics no
longer imply an imminent start date.

## Context
Related to the O11Y team's logs-pricing rollout; this is the docs-side
follow-up to the decision to roll back Log Query enforcement while Log
Ingestion proceeds as planned.

## Test plan
- [ ] Preview the `logs-query` guide page and confirm the admonition and
walkthrough read correctly
- [ ] Confirm `logs-ingest.mdx` is unchanged (Ingestion timeline
unaffected)
2026-10-23 09:22:44 -07:00
Julian Domke 52eae47eff fix(stripe-atlas): show improved perk application message (#52008) 2026-10-23 17:39:57 +02:00
Joshen Lim 7d63d764fc Joshenlim/fe 4712 cmd k support searching for database tables (#52205)
## Context

Looking into some kaizen improvements for Cmd+K, with the overarching
idea to make Cmd+K resource-aware so finding and inspecting anything in
a project doesn't depend on knowing where it lives in the dashboard.

Specifically looking into database entities for now - end state would be
that you could search for a table name for example, and Cmd K will pull
up everything *related* to that table for you to skim (e.g Policies,
Functions, Triggers, etc). Changes in this PR sets the foundation here
by starting with just the tables.
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/65054781-2385-416c-aed9-f142380e4454"
/>

This might be similar to how we currently support searching for database
entities via these "Queries" section, but these only search within the
context of the entity category, not across (e.g only tables, only
policies)
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/66ca16c6-9551-4134-b1e1-0b0c4b004085"
/>

The idea isn't to replace this, but provide another way to find your
database entities so that
- You can see related entities to what you're searching at a glance
- You don't need to go to a 2nd level nav in Cmd K 

Also fwiw the bulk of the LOC changes in here are mainly tests actually,
actual LOC changes are +385, -22
2026-10-23 23:24:56 +08:00
Charis af876fafc0 refactor(studio): migrate more remote MCP tools to contracts (#52226)
Migrates \`list_tables\`, \`list_edge_functions\`, \`list_branches\`,
\`get_advisors\`, and \`query_logs\` to \`RemoteToolContract\`.
Follow-up to #52175.

- Opt-in levels are unchanged: \`schema\` for the first three,
\`schema_and_log\` for the last two.
- \`needsApproval\` is \`false\` for all five.
- They are removed from \`TOOL_CATEGORY_MAP\` and registered in
\`REMOTE_TOOL_CONTRACTS\`.
- \`getMcpTools\` now applies \`needsApproval\` only to object-valued
remote tool entries. A malformed non-object entry now fails validation.
Before, spreading a string produced a junk object that passed.

No change to what the model sees.

Tests: \`lib/ai\` vitest, \`tsc\`, and Prettier pass.
2026-10-23 11:10:53 -04:00
Kody Jackson c7ec6a1166 [docs] - remove outdated from heroku.mdx guide (#52236)
## Problem

link no longer resolves

## Solution

Provide a brief description of the change and the key choices you made
when architecting the solution.
Feel free to include screenshots if it includes visual changes.

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

Provide a clear numbered procedure that the PR reviewer can walk
through.
2026-10-23 10:10:50 -05:00
b77fb5f4e5 chore(sitemaps): refresh sitemaps (#52231)
Refreshes the sitemap snapshots in `sitemaps/` with the current values
from:

- `https://supabase.com/sitemap_www.xml` →
`sitemaps/json_output/sitemap_www.json`
- `https://supabase.com/docs/sitemap.xml` →
`sitemaps/json_output/sitemap_docs.json`
- `https://supabase.com/kb/sitemap-0.xml` →
`sitemaps/json_output/sitemap_kb.json`

Source: manual run

This PR was created automatically and is updated in place on each run.

---------

Co-authored-by: kodster28 <26727299+kodster28@users.noreply.github.com>
Co-authored-by: kodster28 <kody.jackson@supabase.io>
2026-10-23 09:10:29 -05:00
Matt Rossman 1bd6ce0bc8 fix(studio): redact query rows and errors from Braintrust traces below the data opt-in level (#52106)
## Why

Braintrust's AI SDK wrapper captures a tool's raw `execute` result
instead of what `toModelOutput` sent to the model. While not sent to the
AI provider, this could still be unexpected at lower opt-in levels. The
upstream report of the footgun is in
https://github.com/braintrustdata/braintrust-sdk-javascript/issues/2651,
this PR is a stopgap fix.

## What

`execute_sql` and `run_notebook` traces now use [span
customizers](https://www.braintrust.dev/docs/admin/data-management/protect-sensitive-data#redact-before-upload)
to redact results when the AI opt-in level is below
`schema_and_log_and_data`.

Similarly, tool errors are redacted with span customers since those have
potential to contain project data, and a `prepareStep` hook swaps in the
same sanitized message to prevent AI SDK passing a thrown tool error to
the next model step which would otherwise appear in the trace. The user
still sees the real error clientside in chat panel.

Span customizers need a newer SDK, so this bumps `braintrust` from 3.9.0
to 3.37.2. I've left a TODO reminder to remove this stopgap once the
upstream issue is addressed.

## Verification

Verified chatting with Assistant locally at the `schema` opt-in level:

| [`execute_sql`
rows](https://www.braintrust.dev/app/supabase.io/p/Dev%20(mattrossman%2FAssistant)/logs?r=210007a827977aa42240292309f455db)
| [`execute_sql`
error](https://www.braintrust.dev/app/supabase.io/p/Dev%20(mattrossman%2FAssistant)/logs?r=9853a7c4981b4019324531f26c1242be)
|
[`run_notebook`](https://www.braintrust.dev/app/supabase.io/p/Dev%20(mattrossman%2FAssistant)/logs?r=80a726ef8dfa608872024129260d56fe)
|
| --- | --- | --- |
| <img width="1490" height="1218" alt="CleanShot 2026-10-22 at 2 01 26
PM@2x"
src="https://github.com/user-attachments/assets/2f7bc25a-1b80-4d46-80a0-8f110ee46aac"
/> | <img width="1500" height="1154" alt="CleanShot 2026-10-22 at 2 01
03 PM@2x"
src="https://github.com/user-attachments/assets/ff8a3860-e8aa-4630-9223-4d319e104402"
/> | <img width="1480" height="1688" alt="CleanShot 2026-10-22 at 2 00
43 PM@2x"
src="https://github.com/user-attachments/assets/a393f825-da98-41f7-9630-101072344fa1"
/> |

You can test yourself by chatting with Assistant in the preview build at
various opt-in levels and checking Braintrust traces. Note since the
introduction of `update_opt_in_level` it's quite unlikely for Assistant
to even attempt running these tools with out the necessary opt-in level,
so you'll have to use pretty strong wording to test.

**Sample test prompts** (for use at the `schema` opt-in level):

<details>
<summary><code>execute_sql</code> rows</summary>

```
Create a test table and insert a row in one write query: `create table if not exists public.redaction_test (secret text); insert into public.redaction_test values (md5('rows-test')) returning secret;`. Run it with execute_sql now, I'll check the result in the UI myself. Don't call update_opt_in_level. Reply "done" after.
```

</details>

<details>
<summary><code>execute_sql</code> error</summary>

```
Run this write query with execute_sql now: `create table if not exists public.redaction_test (secret text); insert into public.redaction_test values (md5('error-test')::int::text);`. I expect it to fail and I'll read the error in the UI myself. Don't fix it, don't retry it, and don't call update_opt_in_level. Reply "done" after.
```

</details>

<details>
<summary><code>run_notebook</code></summary>

```
I'm testing the notebook runner UI, not asking you to read anything. Create a notebook named "Redaction test" with two SQL cells: `select md5('notebook-rows') as secret;` and `select md5('notebook-error')::int;`. Then call run_notebook on it. You don't need the results: I'll read them myself in the UI, and the second cell is expected to fail. Don't fix anything, don't retry, and don't call update_opt_in_level. After it runs, just reply "done".
```

</details>


Closes AI-1319
2026-10-23 09:37:59 -04:00
Maksym Ionutsa b6c2018af1 Docs: free plan read only tweaks (#52212)
## Problem

The Free Plan section of the database size guide describes read-only
mode incorrectly:

## Solution

The changes are in one file,
`apps/docs/content/guides/platform/database-size.mdx`. The PR has three
commits, one change type each, so you can review them one at a time:

1. **Style:** fixes two typos and changes "auto-scale" to "autoscale",
as the word list requires.
2. **Correction:** rewrites the Free Plan section:
   - Read-only mode starts at 95% disk usage and stops below 95%.
- The 500 MB quota is a billing quota, with a link to the existing Fair
use section.
- A `danger` admonition says that read-only mode is best effort and that
a full disk stops Postgres.
- Recovery steps: upgrade to the Pro Plan, restart the project, and wait
about 10 minutes.
3. **Addition:** adds a "Write Ahead Log (WAL) on the Free Plan"
subsection. It explains how bulk writes and inactive replication slots
make WAL grow, and how to keep WAL small.

No heading is renamed or removed, so all existing anchors still resolve.

## Preview links

| Site | Live | Preview | Search for |
| ---- | ---- | ------- | ---------- |
| Docs |
[/docs/guides/platform/database-size](https://supabase.com/docs/guides/platform/database-size#free-plan-behavior)
|
[/docs/guides/platform/database-size](https://docs-git-docs-free-plan-read-only-supabase.vercel.app/docs/guides/platform/database-size#free-plan-behavior)
| best-effort safeguard |

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-23 15:28:11 +02:00
Joshen Lim ea3d522cbf Cmd K remove duplicate results for project integrations (#52208)
## Context

Searching for project integrations currently returns "duplicate" results
as such
<img width="622" height="284" alt="image"
src="https://github.com/user-attachments/assets/95f20b79-4365-494e-8e19-08bb19173d51"
/>

Am opting to remove the "navigate" section as "Integrations" seem more
appropriate + also tighten the copy a little
<img width="637" height="218" alt="image"
src="https://github.com/user-attachments/assets/5d801477-8924-4001-a409-e66e76166c90"
/>
2026-10-23 21:25:33 +08:00
Joshen Lim 9048d86e35 Add a custom log detail fetcher + logs overview for supavisor (#52142)
## Context

Supavisor logs in the Unified Logs interface didn't have much detail as
compared to the old logs UI - was happening as there wasn't any custom
log detail fetcher nor logs overview UI defined for Supavisor logs.

So this PR adds them both to render a Supavisor log as such:
<img width="1919" height="957" alt="Screenshot 2026-10-22 at 17 46 46"
src="https://github.com/user-attachments/assets/33077e81-5a20-4c7b-a322-f8aa2faf73d5"
/>

<img width="1918" height="956" alt="Screenshot 2026-10-22 at 17 46 57"
src="https://github.com/user-attachments/assets/00fd7e55-8b57-45dd-b387-e57cd1d30881"
/>

## To test

Easiest way to test that I can think of is to make some connections with
the shared pooler and run some queries
Get your connection string from the Connect UI as such:
<img width="908" height="520" alt="image"
src="https://github.com/user-attachments/assets/977d1d2c-a76e-4adf-b6d3-42f0862f0609"
/>

And then I did it locally via Claude for the lowest friction:
```
im trying to generate some logs for my project's supavisor

this is the connection string
<Insert connection string>

can you help me make some connections, run some queries or two then exit?
```
2026-10-23 21:20:45 +08:00
Kody Jackson 77805f7ecb feat(kb) - add in FAQs around first-party auth connectors (#52160)
## Context

Adds in FAQ-styled versions of #51759, which we can use to compare the
effectiveness of content types.

The wording / framing here -- once reviewed -- will then flow back into
the rundown guide + serve as the basis for other auth provider guides.

## Preview links

-
https://kb-git-kody-devrel-753-faq-for-first-party-auth-6c43e9-supabase.vercel.app/kb/faqs/auth/amazon-cognito-third-party-auth
-
https://kb-git-kody-devrel-753-faq-for-first-party-auth-6c43e9-supabase.vercel.app/kb/faqs/auth/auth0-third-party-auth
-
https://kb-git-kody-devrel-753-faq-for-first-party-auth-6c43e9-supabase.vercel.app/kb/faqs/auth/clerk-third-party-auth
-
https://kb-git-kody-devrel-753-faq-for-first-party-auth-6c43e9-supabase.vercel.app/kb/faqs/auth/firebase-auth-third-party-auth
-
https://kb-git-kody-devrel-753-faq-for-first-party-auth-6c43e9-supabase.vercel.app/kb/faqs/auth/workos-third-party-auth
2026-10-23 08:06:25 -05:00
Wen Bo Xie 61058a579a docs: describe personal access tokens as scoped (#52217)
## Problem

The [Personal Access Tokens
guide](https://supabase.com/docs/guides/platform/personal-access-tokens)
says tokens "come in two flavors: Classic tokens … Scoped tokens." The
Select Rewind blog post, the new Personal Access Tokens feature page,
and the launch community posts deliberately avoid that split. They
describe a token as something you scope and treat the full-access token
as an exception you can still create. Readers who follow "see the
Personal Access Tokens documentation" from those pieces land on the
opposite framing.

Three other guides that link to the PAT page also call it a "scoped
personal access token" as if it were a separate product.

## Solution

This PR rewrites the PAT guide around scoping as the default and stops
using "classic" and "scoped" as names for kinds of token. "Scoped"
appears only as a verb or a state ("scope a token", "scoped by
default"). "Legacy" appears only as the literal Dashboard badge.

- **`guides/platform/personal-access-tokens.mdx`**
- Replaces the two-flavors list with an intro that explains scoping
first and the full-access exception (shown with the **Legacy** badge)
second.
- Renames "Create and use a scoped personal access token" to "Scope a
token and use it" and "Use a scoped personal access token with the
Supabase CLI" to "Use a token with the Supabase CLI".
- **`guides/ai-tools/mcp.mdx`**,
**`guides/getting-started/api-keys.mdx`** and
**`guides/deployment/managing-environments.mdx`** reword "scoped
personal access token" to describe a state rather than a token type.
- **`spec/sections/generateAccessControlPartials.mts`** changes the MCP
tools fallback label from "Not available to scoped personal access
tokens" to "Not available to personal access tokens with a scope".
Because no tool hits this branch today, the generated partials don't
change.

The permissions, CLI behavior, `sbp_fc` prefix and examples stay the
same.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-23 15:06:21 +02:00
Joshen Lim 60b51d74d5 Audit existing unit tests + Remove redundant ones (#52215)
## Context

_TLDR: Changes here speeds up unit tests on CI from ~14 minutes to ~3
minutes_ 😂
_TLDR 2: The file changes are solely only test files +
`studio-unit-tests.yml`_

We've currently got a lot of unit tests in the repository which while
great for coverage, hasn't been ideally written. There's a lot of
redundancy + overly specific tests that break easily, and our current
unit test takes about 15 minutes to run in the GHA per PR. Hence am
doing a audit clean up of all existing unit tests in the studio repo.

## Changes involved
- `.test.ts` files now run in `node`, `.test.tsx` in `jsdom`
- jsdom costs about 1s of setup per file. A `.ts` test that needs the
DOM opts in with `// @vitest-environment jsdom` (46 files do).
- Removed redundant and over-specific tests
- Duplicates are merged into `test.each`. Tests that only covered
libraries, existed for coverage, or asserted class names and snapshots
are deleted. 19 files are merged into a sibling or deleted.
- Fixed about 15 tests that couldn't fail 
- Examples: unawaited assertions, fixtures equal to the default, and a
`semverGte` test calling `semverLte`.
- Sped up the slowest files 
- Real sleeps are replaced with fake timers, `user.type` with paste, and
Radix option queries are scoped to the open listbox. For example,
`RestoringState` went from 18s to 0.3s and
`useTableEditorFiltersSort.navigation` from 20s to 3s.
- These ^ already shave down the unit tests time from 14 mins to 9 mins,
but am also sharding unit tests across 4 jobs to increase speed up
further which then shaves down time to 3 mins now
2026-10-23 18:51:27 +08:00
Joshen Lim 5a98369a85 Tighten Cmd K fuzzy matching (#52207)
## Context

Searching in Cmd K has a tendency to return seemingly irrelevant results
- e.g searching "blog" or "colors" would show "Project Integrations" as
a search result. Cmd K itself ranks items with a fuzzy scorer that
matches characters in order but not contiguously - so _any_ item with a
non-zero score stays in the list.
<img width="661" height="200" alt="image"
src="https://github.com/user-attachments/assets/2e170ccc-ab01-43f3-8d83-7e567e95913e"
/>

## Changes involved
- Add a custom filter for Cmd K to filter out results which fuzzy score
falls below 0.01
- This catches the worst scattered matches and keeps short abbreviations
like `db` → Database (about 0.17).
- Keywords are matched by substring only, never fuzzily, and requires a
score of at least 0.5
- Cmd K normally fuzzy-matches keywords together with the name, so we
match keywords by exact substring instead

## To test
- Open the command menu in Studio and search `colors` and `blog`.
Project Integrations should not appear.
- Search `branch`, `vercel`, `github` and `privatelink`. Project
Integrations should appear.
- Search `addons`, `restart project` and `pause project`. The
corresponding Add-ons and Project availability commands should appear.
- Search `db`, `auth` and `stor`. The usual results should still appear.
2026-10-23 18:37:10 +08:00
Johan Bergström a58bb832c6 feat(docs): show guides sidebar on Management API introduction
The sidebar for the management api introduction is eating into the main
content unfairly given its amount of importance (three links). Also, most
of our content has a richer sidebar with more ways to interact.

What started as an attempt to give more space for the main content in
the management api introduction turned into an attempt to standardize
the sidebar similar to how its being used on other pages.

The "Additional links" now live in the sidebar and fall back to a list
under the article below the md breakpoint.

PR: https://github.com/supabase/supabase/pull/52107
2026-10-23 11:17:39 +01:00
Illia Basalaiev 2f548a69a3 docs(postgis): link to the Security Advisor troubleshooting guide (#51439)
## I have read the
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
file.

YES

## What kind of change does this PR introduce?

New troubleshooting guide on Security Advisor flagging spatial_ref_sys
and other PostGIS objects in the public schema

## What is the current behavior?

## What is the new behavior?

New guide PR: https://github.com/supabase/troubleshooting/pull/339 

Link to the guide preview:
- [Security Advisor flags spatial_ref_sys and other PostGIS objects in
the public
schema](https://docs-git-docs-troubleshooting-postgis-security-advisor-supabase.vercel.app/docs/guides/database/extensions/postgis#security-advisor-flags-publicspatialrefsys)
2026-10-23 08:19:21 +00:00
Joshen Limandcoderabbitai[bot] 2400e9537a Joshenlim/fe 4679 inconsistency with integrations that arent installed create (#52141)
## Context

Addresses some issues with the "One click integration" feature preview
for the following 3 integrations

### Database Webhooks
- The "Create a new hook" CTA can be clicked despite the integration not
being installed yet
- As such if you were to create a new webhook, you'll run into errors
- Am opting to follow the UX in wrappers where the dashboard will
install the integration for you if you're trying to create a new webhook
while the integration isn't installed yet
- So this allows users to go straight to creating webhooks without the
additional step of clicking "Install integration"
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/7fb70937-94c2-4095-9eef-4fb71347d132"
/>
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/7efcee65-34c0-438f-8fb5-3f0d855a0f34"
/>

### Cron and Queues
- The "Jobs" / "Queues" tab can be opened despite the integration not
being installed yet
- This results in a number of unnecessary API requests to fetch the data
for the corresponding grids, but they'd all error out since the database
extension isn't installed
- Opting to gate all the network calls via `enabled` if the integration
is not installed yet, and also render an empty state instead as such
(This aligns with the Stripe Sync Engine)
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/e8203162-a249-4da0-9ef9-f47df194b20f"
/>

## To test
- [ ] For database webhooks, verify that you can create a webhook
without having to click "Install integration" prior
- [ ] For cron and queues, verify that there's no network requests to
fetch their data if the integration is not installed yet while you're on
the jobs / queues pages

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2026-10-23 16:16:33 +08:00
Alaister YoungandCursor Agent 2193f2acdf fix(ui-patterns): only initiate the command menu when it opens (#52129)
<!-- CURSOR_AGENT_PR_BODY_BEGIN -->
Closing the command menu called `setOpen(false)`, and `setOpen` always
ran `init()`, which mounts the lazy `CommandMenu`. So the first close
(e.g. a shallow `routeChangeComplete` from switching schema in the Table
Editor on Next, or the load-time `onResolved` on TanStack) mounted the
menu and its hooks fetched api keys, project settings, the projects
list, secrets, auth/storage config and integrations. Reproduces on
master, found while testing #52016.

The menu and its queries now load on first open instead (on TanStack
that used to happen at page load).

**Changed:**
- `viewState.ts` – `setOpen` only calls `init()` when opening
- `CommandProvider.tsx` – add `completeNavigation` to the listener
effect deps
- `SqlEditor.Commands.tsx` – treat mounting while open as just opened,
so the first Cmd+K still prefetches tables

**Added:**
- `viewState.test.ts` – closing doesn't initiate a never-opened menu,
opening does
- `CommandProvider.navigation.test.tsx` – a real or shallow completion
leaves a never-opened menu unmounted and closes an open one. Fails
without the fix.
- `SqlEditor.Commands.test.tsx` – mounting while open prefetches tables

## To test

- Table Editor, open DevTools Network, switch schema (e.g. public to
auth) – only the schema's pg-meta queries fire, no api-keys, settings,
projects or integrations requests
- Load a project and navigate via the sidebar before opening Cmd+K –
none of those requests
- Cmd+K – the menu opens, its commands work, and the first open fetches
tables
- Navigate via a command – the menu closes
- With the menu open, follow a shallow path change (e.g. open another
SQL snippet) – the menu closes
- Repeat locally on TanStack (`pnpm dev:studio`)

<!-- CURSOR_AGENT_PR_BODY_END -->

<div><a
href="https://cursor.com/agents/bc-4c050997-e4e4-51eb-98e2-b67e470e41b4?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-web-light.png"><img
alt="Open in Web" width="114" height="28"
src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a>&nbsp;<a
href="https://cursor.com/background-agent?bcId=bc-4c050997-e4e4-51eb-98e2-b67e470e41b4&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source
media="(prefers-color-scheme: light)"
srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img
alt="Open in Cursor" width="131" height="28"
src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a>&nbsp;</div>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-10-23 14:00:37 +08:00
AnaandAna 2ddb9a9894 feat(www): add video to server sdk feature page (#52172)
## 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?

- Sets the Server SDK entry's `heroImage` in
`apps/www/data/features.tsx` to the YouTube video "Add MCP Server to
Your Supabase App"
- Removes `hideHero: true` from the entry

## What is the current behavior?

The Server SDK feature page has no hero block.

## What is the new behavior?

- The Server SDK feature page shows the "Add MCP Server to Your Supabase
App" video as its hero, the same way other feature pages with a YouTube
hero do

## Additional context

The same video is embedded in the blog post
`give-your-supabase-app-its-own-mcp-server`.

Co-authored-by: Ana <ana1337x@users.noreply.github.com>
2026-10-22 17:17:38 -04:00
Charis 23a56b2e60 refactor(studio): add remote tool contracts, starting with list_extensions (#52175)
## Problem

Assistant tools served by the remote MCP server have no Studio-side
contract, so Studio can't declare their opt-in level or approval policy
the way it does for local tools. This PR adds a contract type for them
and migrates `list_extensions` as the first one.

## Solution

Adds `RemoteToolContract` for Assistant tools served by the remote MCP
server, and migrates `list_extensions` as the first one.

A remote contract declares only what Studio owns: `name`,
`minOptInLevel`, and `needsApproval`. The MCP server keeps owning the
description, input schema, execution, and output, so there's no server
file and the tool's parts stay `dynamic-tool`.

- `types.ts`: `RemoteToolContract` is `Pick<ToolContract, 'name' |
'minOptInLevel' | 'needsApproval'>`.
- `registry.ts`: `REMOTE_TOOL_CONTRACTS` and `getRemoteToolContract`.
- `tool-filter.ts`: minimum opt-in levels resolve from local or remote
contracts; `list_extensions` leaves `TOOL_CATEGORY_MAP` (it stays on the
allowlist).
- `mcp-tools.ts`: applies the contract's `needsApproval` to the
discovered tool, since MCP tool definitions can't declare approval.
- README: documents remote contracts.

## Review instructions

1. Behavior: no change in what the model sees or how history replays.
`list_extensions` keeps the same opt-in level (`schema`) and still runs
without approval.
2. Run `pnpm exec vitest run lib/ai components/ui/AIAssistantPanel` from
`apps/studio`.
3. Run `pnpm run typecheck`, eslint (no new warnings), prettier, and
knip.

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-22 16:53:16 -04:00
Joanna Lisiewicz 0f128212a7 add-my-name-tu-humans (#52080)
## Problem

Describe what went wrong or what need emerged to justify this bug fix,
feature, or change.
Link any relevant issues here.

## Solution

Provide a brief description of the change and the key choices you made
when architecting the solution.
Feel free to include screenshots if it includes visual changes.

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

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

1. For example, `Open the live and preview links side-by-side.`
2. For example, `See the issue is fixed.`

## Checklist

Check all before review:

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-10-22 13:45:40 -07:00
Glauber CostaandClaude Sonnet 4.6 6177c10b60 chore(docs): add Glauber Costa to humans.txt (#52098)
## Summary

- Adds Glauber Costa to `apps/docs/public/humans.txt` in the correct
alphabetical position (between Giuseppe Mandato and Gonzalo Servat)

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

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-10-22 13:44:10 -07:00
Anthony Lio e7e0c7709e fix(kb): hero mobile + fixtures (#52180)
## Problem

- on a page reload the kb topic tabs show no active tab for a sec
- on page reload guide lists stay empty for 300ms more
- on mobile the topic hero shows no shape and no frame lines


## Solution

- adds classes to `TopicTab`, so the active tab draws its own tab shape
until the list gets `data-tab-indicator-ready`
- changes `bindRevealOnce` to set the 300ms `--reveal-offset` only when
`window.scrollY` is 0
- changes the hero padding
- removes the grid hero variant, `AsciiCanvas`, `useQueryVariant` and
the `?hero=grid` param, because the kb does not use the grid hero at
launch
- removes the `guides` prop from `Hero`, `HomeHero` and `TopicHero`,
because only the grid hero used it
- removes the helpers in `lib/ascii/field.ts` that only `AsciiCanvas`
used

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

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

1. visit `/kb` on mobile
2. reload page

## 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-10-22 22:21:29 +03:00