Commit Graph
40517 Commits
Author SHA1 Message Date
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
Kody Jackson 8eb64b767f chore(docs) - open humans.txt to any github org member (#53047)
## Problem

Docs team shouldn't be the only one who can approve `humans.txt`

## Solution

Adds a line without a dedicated codeowner, which opens it up to anyone
with write access to the org.
2026-11-05 11:41:28 -06: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
supabase-vercel-tedd[bot] 4ea48d0e2a fix(scripts): keep fix-audit-vulnerability --json stdout parseable (#52987)
## Problem

`scripts/fix-audit-vulnerability.ts --json` is meant to print a single
JSON object to stdout. In practice, after any failed fix attempt, the
next run printed pnpm install output (`Scope: all 31 workspace
projects`, `Lockfile is up to date...`, `Done in ...`) before the JSON,
so `JSON.parse(stdout)` failed.

The script itself already routes its logs to stderr and pipes every
`execSync`. The extra output comes from pnpm: when a failed attempt is
reverted, the script restores `pnpm-lock.yaml` / `pnpm-workspace.yaml`
from a snapshot but leaves `node_modules` on the bumped versions. On the
next `pnpm tsx ...` call, pnpm sees `node_modules` out of sync with the
lockfile, runs an install before starting the script, and prints it to
stdout.

## Solution

- Add `syncNodeModules()` to `scripts/bump-package.ts`. It runs `pnpm
install --frozen-lockfile --silent` with piped output, and only logs a
warning to stderr if it fails.
- Call it after every revert: in `bumpPackage`'s `revert()` and in the
three lockfile-restore paths of `fixModule` in
`scripts/fix-audit-vulnerability.ts`. `node_modules` now matches the
restored lockfile after a failed attempt.
- Recommend `pnpm --silent tsx ...` in the usage text. Even when
`node_modules` is out of sync for another reason (a fresh pull, for
example), `--silent` keeps pnpm's own output off stdout.

## Review instructions

No UI. Verify from the repo root:

1. Run `pnpm tsx scripts/fix-audit-vulnerability.ts --json 2>/dev/null |
node -e 'JSON.parse(require("fs").readFileSync(0,"utf8"))'` and confirm
it exits 0.
2. Pick a dependency from that list that the script cannot fix (it
returns `still_vulnerable`), and run `pnpm tsx
scripts/fix-audit-vulnerability.ts <dep> --json 2>/dev/null` twice. Both
runs print only a JSON object to stdout.
3. After the failed attempt, `git status` shows no change to
`pnpm-lock.yaml` or `pnpm-workspace.yaml`, and `pnpm install
--frozen-lockfile` reports `Already up to date`.
4. `touch pnpm-lock.yaml && pnpm --silent tsx
scripts/fix-audit-vulnerability.ts --json 2>/dev/null` still parses as
JSON.
5. Progress logs still appear on stderr.

Checks run: the steps above, end to end; Prettier on both files; `tsc
--noEmit` on both files shows only an existing error at the final
`result.status` access in `main()`, which master also has. `turbo
typecheck`/`lint` pass but cover no package, because root `scripts/` is
not a workspace package.

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


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

Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
2026-11-05 17:25:28 +01:00
Anthony Lio b360605842 feat(ui): floating surface shadows (#53009)
## Problem

- popovers, menus, selects and the chart tooltip draw a 1px `border`
next to a `shadow-*`, so the edge shows as a separate gray line

## Solution

- adds `floating-surface-shadow-sm` and `-md` utilities in one file, so
every floating surface uses the same edge and shadow
- replaces popover, menu, select and chart tooltip borders and shadows
with the `md` utility, so edges blend into shadows
- changes the chart tooltip background to the card surface in dark mode,
so the tooltip is lighter than the page
- adds a 1px outline in forced colors mode, because that mode removes
box shadows

| before | after |
| -------|------|
| <img width="696" height="371" alt="image"
src="https://github.com/user-attachments/assets/0bca48bd-565d-48e0-bd44-1e804e3ebd7b"
/> | <img width="696" height="371" alt="image"
src="https://github.com/user-attachments/assets/6ad2d80e-806a-46a6-b022-891b55d979e4"
/> |

<!--
## 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/popover](https://design-system-git-antlio-floating-surface-shadows-supabase.vercel.app/design-system/docs/components/popover)
and click "Open popover"
2. make sure that the popover has a soft shadow and a thin edge with no
separate gray border, in light and dark theme
3. open
[/design-system/docs/components/dropdown-menu](https://design-system-git-antlio-floating-surface-shadows-supabase.vercel.app/design-system/docs/components/dropdown-menu),
click "Open" and hover "Invite users", and make sure that the menu and
the submenu have the same edge
4. open
[/design-system/docs/components/select](https://design-system-git-antlio-floating-surface-shadows-supabase.vercel.app/design-system/docs/components/select),
click "Select a fruit" and make sure that the list has the same edge
5. open
[/design-system/docs/components/chart](https://design-system-git-antlio-floating-surface-shadows-supabase.vercel.app/design-system/docs/components/chart)
in dark theme, hover a bar in the tooltip example, and make sure that
the tooltip is lighter than the page
6. in chrome devtools, open the rendering panel and set "Emulate CSS
media feature forced-colors" to `active`, and make sure that the popover
and the select list have an outline
7. open
[/design-system/docs/components/tooltip](https://design-system-git-antlio-floating-surface-shadows-supabase.vercel.app/design-system/docs/components/tooltip),
hover "Hover" and make sure that the tooltip still has its shadow from
#52631

## 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
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
Kody Jackson cc78424932 chore(www,docs,kb) - remove tracked sitemaps (#53036)
## Problem

Moved to another repo
2026-11-05 09:20:15 -06: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
Matt Rossman 1f75a630c2 fix: update Ask AI model (#52736)
OpenAI is retiring the pinned GPT-4o mini snapshot on January 14, 2027,
but "Ask AI" on our site(s) still uses it.

This PR replaces it with GPT-6 Luna at low reasoning, which is a
similarly cost effective model. Its completion budget is increased to
allow room for reasoning, while the total cap preserves the previous
input allowance.

I noticed the `packages/ai-commands` where this was defined also
includes dead code from older versions of SQL and cron helpers, so this
also removes them for housekeeping.

I also upgraded the OpenAI SDK to support types for the new model.

To test, try asking a question in "Ask AI" in the docs
[preview](https://github.com/supabase/supabase/pull/52736#issuecomment-6618563374)
build:

<img width="568" height="583" alt="CleanShot 2026-11-03 at 7 22 29
PM@2x"
src="https://github.com/user-attachments/assets/fe8f824f-3884-44b8-affd-5710343e0101"
/>

Note the "Rename with Supabase AI" feature doesn't work but that's an
existing issue not related to this PR:
https://github.com/supabase/supabase/issues/51438

**References**

- https://developers.openai.com/api/docs/deprecations
- https://developers.openai.com/api/docs/models/gpt-6-luna

Closes AI-1397
2026-11-05 09:32:28 -05:00
Andrey A. 189adda99d chore(self-hosted): update 2026-11-05 - 0.8.4 (#53017) self-hosted/v0.8.4 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
Anthony Lio e89e3cf0a4 style(ui): tighten tooltip side padding (#52977)
## Problem

- tooltip has 12px side padding and 6px top padding, so a short tooltip
looks wide

## Solution

- changes the shared tooltip side padding from 12px to 8px, so tooltip
content sits closer to the edge in every app

| before | after |
| -------|------|
| <img width="357" height="162" alt="image"
src="https://github.com/user-attachments/assets/c37468a4-ddda-444a-842d-44d13f4e2a81"
/> | <img width="357" height="162" alt="image"
src="https://github.com/user-attachments/assets/04359925-4e3e-4d55-b8cf-550a6c2ba6f8"
/> |

<!--
## 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 the live and preview links of the design system tooltip page
side by side
2. hover each example tooltip, and make sure that the side padding is
smaller and that the text does not touch the border
3. hover a few tooltips in the studio preview, and make sure that long
tooltip text still wraps inside the tooltip

## 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:03:38 +02: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
Andrey A. 5583c2bd6f fix(self-hosted): drop removed hosts from Envoy clusters right away (#52968) 2026-11-04 18:55:22 +00: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
John KerryandJohn Kerry 6f391dc15d Adding John Kerry to humans.txt (#52953)
## Problem

John Kerry is missing from humans.txt

## Solution

I'm adding John Kerry 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)

Co-authored-by: John Kerry <john.kerry@supabase.io>
2026-11-04 17:55:10 +00:00
Jeremias Menichelli 22e1776d96 chore: Delete mutation fix on kb script (#52958)
## Problem

While sending a fix to our troubleshooting database, uncle Claude
detected a bad mutation schema.

## Solution

Fix mutation schema so it doesn't fail next time.

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

_For now, only merge, make sure KB troubleshooting workflow runs
accordingly._

## 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:20:43 +00:00