Commit Graph
22209 Commits
Author SHA1 Message Date
supabase-vercel-tedd[bot] b1cc9cf436 fix(studio): show an error toast when deleting a JWT signing key fails (#53087)
## What kind of change does this PR introduce?

Bug fix

## What is the current behavior?

On the JWT Keys settings page, the delete mutation for a signing key is
called with a custom `onError` that only closes the dialog. A custom
`onError` replaces the hook's default error toast, so when the API
rejects the delete (for example a 422 for a revoked key that cannot be
deleted yet), the dialog closes and nothing tells the user why.

## What is the new behavior?

The custom `onError` still closes the dialog, and now also shows `Failed
to delete JWT signing key: <API error message>` as an error toast.

## How to verify

1. Open Project Settings > JWT Keys on a project with a revoked signing
key that the API refuses to delete.
2. Click Delete on the revoked key and confirm.
3. An error toast appears with the API's error message, and the dialog
closes.
4. Deleting a revoked key that the API accepts still shows "Successfully
deleted key" and removes it from the list.

## Checks run

- `pnpm turbo run lint --filter='[origin/master]'`
- Studio typecheck (`tsc --noEmit` in `apps/studio`; the turbo run ran
out of memory, the direct run passed)
- Prettier check on the changed file


[FE-4943](https://linear.app/supabase/issue/FE-4943/no-error-message-shown-when-deleting-revoked-jwt-key-fails)

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-06 07:56:18 -06:00
supabase-vercel-tedd[bot] f8990cbda7 fix(studio): only show free Micro upgrade banner on paid plans (#53041)
## What kind of change does this PR introduce?

Bug fix

## What is the current behavior?

The project homepage shows the "free upgrade to Micro" banner
(`BannerFreeMicroUpgrade`) for any project on Nano compute that is near
resource exhaustion, regardless of the organization's plan. The free
Micro upgrade only applies to paid plans, so organizations on the Free
plan can see a banner offering something they are not eligible for.
`ComputeBadgeWrapper` already gates the equivalent upgrade glow on
`plan.id !== 'free'`.

## What is the new behavior?

`ProjectLayout` only shows the banner when the selected organization's
plan is known and is not `free`. The plan comes from the already-loaded
selected organization, so this adds no new request. While the plan is
unknown, the banner stays hidden.

## How to verify

- In a project of a Free plan organization on Nano compute with a
resource exhaustion warning, the project homepage does not show the free
Micro upgrade banner.
- In a project of a paid (Pro or higher) organization on Nano compute
with a resource exhaustion warning, the project homepage still shows the
banner.
- Projects not on Nano compute, or without exhaustion warnings, show no
banner, same as before.

## Checks run

- `pnpm turbo run typecheck --filter='...[origin/master]'`: pass
- `pnpm turbo run lint --filter='[origin/master]'`: pass
- Prettier check on the changed file: pass
- `vitest related` for the changed file could not run in the sandbox (it
stopped on a parse error in an unrelated static `.md` file before
reaching any test). No existing test covers this banner condition.


[FE-4366](https://linear.app/supabase/issue/FE-4366/free-micro-upgrade-banner-missing-plan-tier-gate-in-projectlayout)

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-06 07:22:25 -06:00
Pedro Rodrigues e8a82b4db2 docs(mcp): document notebook tools for MCP v0.16.0 (#53045)
## Problem

[MCP
0.16.0](https://github.com/supabase/mcp/releases/tag/mcp-server-supabase-v0.16.0)
enables the notebook tools (`create_notebook`, `run_notebook`,
`delete_notebook`) alongside `list_notebooks` and `get_notebook`, in the
`notebooks` feature group, and
[0.16.1](https://github.com/supabase/mcp/releases/tag/mcp-server-supabase-v0.16.1)
enables that group by default. The MCP docs page doesn't mention them or
their confirmations, and the configuration panel has no way to select
the group or skip its confirmations.

## Solution

Document the Notebooks group on the MCP page in the same format as the
other groups: hosted only, not available in local or self-hosted Studio.
Add a Notebook confirmations section covering `run_notebook` and
`delete_notebook` elicitation and read-only behavior. Add `run_notebook`
and `delete_notebook` to `skip_elicitations`, and add a Notebooks
recommendation covering the per-run limits (50 query cells, about 1 MB
of rows).

In the configuration panel and Studio Connect sheet, add Notebooks as a
default group for hosted connections only. A `defaultDisabled` flag on
each group replaces the hardcoded Storage exclusion, and the notebook
skip options appear only while Notebooks is enabled.

No docs change needed for the other 0.16.0 and 0.16.1 fixes (feedback
`project_id`, project ref hint, `partition_of`, check expressions,
EXPLAIN confirmation, edge function paths, notebook URLs in tool
outputs).

## Before merge

-
[supabase/platform#38799](https://github.com/supabase/platform/pull/38799)
must ship. Until then, hosted only serves `list_notebooks` and
`get_notebook`.
- The scoped token permissions table is generated from the platform
`mcp-tools-permissions` endpoint, which doesn't list `create_notebook`,
`run_notebook`, or `delete_notebook` yet.

## Verification

<img width="838" height="367" alt="image"
src="https://github.com/user-attachments/assets/29d1bd4e-5046-4986-9dbb-ed077bdf3a56"
/>

MCP Docs preview
[page](https://docs-git-rodriguespn-ai-1409-mcp-docs-v0-16-0-supabase.vercel.app/docs/guides/ai-tools/mcp)

Closes AI-1409
2026-11-06 12:49:39 +00:00
2fd66161ea docs(www): remove "no data-transfer tax" claim from compute FAQ (#53084)
<!-- claude-slack-attribution -->
_Requested by **Kalleby Santos, Bruno Kilian** · [Slack
thread](https://supabase.slack.com/archives/C0BB4MAJW58/p1791486981400579?thread_ts=1791486981.400579&cid=C0BB4MAJW58)_

## Problem

The "Can I attach a persistent disk?" FAQ answer on /compute says
Postgres and Supabase Storage are reachable with "no data-transfer tax".
That is not accurate: Compute reaches Storage through the Cloudflare/API
gateway, so egress still applies.

**Before:** "...use your Postgres database for structured data and
Supabase Storage for files — both reachable with near-zero intra-region
latency and no data-transfer tax. Mountable persistent disks are on the
roadmap."

**After:** "...use your Postgres database for structured data and
Supabase Storage for files, both reachable with near-zero intra-region
latency. Mountable persistent disks are on the roadmap."

## Solution

Remove the "no data-transfer tax" claim from
`apps/www/app/(products)/compute/_components/FAQSection.tsx` and swap
the em dash for a comma in the clause being edited. No other copy
changes.

Kalleby Santos (@kallebysantos) is credited as co-author via a
`Co-authored-by` trailer on the commit.

## Review instructions

1. Open `/compute` and expand "Can I attach a persistent disk?".
2. Confirm the answer no longer mentions data-transfer costs.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01M8V2QPNwybc8GJg94K3TX9)_

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Kalleby Santos <105971119+kallebysantos@users.noreply.github.com>
2026-11-06 13:46:09 +01:00
Joshen Lim 06d43f6881 Joshenlim/fe 4721 cmd k support searching for triggers (#52755)
## Context

Building off from
[here](https://github.com/supabase/supabase/pull/52751) to make Cmd+K
resource-aware so finding and inspecting anything in a project doesn't
depend on knowing where it lives in the dashboard.

Specifically looking into database entities for now - end state would be
that you could search for a table name for example, and Cmd K will pull
up everything related to that table for you to skim (e.g Policies,
Functions, Triggers, etc). Changes in this PR sets up searching for
**database triggers**, and will probably be the last database entity
that we'll add into context aware cmd K for now given that we'll have
tables, policies, functions and triggers which are the primary building
blocks for a project.

<img width="500" alt="image"
src="https://github.com/user-attachments/assets/242ec517-88cd-4f3d-96ce-741edaa8560d"
/>

Triggers will also match if it's function matches the search input, and
its description will tweak slightly as well
<img width="500" alt="image"
src="https://github.com/user-attachments/assets/65f515df-b875-4b92-95b7-00389d8a070b"
/>

## Performance

Had Claude do some benchmarking against `getSearchEntitiesSql` (`EXPLAIN
ANALYZE`, median of 5 runs, local Postgres, warm cache) on one synthetic
catalog:
- 12,000 tables (36,651 `pg_class`), 6,001 policies, 27,261 `pg_proc`
(12,000 user + 12,000 extension-owned functions), 56,304 `pg_trigger`
- 3,500 user triggers, 500 of which run one shared function; the rest
are internal FK triggers
  - 297,921 `pg_depend`.

Compared against master (tables + policies) and the functions PR (before
triggers).

| Search | What it exercises | master | functions PR | this PR | Δ this
PR |
|---|---|---|---|---|---|
| `t_1` | broad table match | 12ms | 26ms | 30ms | +4ms |
| `p_1` | broad policy-name match | 15ms | 27ms | 35ms | +8ms |
| `fn_1` | broad function match | 10ms | 26ms | 33ms | +7ms |
| `trg_1` | broad trigger-name match | 9ms | 23ms | 32ms | +9ms |
| `trg_` | every user trigger matches by name | 10ms | 25ms | 40ms |
+15ms |
| `audit_row_fn` | function match; its 500 triggers match only through
the function | 9ms | 24ms | 31ms | +7ms |
| `ri_constraint` | only internal FK triggers match | 9ms | 24ms | 30ms
| +6ms |
| `stress.fn_1` | schema-qualified | 12ms | 33ms | 40ms | +7ms |
| `zzz` | no match | 9ms | 22ms | 27ms | +5ms |

- Triggers add +4 to +15ms over the functions PR. The worst case is a
search matching every user trigger, at 40ms in total.
- Matching triggers through their function shares the single
`pg_trigger` pass the name search already does, with no extra scan. A
separate pass measured about 30ms more on every search.

## To test
- [ ] Search a table name: Tables first, then policies, and functions,
and triggers
- [ ] Search a trigger name: it appears under triggers and opens the
editor panel in database/triggers
- [ ] Search a function name: trigger results should appear if the
trigger uses that function
- [ ] Trigger outside public: schema filter switches and the trigger
opens
2026-11-06 17:04:39 +08:00
Alaister Young e91fa7a3d6 [FE-4755] fix(studio): skip per-asset resource spans on TanStack build (#53076) 2026-11-06 18:02:28 +09:00
Anthony Lio 5191874237 fix(www): docs prefetch (#52700)
## Problem

- link prefetch on `supabase.com/docs` returns 404
- a prefetch of `/docs/guides/auth/architecture` returns 404 through www
and 200 on the docs deployment
- the www rewrite forwards the request as
`<page>.segments/_tree.segment.rsc` and keeps the prefetch header, so
docs adds the suffix again
- likely happened after next 16 migrations

## Solution

- adds www rewrites that forward a docs prefetch as the page path, so
docs adds the `.segments` suffix one time
- fixes client navigation to the docs home, because docs serves its root
as `index.rsc` and www asked for `docs.rsc`
- adds a test that fails when a docs prefetch path reaches the generic
`/docs/:path*` rule first

| build | click before the prefetch ends | click after the prefetch ends
|
| --- | --- | --- |
| before (`supabase.com`) | 106 to 146 ms | 102 to 137 ms, the prefetch
returns 404 so the click sends a request |
| after (preview with this fix) | 124 to 169 ms | **14 to 46 ms**, the
click sends no request |


| check | before | after |
| --- | --- | --- |
| segment prefetch of a guide page | 404 | 200 |
| segment prefetch of the docs home | 404 | 200 |
| client navigation to the docs home (`RSC: 1`) | 404 | 200 |
| probe checks that pass | 4 of 8 | 8 of 8 |

each run used a fresh browser profile and started on
`/docs/guides/auth/passwords`. each click went to the same 4 sidebar
links, which start out of view. the time stops when the new `h1` shows.
the after numbers come from a test preview of www with this fix, which
forwards to the same docs deployment

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

the `/docs` rewrites run only in production builds, so steps 4 to 7 use
`supabase.com`

1. run `pnpm --filter www exec vitest run next.config.test.ts` and make
sure that all tests pass
2. run `git checkout origin/master -- apps/www/lib/rewrites.js`, run the
test again and make sure that the new test fails
3. run `git checkout HEAD -- apps/www/lib/rewrites.js` to restore the
fix
4. before the deploy, run the command below and make sure that it prints
`404`
   ```sh
curl -s -o /dev/null -w '%{http_code}\n' -H 'RSC: 1' -H
'Next-Router-Prefetch: 1' -H 'Next-Router-Segment-Prefetch: /_tree'
https://supabase.com/docs/guides/auth/architecture
   ```
5. after the deploy, run the same command and make sure that it prints
`200`
6. after the deploy, run `curl -s -o /dev/null -w '%{http_code}\n' -H
'RSC: 1' https://supabase.com/docs` and make sure that it prints `200`
7. open [/docs/guides/auth](https://supabase.com/docs/guides/auth),
click a sidebar link and make sure that the page opens without a full
reload

## 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-06 10:34:55 +02:00
Joshen Lim 7a9f019825 Fix api keys query cache entry (#53075)
## Context

Creating a secret API key on Project Settings -> API Keys showed "Failed
to load secret API keys" with `Missing queryFn:
'["projects","<ref>","api-keys"]'`.
<img width="1148" height="212" alt="image"
src="https://github.com/user-attachments/assets/72d5daf7-b894-401c-9e8d-8d180c3d6ecd"
/>

This was happening as two components on the page (the API docs panel and
the connection popover) fetched the same API keys data but turned
fetching off by removing the fetch function. After you created a key,
the refetch used their missing fetch function instead of the real one
and failed. So the fix here is just to pass the real grant and gate
fetching with `enabled` instead

## To test

- Open `/project/[ref]/settings/api-keys`.
- Click **New secret key** and create a key.
- The key list refreshes with the new key and there is no "Failed to
load secret API keys" error.
2026-11-06 16:00:23 +08:00
Alaister YoungandAlaister Young b04118b0e6 [FE-4885] feat(www,docs): add InstantDB migration page to sitemap, docs (#53074)
Makes the InstantDB migration page discoverable. It's served through a
rewrite, so it has no page file for the sitemap to find, and it serves
as its own docs, so there's no separate guide to link to.

**Added:**
- `https://supabase.com/migrate/instantdb` in the www sitemap, alongside
the other proxied apps
- InstantDB card in the "Migrate to Supabase" listing on
`/docs/guides/resources`

The card has no icon because the repo has no InstantDB logo. Adding one
later would also put it in the docs home migration grid.

## Tested locally

Sitemap and docs listing tests pass, and ESLint and Prettier are clean
on the touched files. The generator outputs the URL once, as valid XML.
`tsc` in `apps/docs` only failed on the missing `__generated__/graphql`
module since codegen wasn't run.

## To test

- `/docs/guides/resources` on the docs preview: card shows in "Migrate
to Supabase" and links to the migration page
- `/sitemap_www.xml` on the www preview includes `/migrate/instantdb`

---------

Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-06 15:48:21 +09:00
CharisandJoshen Lim 1fcd420530 feat(studio): suggest enabling Explorer preview on notebook pages (#53060)
## Problem

Direct notebook links open even when the Explorer feature preview is
off, while the navigation item stays hidden. Users who land on a
notebook this way get no hint that the Explorer preview exists or how to
turn it on.

Resolves FE-4939:
https://linear.app/supabase/issue/FE-4939/suggest-enabling-explorer-preview-when-opening-notebook-links

## Solution

- Add `ExplorerPreviewSuggestion`, an admonition titled "Explorer is a
feature preview" with the text "Enable the Explorer preview to find
notebooks from the navigation bar." and an "Enable Explorer" button. The
button opens the feature preview modal on the Explorer entry.
- Render it below the notebook toolbar in `ExplorerNotebookTab`, only in
the loaded notebook state.
- Show it only on platform, when the `explorer` flag is on and the user
has not opted in to the preview. It is not dismissible and disappears
once the preview is enabled.

## Testing

- Existing Explorer component tests pass.
- Lint ratchet passes.
- Manual check: with the `explorer` flag on and the preview off, open a
notebook URL directly, confirm the notice appears, and confirm the
button opens the feature preview modal.

## Review instructions

1. Enable the `explorer` flag and make sure the Explorer feature preview
is off.
2. Open a notebook URL directly.
3. Confirm the "Explorer is a feature preview" notice appears below the
notebook toolbar.
4. Click "Enable Explorer" and confirm the feature preview modal opens
on the Explorer entry.
5. Enable the preview and confirm the notice disappears.

## 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-06 12:34:28 +08:00
supabase-vercel-tedd[bot]andJoshen Lim df043b168c fix(studio): show unavailable notice on self-hosted Realtime settings page (#53042)
## Problem

In self-hosted / CLI Studio, `/project/[ref]/realtime/settings` shows a
skeleton loader forever. `useRealtimeConfigurationQuery` is disabled
when `IS_PLATFORM` is false, so its `isPending` never clears and
`RealtimeSettings` never leaves the loading state.

## Solution

`RealtimeSettings` now returns an `Admonition` ("Realtime settings are
not available for self-hosted projects") before the loading check when
`IS_PLATFORM` is false. This follows the existing Storage settings
pattern. Platform behavior does not change.

Added a component test for the self-hosted case. The `IS_PLATFORM` mock
in `RealtimeSettings.test.tsx` is now a toggleable getter.

## How to verify

- Self-hosted Studio (`IS_PLATFORM=false`): open
`/project/default/realtime/settings`. The page shows the "Realtime
settings are not available for self-hosted projects" notice and no
skeleton loader.
- Platform preview: open `/project/<ref>/realtime/settings`. The
Realtime settings form loads and saves as before.

Checks run: `pnpm turbo run typecheck --filter='...[origin/master]'`,
`pnpm turbo run lint --filter='[origin/master]'`, `vitest --run
components/interfaces/Realtime/RealtimeSettings.test.tsx` (11 passed),
prettier check.


[FE-4872](https://linear.app/supabase/issue/FE-4872/fix-infinite-skeleton-loader-on-realtime-settings-page-in-self-hosted)

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2026-11-06 12:00:45 +08:00
InianandNik Richers b703085582 Update access-control.mdx (#34900)
Just being extra cautious to make it clear that developer role has full
content access.

Previous wording could be interpreted as read access to content.

Co-authored-by: Nik Richers <nrichers@gmail.com>
2026-11-05 20:10:26 -07:00
jonathan-eng-p aa9d04e4f7 docs: add Jonathan Eng to humans.txt (#53031)
## Problem

Onboarding task: add "Jonathan Eng" to `humans.txt`

## Solution

I added "Jonathan Eng" to the team list in
`apps/docs/public/humans.txt`, in alphabetical order. No other files
changed.

## Review instructions

1. Open the diff for `apps/docs/public/humans.txt`.
2. Check that "Jonathan Eng" appears once, in alphabetical order, with
no other changes.

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-05 21:30:40 +00:00
Dhruv 9eecc75e01 Remove Leonardo Santiago from humans.txt (#53033)
Offboarding
2026-11-05 14:22:05 -07:00
Patrick Knight 7a818c620f Add Patrick Knight to humans.txt (#53038)
## Problem

I'm a new hire and missing from humans.txt.

## Solution

Updating humans.txt to add myself.

<!--
## 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-11-05 14:21:48 -07:00
romangruhn 86db293ec4 Add Roman Gruhn to humans.txt (#53052)
## Problem

No problem. Just adding myself to the company's list of employees :)
2026-11-05 21:07:25 +00:00
Charis 757040ffc7 feat(studio): add reveal refinement for single api-key reads (#52965)
Part 5 of 6 in a stack for
[FE-4731](https://linear.app/supabase/issue/FE-4731/grants-rollout-api-keys-consumers-that-only-need-publishable-keys).
Based on #52964.

## Stack
1. #52961 Docs and project API docs consumers
2. #52962 Edge functions and vector bucket examples
3. #52963 Integrations landing data
4. #52964 Connect sheet and project connection popover; remove the
transitional api-keys hooks
5. 👉 #52965 `reveal` refinement for single api-key reads; API key pill
6. #52966 API key create and delete

## Changes
- Adds a `reveal` refinement for `GET /v1/projects/{ref}/api-keys/{id}`,
mirroring the list endpoint: the `reveal` variant adds
`api_gateway_keys_secret_read`, and the wrapper owns the `reveal` query
param.
- `getAPIKeysById` takes a plain or reveal grant instead of
`unguarded.migrating` and a manual `reveal` flag.
- `useRevealedSecret` mints the reveal grant, returns it, and doesn't
request unless it's granted.
- `ApiKeyPill` uses the reveal grant instead of its V2 check. Reveal and
copy are disabled while the check loads, when denied, or when it fails.
Publishable keys aren't gated.
- `useConnectServerEnv`: the secret can only be revealed once the reveal
grant is granted.

**Guard drift:** `ApiKeyPill` checked only
`api_gateway_keys_secret_read`, but the endpoint needs
`api_gateway_keys_read` and `api_gateway_keys_secret_read`. Users with
only the secret permission saw an enabled button and got a 403; they now
see it as restricted.

## Testing
- `data/guarded-fetch.test.ts`: type tests for the by-id endpoint (plain
and reveal grants match the raw client, `reveal` rejected as a caller
param, a list-endpoint reveal grant rejected), and a runtime test that
`reveal` is set from the grant. The "variant the endpoint doesn't have"
negative now uses the branches endpoint.
- `ApiKeyPill.platform.test.tsx` (renamed from `ApiKeyPill.test.tsx`,
now on real grants through MSW): reveal and copy when granted, denied
(no request), permission-check error, publishable keys not gated.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-05 15:21:32 -05:00
Charis e05ef0e50c fix(studio): use API collation warning for read replica eligibility (#53049)
## What

Read replica eligibility now uses the `collation_reindex_required`
warning returned by the upgrade eligibility endpoint
(`/v1/projects/{ref}/upgrade/eligibility`) to decide whether to block
replica creation, instead of reimplementing the collation lineage
boundary check in Studio.

- Removes `CollationLineage.utils.ts` and its tests.
- `useCheckEligibilityDeployReplica` sets `isCollationLineageCrossed`
when the response includes a `collation_reindex_required` warning.

## API types

Regenerated `packages/api-types` from the production specs so the new
warning type is available. The regen also picks up other recent API
changes, which Studio now handles so typecheck passes:

- `PROMOTING` project status: added labels in `BranchStatusBadge` and
the dev toolbar's `ProjectStatusTab`.
- `table_using_reg_type` upgrade validation error (tables with columns
using `reg*` types that `pg_upgrade` can't carry over): added a title,
description, and Manage link to the table in `UpgradeWarnings`.

## Testing

- Studio typecheck passes (the one remaining error, in `ui-patterns`
McpUrlBuilder, is also on `master`).
- Read replica and infrastructure settings unit tests pass.
2026-11-05 15:20:51 -05:00
Sean OliverandKody Jackson 5ac0a4843b feat(kb): send search and result click telemetry events (#52981)
## Problem

KB search sends no events. Part of
[DOCS-1514](https://linear.app/supabase/issue/DOCS-1514) (Add telemetry
to search).

## Solution

Two events through `/telemetry/event`, sent only on platform and after
consent:

- `kb_search_submitted`: `queryLength`, `resultCount`, `hasResults`
- `kb_search_result_clicked`: `resultPath`, `resultPosition` (1-based),
`resultCount`, sent with keepalive

Query text isn't sent: it can contain personal data.

New `buildTelemetryEventRequest` builds the body for
`sendTelemetryEvent`. KB posts it with plain `fetch` and no auth header,
so no GoTrue client starts on the shared dashboard session.

## Additional context

Tested on `astro dev` with Playwright:

- `rls`: `{queryLength: 3, resultCount: 10, hasResults: true}`
- `zzqxjv`: `{queryLength: 6, resultCount: 0, hasResults: false}`
- 2nd result clicked: `{resultPosition: 2, resultCount: 10}`, no
`Authorization` header
- No consent: nothing sent

Also ran `common` and Studio typecheck, KB tests, and `astro build` (no
GoTrue in the bundle).

## Review instructions

1. `pnpm --filter kb dev` on platform, accept cookies.
2. Search `rls`, click a result, and check both `/telemetry/event`
requests.
3. Decline cookies and repeat: nothing sends.

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

---------

Co-authored-by: Kody Jackson <kody.jackson@supabase.io>
2026-11-05 18:50:00 +00:00
Charis 1d0398db4b feat(studio): gate connect sheet and project connection popover on api-keys grants (#52964)
Part 4 of 6 in a stack for
[FE-4731](https://linear.app/supabase/issue/FE-4731/grants-rollout-api-keys-consumers-that-only-need-publishable-keys).
Based on #52963.

## Stack
1. #52961 Docs and project API docs consumers
2. #52962 Edge functions and vector bucket examples
3. #52963 Integrations landing data
4. 👉 #52964 Connect sheet and project connection popover; remove the
transitional api-keys hooks
5. #52965 `reveal` refinement for single api-key reads; API key pill
6. #52966 API key create and delete

## Changes
Moves the last publishable-key consumers onto the plain `GET
/v1/projects/{ref}/api-keys` grant:
- `ConnectSheet`: shows `ApiKeysAccessNote` under the mode selector
(except the warehouse and server modes; the server panel has its own
note)
- `useConnectServerEnv`: `canReadAPIKeys` and its loading state come
from the grant, and the hook returns the grant. The on-demand secret
reveal is unchanged here (part 5 moves it).
- Server env content: shows the note next to the disabled copy buttons
- `ProjectConnectionPopover`: only fetches while open. The nested
ternary for the key display is replaced with a flat helper covering
loading, denied, error, and the key.

With no callers left, the deprecated transitional `useAPIKeys` /
`useAPIKeysQuery` hooks are removed from
`data/api-keys/api-keys-query.ts`.

The old guards matched the annotation.

## Testing
- `ProjectConnectionPopover.platform.test.tsx` and
`content/server/env/content.platform.test.tsx`: granted, denied (no
request), and permission-check error.
- `useConnectServerEnv.test.ts` updated for the grant.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-05 12:40:49 -05:00
Pedro Rodrigues da6360147c chore(studio): bump @supabase/mcp-server-supabase to 0.16.0 (#53044)
## Summary
- Bump `@supabase/mcp-server-supabase` from `^0.15.0` to `^0.16.0`.
- Share the self-hosted MCP platform between both `/api/mcp` routes,
typed without `notebooks`, so the notebook tools enabled in 0.16.0 stay
out of self-hosted. Self-hosted Studio doesn't support notebooks yet.

Closes
[AI-1407](https://linear.app/supabase/issue/AI-1407/2b-update-self-hosted-remote-mcp-server-self-hosted-studio-assistant)
2026-11-05 17:06:51 +00:00
c5cdb59c47 feat(studio): prerender signed-out auth pages in the TanStack build (#52690)
## Problem

The TanStack Start build serves every document from the prerendered SPA
shell (`_shell.html`). For signed-out pages such as `/sign-in` and
`/sign-up`, the first HTML response holds only the loading fallback and
the generic `<title>Supabase</title>`. The page content and route
`head()` tags only appear after the JS bundle hydrates.

## Solution

On platform builds, prerender `/sign-in`, `/sign-up`, `/sign-in-sso` and
`/forgot-password` to static HTML next to the shell.

- `lib/prerendered-routes.ts`: the list of prerendered paths, shared by
the build config, the Vercel routes and the root route.
- `vite.config.ts`: passes the paths to `tanstackStart({ pages })` with
link crawling off, so only these pages are prerendered. Self-hosted
builds prerender nothing (self-hosted sign-in redirects straight to the
default project).
- `scripts/vercel-spa-routes.ts`: serves `<path>/index.html` for each
prerendered path (with and without the base path, optional trailing
slash, case-sensitive), ahead of the shell catch-all.
- `routes/__root.tsx`: renders `<Outlet />` once hydrated, or before
hydration when the path is prerendered; otherwise `<ShellFallback />`.
The Outlet stays at the same position in the tree, so navigating away
from a prerendered page doesn't remount it.

One prerendered file serves every visitor and every query string, so the
first render of these pages can't depend on per-visitor state:

- Search-param reads that affect render return empty until
`useHydrated()`, then update. `useInboundBranding` checks this directly,
and the "Sign up", "Sign in" and "Continue with SSO" link hrefs read
from `useHydratedQuery`.
- The "Sign in" links on `/sign-up` and `/forgot-password` now carry the
query params. The `/sign-up` link drops `returnTo=/new`, the default the
"Sign up" link sets, so existing users don't land in the new-org flow.
- Form controls sit in a `DisabledUntilHydrated` fieldset, so input
typed before hydration isn't lost and Enter can't natively POST the
form.
- The sign-in/forgot-password logo switches light/dark via CSS (`dark:`
classes) instead of `resolvedTheme` after mount, so dark-theme users
don't see the light logo first.
- `SignInLayout`'s session redirect effect skips the redirect after
unmount.

Also adds page titles for `/sign-in-sso` and `/forgot-password`.

## Review instructions

1. View source (not the inspector) of `/dashboard/sign-in`,
`/dashboard/sign-up`, `/dashboard/sign-in-sso` and
`/dashboard/forgot-password` on the preview: the HTML holds the form and
the page title, not the loading fallback. `/dashboard/organizations`
still returns the shell.
2. Load `/dashboard/sign-in?returnTo=%2Fproject%2F<ref>`: no hydration
errors in the console, and the "Sign up" link (hover / open in new tab)
carries the same `returnTo`. The "Sign in" links on `/dashboard/sign-up`
and `/dashboard/forgot-password` carry the query params too.
3. Sign in from that URL: you land on the project, with no second
redirect to `/organizations`.
4. Load `/dashboard/sign-in?destination=cli`: the CLI-branded heading
renders without a hydration error.
5. Links between the four pages navigate client-side, and dark mode
shows the dark logo straight away.

## Checks

- Platform `vite build` (`NEXT_PUBLIC_IS_PLATFORM=true
NEXT_PUBLIC_BASE_PATH=/dashboard`): prerenders the four pages plus the
shell; each file has its title, inputs and a disabled fieldset.
Self-hosted build prerenders only the shell.
- Served the build locally with Vercel-equivalent routing and checked in
a browser: no hydration errors for plain, `?returnTo=…`,
`?destination=cli` (with and without `method`),
`/sign-up?destination=cli` and `/Sign-In`; hrefs carry `returnTo` after
hydration; navigating from `/sign-in` to other routes doesn't remount
the sign-in form or flash the shell loader; with JS blocked, inputs and
submit are disabled.
- Unit tests for `isPrerenderedRoute` and the prerendered Vercel routes;
`tsc --noEmit`, ESLint on changed files, Prettier, knip and the lint
ratchet pass.
- Not covered locally: the signed-in `returnTo` redirect end to end
(review step 3).

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

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
Co-authored-by: Kody Jackson <kody.jackson@supabase.io>
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
2026-11-05 10:31:28 -06:00
Anthony Lio 1fb63b7d85 fix(ui): lift tooltip from the page and use a ring edge (#52631)
## Problem

- tooltips blend into the page in dark mode, for example the timestamp
tooltip in the logs table
- the tooltip background is `bg-alternative`, which is the same color as
the page background

## Solution

- changes the tooltip background in dark mode, so the tooltip is one
elevation step above the page
- replaces the border and the drop shadow with a 1px ring from the
`foreground` token, so the edge is thinner and uses theme tokens
- changes the row highlight in the timestamp tooltip
- fixes the "Copied!" state in the timestamp tooltip, so the copied
value does not show behind the text and the row keeps its width

| before | after |
| -------|------|
| <img width="357" height="162" alt="image"
src="https://github.com/user-attachments/assets/07435a9e-74eb-4007-aa5e-d350a979f8bb"
/> | <img width="357" height="162" alt="image"
src="https://github.com/user-attachments/assets/df274062-318e-4ed0-841a-2bf57c98ec4c"
/> |
| <img width="357" height="162" alt="image"
src="https://github.com/user-attachments/assets/1cfc18fa-196e-41e2-9aae-2458cd98418b"
/> | <img width="357" height="162" alt="image"
src="https://github.com/user-attachments/assets/c116329c-233c-4216-9a71-4a1950ec710a"
/> |

<!--
## 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
[/design-system/docs/components/tooltip](https://design-system-git-antlio-tooltip-contrast-supabase.vercel.app/design-system/docs/components/tooltip)
and set the theme to dark
2. hover the "Hover" button, and make sure that the tooltip is lighter
than the page and has a thin ring edge
3. set the theme to light, and make sure that the tooltip has a thin
ring edge and no drop shadow
4. open
[/dashboard/project/_/logs/edge-logs](https://studio-git-antlio-tooltip-contrast-supabase.vercel.app/dashboard/project/_/logs/edge-logs)
in dark mode and select a project
5. hover a date in the logs table, and make sure that the tooltip is
lighter than the table
6. hover each row in the tooltip, and make sure that the row highlight
shows
7. click a row, and make sure that "Copied!" shows with no value text
behind it and the tooltip width does not change

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-05 17:59:15 +02:00
Joshen Lim 6d08d66b7d Add eslint rule for google translate dynamic spans + address all issues (#52949)
## Context

We've been seeing many `NotFoundError: Failed to execute 'removeChild'
on 'Node'` and `NotFoundError: Failed to execute 'insertBefore' on
'Node'` events on Sentry which are historically known to be caused by
Google Translate in the browser.

There's technically no _right way_ to address this unfortunately, but
one of the solutions which should address most of these issues is to
wrap any dynamic text within a span - we've considered that quite a
while back tbh but never took the time to do this until today with the
help of Claude. Although just a heads up that it might not necessarily
completely eradicate those issues.

Also added an eslint rule which should prevent future occurences of this
<img width="1264" height="192" alt="image"
src="https://github.com/user-attachments/assets/b2c32ea0-45a2-4ccd-82fe-1a859905fc29"
/>
2026-11-05 23:28:46 +08:00
Jordi Enric 40bb24353d fix(studio): keep service health windows within DST limits FE-4928 (#53027)
## Problem

The home dashboard's 7-day charts can fail after daylight saving time
ends. Subtracting seven local calendar days produces a 169-hour request,
exceeding the service-health endpoint's 168-hour limit. The same
calculation also changes the 24-hour window across DST transitions.

## Fix

Calculate the shared service-health windows using 24 and 168 elapsed
hours. Add regression coverage for both daylight saving transitions in
America/New_York.

Fixes
[FE-4928](https://linear.app/supabase/issue/FE-4928/re-dashboard-is-not-showing-correct-data).

## How to test

- Run `pnpm --dir apps/studio exec vitest run --retry=0
components/interfaces/Observability/useServiceHealthMetrics.utils.test.ts`.
- In a browser using America/New_York around the November 1 DST
transition, open a project's home dashboard and select the 7-day view.
- Expected result: the service-health request spans exactly 168 hours
and the charts load. The 24-hour view spans exactly 24 hours across
either DST transition.

Local verification: Studio typecheck, focused ESLint, Prettier, and 41
affected tests pass. All four DST regressions fail against the original
helper and pass with the fix; shuffled tests also pass with seed 4928
and TZ=UTC.
2026-11-05 15:51:39 +01:00
Andrey A. 189adda99d chore(self-hosted): update 2026-11-05 - 0.8.4 (#53017) 2026-11-05 15:22:40 +01:00
supabase-vercel-tedd[bot] 04f3c6c41c fix(studio): return to the buckets list after deleting a bucket from its page (#53028)
## Problem

Deleting a bucket from its own page
(`/storage/files/buckets/[bucketId]`) could leave Studio on the deleted
bucket's route. The page kept loading and then showed "Failed to fetch
buckets" / "Bucket not found".

On success, `DeleteBucketModal` called `onClose()` and then
`router.push` to the buckets list. On the bucket page, `onClose` clears
the `?delete` query param through nuqs, which queues its own shallow
push to the current bucket URL. That push could race with the navigation
to the list and land back on the deleted bucket. The page then
re-rendered with the bucket query already removed from the cache,
refetched the missing bucket, and got a 404.

## Solution

- On the bucket's own page, the success handler now awaits `router.push`
to the buckets list and does not call `onClose`. The modal closes when
the page unmounts. When there is no `bucketId` in the route, it still
calls `onClose` as before.
- Added a component test for deleting from the bucket page. It checks
that Studio ends up on `/project/<ref>/storage/files` and that `onClose`
is not called. The test opts out of the global `useParams` stub so the
modal reads `bucketId` from the mocked route. It fails without the fix.

## How to verify

1. Open a project, go to Storage > Files, and open any bucket.
2. Choose Edit bucket > Delete bucket, type the bucket name, and
confirm.
3. Studio shows the success toast and lands on the buckets list
(`/project/<ref>/storage/files`). The deleted bucket no longer appears
there.
4. Studio never shows the deleted bucket's page with a spinner that
keeps loading, "Failed to fetch buckets" or "Bucket not found".

## Checks run

- `pnpm --filter studio exec vitest run
components/interfaces/Storage/FilesBuckets/DeleteBucketModal.test.tsx`
(2 passed)
- `pnpm turbo run typecheck --filter='...[origin/master]'`
- `pnpm turbo run lint --filter='[origin/master]'`
- Prettier check on the changed files


[FE-4926](https://linear.app/supabase/issue/FE-4926/deleting-a-bucket-leaves-its-page-loading-until-an-error)

---------

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-05 08:15:41 -06:00
Kody Jackson bdecc0892c content(kb) - storage providers listicle (#52721)
## Context

Storage providers listicle

## Preview links


https://kb-git-kody-devrel-810-storage-provider-listicle-supabase.vercel.app/kb/guides/best-storage-providers
2026-11-05 08:13:56 -06:00
Monica Khoury 12440e62a9 feat(studio): add Test badge to webhook deliveries for test events (#52510)
## Problem

Test deliveries in the webhook deliveries table look the same as real
ones. Test events are sent with `is_test: true` in the event payload,
but the UI doesn't surface it, so there's no way to tell them apart at a
glance.

Closes FE-4710.

## Solution

- Added an `isTestDelivery` helper that checks `eventPayload.is_test ===
true`. It uses a strict comparison, so values like the string `"true"`
don't count.
- Show a green "Test" badge next to the event name in the deliveries
table.
- Show the same badge in the header of the delivery details sheet, next
to the status badge.
- Added unit tests for the helper and component tests for the table and
the sheet, each covering a test delivery and a real one.

## Review instructions

1. Open a project's webhooks page and select an endpoint.
2. Click the button to send a test event and wait for its delivery to
appear in the Deliveries table.
3. Check that the new row has a green "Test" badge next to its event
name, and that existing rows without it have no badge.
4. Click the test row and check that the delivery details sheet shows
the "Test" badge next to the status badge in the header.
5. Click a non-test row and check that its sheet has no "Test" badge.
2026-11-05 15:58:56 +02:00
supabase-vercel-tedd[bot] f4b60922e4 fix(studio): stop retrying client errors in the storage buckets query (#53026)
## Problem

The storage buckets queries (`usePaginatedBucketsQuery`,
`useBucketQuery`) override the global retry rule with
`shouldRetryBucketsQuery`, which retried every error except 404 and two
specific messages. A permanent client error, such as a 402 returned when
a project's service is restricted, was retried 3 times with exponential
backoff. The Storage files page showed its loading skeleton for that
whole time instead of the error that `FilesBuckets` already renders.

## Solution

`shouldRetryBucketsQuery` now skips retries for any 4xx response except
429. This matches the global default in `data/query-client.ts`. The
existing checks for 404, "Missing tenant config" and "Project has no
active API keys" are kept, with 404 now covered by the 4xx rule. 5xx and
429 errors are still retried up to `MAX_RETRY_FAILURE_COUNT`.

The function is exported so it can be unit-tested, and
`data/storage/buckets-query.test.ts` covers the new behaviour.

Checks run:
- `pnpm exec vitest run data/storage/buckets-query.test.ts` (3 passed)
- `pnpm turbo run typecheck --filter='...[origin/master]'`
- `pnpm turbo run lint --filter='[origin/master]'`
- prettier `--check` on the changed files

## Review instructions

1. Open Storage > Files (`/project/<ref>/storage/files`) for a project
whose buckets request returns a 4xx (for example a 402 for a restricted
project). The "Failed to retrieve buckets" error with the API message
shows after one request, with no long loading state.
2. Open the same page for a healthy project. Buckets load and list as
before.

## Checklist

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


[FE-4925](https://linear.app/supabase/issue/FE-4925/storage-loads-endlessly-without-showing-error-message-if-organization)

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-05 07:45:16 -06:00
836296c342 Add go page: aws-reinvent/spago-dinner (#53008)
## Problem

We're hosting a dinner at Spago in Las Vegas on December 1, 2026 (7:30
PM - 10:00 PM) during AWS re:Invent and need an RSVP page. Hosts are
Kris Talajic and Harold Gimenez.

## Solution

Adds two go pages modeled on the Select 2026 VIP dinner page:

- `/go/aws-reinvent/spago-dinner` (RSVP form, details, hosts)
- `/go/aws-reinvent/spago-dinner/thank-you`

Also adds Kris and Harold to `authors.json` with headshots. The
Select-only "Are you attending?" dropdown is removed. RSVPs go to
HubSpot and a new Notion database. Both pages are marked for removal
after December 31, 2026.

## Review instructions

1. Open the Vercel preview at `/go/aws-reinvent/spago-dinner`.
2. Check the date, venue, schedule and host cards.
3. Submit a test RSVP and confirm it redirects to the thank-you page.
4. Confirm the submission appears in HubSpot and in the Notion database
(the Notion integration must have access to the database).

## Checklist

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)

🤖 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>
Co-authored-by: Wendie Cheung <wendie@Wendies-MBP.localdomain>
2026-11-06 00:32:14 +11:00
Drew McLellan 097e7a11ad feat(studio): duplicate row and keep values with Create more in Table Editor (#52952)
## What

Two additions to the Table Editor's Insert Row flow:

- **Duplicate row**: new item in the row context menu. Opens the Insert
Row panel as a new record, pre-filled from the selected row.
- **Keep values**: a gear button next to \"Create more\" (visible only
while \"Create more\" is on) opens a \"Row creation options\" popover
with a \"Keep values for the next row\" checkbox. When checked, the form
keeps its values after each insert instead of clearing. Off by default,
so existing behavior is unchanged.

## How

- Both use a shared helper, `generateReusedRowFields`, that clears
primary key, identity, function-defaulted (e.g. `gen_random_uuid()`,
`nextval(...)`, `now()`, `CURRENT_TIMESTAMP`), and truncated values.
Cleared columns fall back to their blank state so the database fills
them in. A boolean with a function default is left unset so the database
evaluates it.
- Duplicate adds a `duplicateFrom` field to the `row` side panel state
rather than reusing `row`, so the panel stays in insert mode and can't
turn into an update.
- The popover lives in a new co-located `RowCreationOptions` component.
Its notch is a rotated square drawn inside the popover content,
positioned over the trigger by Radix.

<img width="165" height="220" alt="Screenshot 2026-11-04 at 15 22 20"
src="https://github.com/user-attachments/assets/145e3aeb-9f6f-4826-a789-a0e462d3d1d5"
/>

<img width="678" height="202" alt="Screenshot 2026-11-05 at 11 41 35"
src="https://github.com/user-attachments/assets/07cc5251-e2fc-417c-90bd-6b6268a2c0c7"
/>


## Notes

- Columns with unique constraints other than the primary key are still
copied, so saving a duplicate can fail with the normal error toast.
- Large values (over 10 KB) are truncated by the grid query, so
duplicate clears them rather than copying a corrupted value. Copying
them is tracked in FE-4927.

## Testing

- Unit tests for the helper (clearing rules, literal defaults, keyword
and boolean function defaults, truncated values).
- Component tests for `RowEditor`: duplicate opens in insert mode with
the identity key cleared and inserts without it; \"Create more\" clears
by default and keeps values via the options popover; the gear only shows
while \"Create more\" is on.
- Checked manually in the app.

Resolves FE-4516
2026-11-05 13:19:42 +00:00
Monica Khoury dfe1e330a4 chore(studio): encourage shorter, clearer support requests (#52492)
## What

Updates the Message field on the support form to encourage shorter,
clearer requests.

- Replaces the "Please be as detailed and specific as possible"
placeholder with three plain questions: "What are you trying to do? What
happened instead? What have you tried?"
- Adds one line of guidance under the field, with a link to the KB
article on formatting support requests
- Replaces the static "5000 character limit" label with a live `count /
2,500` counter, and lowers the limit to 2,500

## Why

The old wording encouraged very long requests. Closes FE-4716:

https://linear.app/supabase/issue/FE-4716/review-support-form-wording-to-encourage-shorter-clearer-requests

Copy follows design feedback in the Slack thread. Layout changes to the
wider support form are out of scope and tracked separately.

The 2,500 limit comes from the proposed mockup on the ticket, which was
marked as a proposal rather than an agreed change. Flagging it here so
it gets confirmed in review.

A prepopulated template is not included. A placeholder gives the same
guidance without text users have to delete, and avoids conflicting with
flows that prefill the message.

## How to test

1. Run `pnpm dev:studio` and open the support form
2. Check the placeholder shows the three questions, and disappears when
you type
3. Check the line under the field links to the KB article via "Learn
more"
4. Type in the field and check the counter goes up (`0 / 2,500` to `N /
2,500`)
5. Paste text longer than 2,500 characters and check it is cut off at
the limit
6. Type `ipv4` in the message and check the IPv4 alert appears below the
guidance, then delete it and check the alert disappears
2026-11-05 14:55:44 +02:00
Jordi Enric 8bebf8206e fix(logs): retain loaded history on refresh DEBUG-233 (#51598)
Preserve loaded log history during refresh, bound refresh requests, and stop automatic polling when Live is paused.
2026-11-05 13:35:17 +01:00
Anthony Lio 63e52e119a feat(docs): ask ai enhancements (#52774)
## Problem

- the ask ai answer in the docs search dialog come in bursts
- the result is text that jumps by whole phrases and then stops, and
each new line moves the scroll position with a jump
- the copy button of an answer is always visible, a question has no copy
button

## Solution

- changes the answer to show a part of the waiting text on each
animation frame, so a burst of chunks shows at a steady rate
- adds a fade from a small blur to each new paragraph, list item and
source chip, and the source chips enter one after another
- changes the auto-scroll to move smoothly to each new line, and both
animations stop when the user sets reduced motion
- changes the copy buttons to show on hover, on keyboard focus and on
touch screens, and adds a copy button to each question

| before | after |
| -------|------|
| <video
src="https://github.com/user-attachments/assets/87f6710a-8174-460d-b343-90d19757d673"
/> | <video
src="https://github.com/user-attachments/assets/50bdbec3-d553-4ab3-96bb-2bf30c403815"
/> |

<!--
## 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](https://supabase.com/docs) and
[/docs](https://docs-git-antlio-feat-ask-ai-streaming-supabase.vercel.app/docs)
side by side
2. press `Cmd+I` on each page, and ask `how do I set up row level
security?`
3. make sure that the preview answer shows at a steady rate, and that
each new paragraph fades in
4. make sure that the preview source chips enter one after another when
the answer completes
5. move the pointer over the answer and over the question, and make sure
that each copy button shows
6. click the copy button of the question, and make sure that the
clipboard has the question text

## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-05 12:33:07 +00:00
Anthony Lio c7baea1eb3 feat(ui): unify mobile nav (#52410)
## Problem

- follow up pr #52177 to reuse in home + www new mobile menu

## Solution

- adds `MobileNavToggle` to `ui-patterns` and uses it in docs, kb and
www, so the three apps share one same shake shack burger
- fixes Escape on www, because the closed desktop dropdowns marked each
Escape as handled, so the drawer now checks focus
- changes the top bar to find its active group during render, so the
active tab shows on the first frame
- changes the drawer on docs pages without a sidebar to open on their
group, so troubleshooting opens on Resources

<!--
## 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. open from mobile `/docs` and open menu
2. make sure that the drawer opens below the header with the section
picker and the sign in buttons
3. make sure that the page behind the drawer does not scroll
4. press Escape, and make sure that the drawer closes and focus returns
to the burger
5. open `docs/guides/database/overview`, and make sure that the drawer
still shows the group links above the sidebar nav
6. open `/`, open the menu
7. click a link in the drawer, and make sure that the drawer closes

## 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-05 14:03:44 +02:00
Charis 57a5087579 feat(studio): gate integrations landing api-keys query on grants (#52963)
Part 3 of 6 in a stack for
[FE-4731](https://linear.app/supabase/issue/FE-4731/grants-rollout-api-keys-consumers-that-only-need-publishable-keys)..

## Stack
1. #52961 Docs and project API docs consumers
2. #52962 Edge functions and vector bucket examples
3. 👉 #52963 Integrations landing data
4. #52964 Connect sheet and project connection popover; remove the
transitional api-keys hooks
5. #52965 `reveal` refinement for single api-key reads; API key pill
6. #52966 API key create and delete

## Changes
`useProjectOAuthIntegrationData`
(`Integrations/Landing/Landing.utils.ts`) read api-keys through the
transitional hook with no guard. It now takes a plain `GET
/v1/projects/{ref}/api-keys` grant.

A query skipped by `skipToken` stays pending forever, so a small helper
folds the grant into the api-keys query state:
- loading grant: pending
- denied: settles with no keys and no error, matching how a 403 was
treated before (no request is sent)
- permission-check error: surfaced as the hook's error

## Testing
- `Landing.utils.platform.test.tsx`: granted, denied (settles, no
request, no error), and permission-check error.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-05 06:48:49 -05:00
kemal.earth fa7e8b636a feat(studio): update flags for interstitals and apps list (#52955)
## Problem

The single `OauthAppScopedGrants` flag gates three independent areas of
scoped OAuth apps, so they can't be rolled out or rolled back
separately.

Resolves FE-4919

## Solution

Replace `OauthAppScopedGrants` with three flags, one per concern, and
remove the old one. Gating is a straight swap with no behavior changes.

| Flag | Files |
| --- | --- |
| `enableScopedOAuthConsent` | `pages/authorize.tsx` |
| `enableScopedOAuthPublish` | `PublishAppSidePanel/index.tsx` |
| `enableScopedOAuthManage` | `OAuthApps.tsx`, `pages/account/apps.tsx`,
`AccountLayout.tsx` |

The `authorize` page test now mocks only the consent flag.

Note: `PublishableApps` (the org apps list) isn't gated today, so Manage
covers only the authorized-apps table and the account page. I left that
as is to keep this a pure flag swap.

## Review instructions

Each flag can be toggled on its own.

1. Consent only: `/authorize?mock_scenario=default` shows the new
consent screen. The app form and list pages are unchanged.
2. Publish only: `/org/[slug]/apps`, then publish or edit an app. The
extra controls appear and nothing else changes.
3. Manage only: `/org/[slug]/apps` shows the new authorized-apps table,
and `/account/apps` renders. `/authorize` uses the legacy screen.
4. All off: behavior matches `master`.

Before merging, the three new flags must exist in ConfigCat with the
same targeting that `OauthAppScopedGrants` has today.
2026-11-05 11:34:43 +00:00
claude[bot]andClaude d421451672 feat(www): add hidden Supabase for Platforms Addendum legal page (#52154)
<!-- claude-slack-attribution -->
_Requested by **Nicole Kramer** · [Slack
thread](https://supabase.slack.com/archives/C0161K73J1J/p1792676080898989)_

**Before:** There is no Supabase for Platforms Addendum page. The
Customer Legal Resources section of the Legal Hub has no terms page for
it, and there is nothing at `/legal/customer-resources/SFP-addendum`.

**After:** `/legal/customer-resources/SFP-addendum` renders the
"Supabase for Platforms Addendum" with a version selector showing
"Version 1 — October 22, 2026". The page is reachable by direct link
only. It is not listed in the Legal Hub, and it carries `noindex,
nofollow` like `/enterprise-terms` and
`/legal/customer-resources/supplemental-terms`.

## Problem

Legal needs a hidden, versioned terms page for the Supabase for
Platforms Addendum under Customer Legal Resources.

## Solution

Adds a new pages-router page and a `v1.mdx` data file, mirroring
`supplemental-terms.tsx` and the `LegalDocVersions` pattern used by
`enterprise-terms` and the DPA. Hiding follows the same approach as
`supplemental-terms`: `noindex`/`nofollow` via `NextSeo`, and no entry
in the Legal Hub link list in `apps/www/pages/legal/index.tsx`.

How: the MDX text was generated from the supplied Word file (revised
twice after the first draft; the page text matches the latest file), and
the markup-stripped result was diffed against the paragraph text in
`word/document.xml`. The paragraph count (53, including table cells) and
word count (2,373) match, with zero text differences. Wording is
preserved verbatim, including its quirks.

Formatting notes for reviewers:

- The Word file's title line ("SUPABASE FOR PLATFORMS ADDENDUM") is not
repeated in the body, because the page header supplies the title. The
file has no date line.
- The fee schedule is a Markdown table. The cell with three bullets uses
`<br />` line breaks, the same technique as the table in
`data/legal/sla/v1.mdx`.
- Quoted defined terms are bolded inside the quotes (`"**Term**"`) per
the repo's legal MDX convention.
- The two `https://supabase.com/...` links are bare URLs, as in the Word
file's hyperlinks, and autolink.
- Two non-ASCII characters from the source are kept as-is: an em dash
(4x) and a greater-than-or-equal sign (1x).
- The route is case-sensitive, so the file is `SFP-addendum.tsx`. The
lowercase URL `/legal/customer-resources/sfp-addendum` is not expected
to resolve.

## Review instructions

1. Open the preview at `/legal/customer-resources/SFP-addendum` (preview
base URL is on the Vercel bot comment).
2. Confirm the header reads "Supabase for Platforms Addendum" with the
Legal / Customer Legal Resources breadcrumb, and the version line reads
"Version 1 — October 22, 2026".
3. Confirm the page source has `<meta name="robots"
content="noindex,nofollow">` and that the page is not linked from
`/legal`.
4. Skim the fee table in section 4 and the lettered subsections for
rendering.

## Checklist

- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] Docs checklist item: not applicable (no docs topic changed)

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

https://claude.ai/code/session_014rEZad6NnPxuH39snHH1gT

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-05 17:23:42 +08:00
Anthony Lio 9659778769 feat(ui): scrollbar track (#52493)
## Problem

- proposal to lift scroll bar ui accross the apps
- fix shared `ScrollBar` in `ui` showing only a thin `bg-border` thumb
with no track, so the scroll position is hard to see

## Solution

- replaces the native scrollbars in the docs left nav and in the guide
right column with the shared scroll area
- replaces the native scrollbar in the docs search v2 results with the
shared scroll area, and keeps the animated list height and the bottom
fade
- changes the command menu list to the shared scroll area, with the bar
2px from the edge so it does not touch the hover highlight
- changes the studio connect sheet body and its framework combobox to
the shared scroll area, so long code lines still scroll inside their own
code blocks

| state | preview |
| -------|------|
| before | <img width="473" height="260" alt="image"
src="https://github.com/user-attachments/assets/ef22e643-b92a-4a23-9c77-6b10851e1445"
/> |
| after | <img width="473" height="260" alt="image"
src="https://github.com/user-attachments/assets/46fe95e9-0574-4eef-afbd-20d591baa859"
/> |

<!--
## 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
[/design-system/docs/components/scroll-area](https://design-system-git-antlio-feat-ui-scrollbar-track-supabase.vercel.app/design-system/docs/components/scroll-area),
scroll the vertical and horizontal demos, and make sure that the thumb
moves on a visible track and gets lighter on hover
2. open
[/docs/guides/database/postgres/row-level-security](https://docs-git-antlio-feat-ui-scrollbar-track-supabase.vercel.app/docs/guides/database/postgres/row-level-security),
scroll the left nav and the right column, and make sure that each shows
the new scrollbar
3. resize the page to mobile width, open the menu, and make sure that it
scrolls above the footer
4. make sure that the results scroll with the trackpad and with the
arrow keys, and that the bottom fade shows
5. open
[/dashboard](https://studio-git-antlio-feat-ui-scrollbar-track-supabase.vercel.app/dashboard),
press `⌘K`, scroll the command menu, and make sure that the thumb does
not touch the hover highlight of an item
6. open
[/dashboard/project/_?showConnect=true](https://studio-git-antlio-feat-ui-scrollbar-track-supabase.vercel.app/dashboard/project/_?showConnect=true),
scroll the connect sheet, and make sure that long code lines scroll
inside their code blocks and do not widen the sheet

## 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-05 09:16:06 +02:00
jenny kibiriandjenniekibiri eb11eac398 docs(backups): PITR is available on all compute sizes (#52948)
## Problem

The PITR docs still mention a Small compute requirement, which is no
longer needed (see #52553). The restore section also doesn't clearly
explain what happens to changes made after the selected restore point.

## Solution

- Clarified that PITR is available on all compute sizes.
- Added a warning that changes made after the selected restore point
won't be included.
- Recommended restoring to a new project first to preserve current data.
<img width="731" height="103" alt="Screenshot 2026-11-04 at 16 17 52"
src="https://github.com/user-attachments/assets/753d9e4f-f90b-419f-8f92-fe64330d7db4"
/>
<img width="796" height="204" alt="Screenshot 2026-11-04 at 16 19 54"
src="https://github.com/user-attachments/assets/1a82c503-82be-4d2c-a6ba-98d10664850f"
/>


<!--
## 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. Open the PITR section in the docs preview.
2. Verify the compute requirement is updated.
3. Check that the restore warning and link are included.

## 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: jenniekibiri <joshphatje@gmail.com>
2026-11-05 10:06:13 +03:00
Joshen Lim ebe8849f8b Skip resource aware search in cmd k while in a sub page (#52773)
## Context

Related to the resource aware CMD K changes, this just skips the request
for the resource aware search when searching in the CMD K field input if
the user is on any sub page, as the search will no longer be relevant.
2026-11-05 13:03:34 +08:00
Joshen Lim 5152899fac Joshenlim/fe 4720 cmd k support searching for functions (#52751)
## Context

Building off from
[here](https://github.com/supabase/supabase/pull/52678) to make Cmd+K
resource-aware so finding and inspecting anything in a project doesn't
depend on knowing where it lives in the dashboard.

Specifically looking into database entities for now - end state would be
that you could search for a table name for example, and Cmd K will pull
up everything related to that table for you to skim (e.g Policies,
Functions, Triggers, etc). Changes in this PR sets up searching for
**database functions**.

<img width="607" height="531" alt="image"
src="https://github.com/user-attachments/assets/b4a2cd15-9874-4e80-80d4-d343d8c70fc3"
/>

## Performance

Ran a Claude session to benchmark `getSearchEntitiesSql` against the
version on master (tables and policies only), on the same synthetic
catalog:
- 12,000 tables (36,651 `pg_class`), 6,001 policies, 27,258 `pg_proc`
(12,000 user + 12,000 extension-owned functions), 290,915 `pg_depend`.
- Median of 5 runs, `EXPLAIN ANALYZE`, local Postgres (warm cache).

| Search | Matches | master | this PR |
|---|---|---|---|
| `t_1` | ~1/9 of tables | 12ms | 23ms |
| `p_1` | broad policy-name match | 13ms | 25ms |
| `fn_1` | user + extension functions | 8ms | 23ms |
| `fn_` | every function | 8ms | 29ms |
| `stress.fn_1` | schema-qualified | 10ms | 30ms |
| `zzz` | nothing | 9ms | 22ms |

- Adding functions costs +11 to +21ms at this scale
- Most of it is fixed (+13ms even for a query that matches nothing): one
pass over `pg_proc`, plus building the set of extension-owned functions.
It doesn't grow with the number of matches.

## To test
- [ ] Search a table name: Tables first, then policies, and functions
- [ ] Search a function name: it appears under Functions and opens the
editor panel in database/functions
- [ ] Function outside public: schema filter switches and the function
opens
2026-11-05 13:02:44 +08:00
LennyandAlexis Aguilar ab54becc60 docs(storage): move url signing keys to dedicated page (#52954)
## Problem

Details about URL signing keys are embedded in the downloads page, but
it is a broader security related topic that applies to both uploads and
downloads.

There is no signed URL guidance in the Standard Upload section

## Solution

- Move details about URL signing keys to a dedicated page under the
storage>security tab (content mostly the same)
- Replace URL signing key details in downloads page with a brief blurb
and a link (keep header in case it has been hot linked)
- Add link to URL signing key details to resumable upload > signed url
section
- Add signed URL details to standard upload page, and similarly link to
url signing key page
- Update link in URL signing key page of dashboard to point to new
dedicated URL Signing key page

## Additional context

Follow up to: https://github.com/supabase/supabase/pull/52522

---------

Co-authored-by: Alexis Aguilar <98043211+alexisintech@users.noreply.github.com>
2026-11-05 11:08:12 +08:00
bammermann 3a2af6cdc9 Update humans.txt (#52696)
## Problem

Adding myself to the human.txt

## Solution

Added respecting Alphabetical order


## Checklist

Check all before review:

- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [x] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
2026-11-04 17:15:44 -07:00
Nik RichersandNik Richers f1b8af12b8 docs: refresh contributing page with rules of engagement (#52536)
## I have read the CONTRIBUTING.md file.

YES

## What kind of change does this PR introduce?

Simplifies the Contributing page so it does not duplicate the GitHub
guide, and updates `CONTRIBUTING.md` and `apps/docs/README.md` to match.

Closes DOCS-1563.

## What is the current behavior?

The live page is a 530-line component reference that duplicates and
drifts from CONTRIBUTING.md and the official docs style guide. Current
info about how to author content with our skills is missing.

## What is the new behavior?

`content.mdx` is a short intro that agrees with CONTRIBUTING.md, plus a
card that opens the guide on GitHub.

`CONTRIBUTING.md` now says to link an issue, that GitHub requests a
review from the Docs team (`@supabase/docs`), and to give the changes a
human review. It also requires a frontmatter `description`, documents
the `skip-anchor-check` label, and describes keyword search
(`docs_search_v2`) instead of embedding search.

`apps/docs/README.md` is now a short map: style guide, contributing
guide, agent skills, local setup, and redirects. The old Reference Docs
and DocSpec overview is gone.

## Additional context

- Worktree:
~/GitHub/supabase/supabase-worktrees/nikrichers/docs-1563-refresh-docscontributing-with-rules-of-engagement-and-remove
- Verification:

| Check | Result |
| --- | --- |
| `prettier --check` on the four changed files | pass |
| CI `format` | pass |
| Production `/docs/contributing` | pass, HTTP 200 |
| Preview `/docs/contributing` | pass, HTTP 200, shows How to contribute
and Get started |
| Full-page screenshots at 1280px | pass |

### Proof: the contributing page is a short guide, not a component
catalog

**Verified:** production `curl` (200) · preview `curl` (200) · `prettier
--check` (pass)

| [Before (production)](https://supabase.com/docs/contributing) | [After
(PR
preview)](https://docs-git-nikrichers-docs-1563-refresh-docscontr-0d1210-supabase.vercel.app/docs/contributing)
|
| --- | --- |
|
![contributing-before](https://moijyfpvgnmgoxvwcikq.supabase.co/storage/v1/object/public/pr-proof/supabase/supabase/pr52536/contributing-before-e1d4b706.png)
| <img width="1388" height="1283" alt="image"
src="https://github.com/user-attachments/assets/108856e9-0c53-4ca3-ae0e-0c2a0aedeab3"
/> |

### Test plan

- [ ] Compare the production and preview pages in the table above.
- [ ] On the preview, read How to contribute and confirm the three
steps.
- [ ] Open the Get started card and confirm it lands on
`apps/docs/CONTRIBUTING.md`.
- [ ] Confirm the card text covers authoring, where the docs source
lives, and how the docs app works.

---------

Co-authored-by: Nik Richers <nik@validmind.ai>
2026-11-04 16:11:28 -07:00
Charis 1decd82fcc feat(studio): gate edge functions and vector bucket api-keys consumers on grants (#52962)
Part 2 of 6 in a stack for
[FE-4731](https://linear.app/supabase/issue/FE-4731/grants-rollout-api-keys-consumers-that-only-need-publishable-keys).
Based on #52961.

## Stack
1. #52961 Docs and project API docs consumers
2. 👉 #52962 Edge functions and vector bucket examples
3. #52963 Integrations landing data
4. #52964 Connect sheet and project connection popover; remove the
transitional api-keys hooks
5. #52965 `reveal` refinement for single api-key reads; API key pill
6. #52966 API key create and delete

## Changes
Moves more publishable-key consumers onto the plain `GET
/v1/projects/{ref}/api-keys` grant:
- `Functions/TerminalInstructions`
- `Functions/EdgeFunctionDetails`: only the `api_gateway_keys_read`
check; the `edge_functions_write` check belongs to the edge functions
rollout
- `Storage/VectorBuckets/.../VectorBucketTableExamplesSheet`: still uses
non-revealed keys. When keys can't be read, the note tells the user to
substitute their own secret key.

Each shows `ApiKeysAccessNote` when denied or errored. The old guards
matched the annotation.

## Testing
- `TerminalInstructions.platform.test.tsx`,
`EdgeFunctionDetails.platform.test.tsx`,
`VectorBucketTableExamplesSheet.platform.test.tsx`: granted, denied (no
api-keys request), and permission-check error.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-04 20:56:56 +00:00
Charis bde5e81f3a feat(studio): gate docs and project API docs api-keys consumers on grants (#52961)
Part 1 of 6 in a stack for
[FE-4731](https://linear.app/supabase/issue/FE-4731/grants-rollout-api-keys-consumers-that-only-need-publishable-keys).

## Stack
1. 👉 #52961 Docs and project API docs consumers
2. #52962 Edge functions and vector bucket examples
3. #52963 Integrations landing data
4. #52964 Connect sheet and project connection popover; remove the
transitional api-keys hooks
5. #52965 `reveal` refinement for single api-key reads; API key pill
6. #52966 API key create and delete

## Changes
Moves api-keys consumers that only need publishable keys from the V2
`API_GATEWAY_KEYS_READ` check and the transitional `useAPIKeys` /
`useAPIKeysQuery` hooks onto a plain `GET /v1/projects/{ref}/api-keys`
grant with `apiKeysQueryOptions`:
- Docs: `Authentication` and `LangSelector`
- Project API docs: `ProjectAPIDocs` (still only fetches while the panel
is open) and `Content/Introduction`

Without access, the docs keep their placeholder keys:
- On the Data API docs page, the key picker in `LangSelector` is hidden
and `Authentication` keeps the placeholder. There's no inline note.
- In the API docs slideover, "Show keys" is disabled, with a tooltip
saying the user needs additional permissions (or that the permission
check failed).

The old guards matched the endpoint annotation
(`api_gateway_keys_read`).

## Testing
- `Docs/ApiKeysGrants.platform.test.tsx`: `LangSelector` offers keys
when granted, and hides the picker without requesting keys when denied
or when the permission check fails. `Authentication` prefills the key
when granted and keeps the placeholder otherwise.
- `ProjectAPIDocs/ProjectAPIDocs.platform.test.tsx`: "Show keys" reveals
the client key when granted; when denied or errored it's disabled with
the matching tooltip, and no keys are requested.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
2026-11-04 15:45:46 -05:00
Charis b3dd6612d7 feat(studio): classify errors with fault, reason, and per-tag Sentry sampling (#52730)
Follows #52707 (rename `ResponseError` to `StudioError`).

Resolves FE-4772.

## What

Introduces the error core for Studio error classification.

- **Tagged errors.** `lib/errors/studio-errors.ts` defines
`Data.TaggedError` classes (`RequestAborted`, `NetworkUnreachable`,
`MalformedResponse`, `PlatformError`, `UnclassifiedApiError`,
`DbConnectionTimeout`, `UnexpectedError`). Each carries `fault`,
`reason`, `classifiedBy` (`rule` or `default`), `retryable`, and
`service`. `StudioError` is the union type; use `isStudioError` instead
of `instanceof`.
- **Two classifiers** in `data/error-classification.ts`:
- `classifyResponseError` is only for errors from an API response: known
message patterns first, then defaults by status (5xx `PlatformError`,
4xx `UnclassifiedApiError`, no status `UnexpectedError`).
- `classifyError` is for everything else: aborts, browser fetch failures
(matched by message, so ordinary `TypeError` bugs stay
`UnexpectedError`), and unexpected errors.
- `handleError` picks between them, reports, and rethrows the same
instance so React Query receives the classified error.
- **Routing and sampling.** `lib/errors/error-routing.ts` maps every tag
to a Sentry sample rate (`SAMPLE_NEVER`, `SAMPLE_OTHER`, `SAMPLE_OWNED`,
`SAMPLE_ALWAYS`). `reportStudioError` tags events with `sample_rate`,
and `beforeSend` applies it. `alwaysCapture` reports at rate 1. The
global Sentry error `sampleRate` stays unset so the rates don't
multiply.
- **Network failures.** A fetch failure is a `user` fault with reason
`offline` when the browser reports being offline, and a `platform` fault
otherwise.
- **Hand-built errors.** Call sites that wrapped caught exceptions or
made up status codes now use `classifyError` or a specific class instead
of `classifyResponseError`.

## Behavior changes

- Errors that previously went unreported, including unexpected errors
with a message, are now reported to Sentry at their routed sample rate.
- `handleError` no longer logs the stack with `console.error`.
- `MalformedResponse` is defined but not produced yet; a follow-up adds
the empty-body check.

## Testing

- Unit tests for classification, routing, reporting, and the
`beforeSend` sampling helper.
- `pnpm vitest run data lib components/interfaces/ErrorHandling`,
typecheck, lint ratchet, and knip pass locally.
2026-11-04 13:19:01 -05:00
Thomas Krennwallner 42b7658855 docs: add Thomas Krennwallner to humans.txt (#52742)
Add myself to humans.txt.

## Checklist

Check all before review:

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