mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
create-pull-request/patch
40482
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
4dbb966b2e |
feat(studio): show Trusted Partner access on OAuth consent (#53583)
> [!WARNING] > Live readiness checks require [CTRL-2277](https://linear.app/supabase/issue/CTRL-2277) in the target environment; production deployment is pending. ## Problem Trusted Partner consent must explain direct database access and project blockers before authorisation. [DEPR-732](https://linear.app/supabase/issue/DEPR-732) ## Solution - Show Direct database access alongside the requested permissions. - Check selected projects, or every project page for organisation-wide grants. - Separate blocking issues from SSL notices; block authorisation during loading or errors and offer retry. | After | | --- | | <img width="1280" height="1323" alt="Authorize API Access Supabase" src="https://github.com/user-attachments/assets/adb6367a-bace-4b62-81b5-68ba4c11396c" /> | | Consent screen with Direct database access (previously “Table data”) and Database management | | <img width="1280" height="1323" alt="Authorize API Access Supabase" src="https://github.com/user-attachments/assets/0c35900c-1059-49cd-b1c5-4e0cf5441b9b" /> | | Selected-project blockers and the separate SSL notice | | <img width="1280" height="1323" alt="95741" src="https://github.com/user-attachments/assets/1fbef4f0-0433-4c93-b390-84d210dfb665" /> | | Organisation-wide blockers _without_ project-removal actions | ## Review instructions 1. Open the [staging consent screen](https://studio-staging-git-dnywh-depr-732-trusted-partn-f24cfb-supabase.vercel.app/dashboard/authorize?auth_id=11666aa8-7f7e-4705-b33a-981903fd682e). Enable `enableScopedOAuthConsent` in the dev toolbar’s **Flags** tab if needed. 2. Open Chrome DevTools → **Network** and reload. Select the **GET** request ending in `/platform/oauth/authorizations/{id}`. 3. Right-click that request → **Override content**. Choose a local folder and click **Allow**. Add `database_token_access:read` and `database_token_access:write` to `scopes`. Use only the read scope to check read-only access. Keep every other field, save with **Cmd/Ctrl+S**, then reload with DevTools open. 4. Select projects. Override each **GET** request ending in `/platform/organizations/{slug}/oauth/authorizations/{id}/projects/{ref}/database-access`. Use `{"issues":[],"enables_ssl":false}` for ready projects, then `{"issues":[],"enables_ssl":true}` for an SSL notice. Save and reload after each change. Check Direct database access and Database management are separate, and SSL alone allows authorisation. 5. Change a readiness response to `{"issues":["postgres_upgrade_required","platform_unsupported"],"enables_ssl":true}`. Save and reload. Check blockers prevent authorisation, SSL stays separate, and removing a blocked project clears its blockers. 6. Set `project_scoping_mode: false` in the authorisation override. Save and reload. Check any blocked project prevents organisation-wide authorisation, with no project-removal actions. 7. Block a database-access request in Network and reload. Check authorisation stays disabled. Unblock it and choose **Retry checks**. 8. For a returning app, override `existing_grant.approved_scopes` in the request ending in `/preflight`. Save and reload. Check added, removed and unchanged permissions. 9. Disable **Sources → Overrides → Enable Local Overrides**. Repeat ready and blocked project checks with a real staging authorisation before approving live readiness behaviour. --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
0c97b9789b |
[FE-3107] chore(studio): remove remaining Next.js references (#54426)
Removes the remaining Next.js dependencies, compatibility shims, test
mocks, ESLint/TypeScript presets, and webpack/Next workarounds from
Studio following the TanStack Start migration.
Addresses FE-3107.
**Removed:**
- `next` and `next-router-mock` from `apps/studio/package.json` (and
updated `pnpm-lock.yaml`)
- Orphaned `apps/studio/compat/next/script.tsx` shim, `script.test.tsx`,
`compat/**` knip entry, and `nextCompat()` / `ssr.noExternal` `/^next/`
plumbing from `apps/studio/vite.config.ts`
- `apps/studio/tests/lib/route-mock.ts` and all `next-router-mock`
setup/imports across `tests/vitestSetup.ts`,
`tests/lib/custom-render.tsx`, and 12 test files
- `apps/studio/tests/pages/` directory (moved the 3 remaining tests to
`components/interfaces/Organization/Organization.utils.test.ts` and
`apps/studio/tests/routes/`)
- Unused `'use client'` directives across 23 Studio files
- Next.js/webpack workarounds: `graphiqlViteWorkers()` in
`vite.config.ts`, webpack `import.meta.glob` `try/catch` fallback in
`ConnectStepsSection.tsx`, shell `NODE_ENV=test` override in
`vite.config.ts` / root `package.json` / `studio-e2e-test.yml`, Next
`getPathMatch` and `_next` passthrough in `redirects.shared.*`,
`window.next?.router` check in `monaco-graphiql-coexistence.spec.ts`,
and unused `ANALYZE` env var in `apps/studio/turbo.jsonc`
- Next-only Sentry/chunk-load filters (`NEXT_NOT_FOUND`,
`NEXT_REDIRECT`, Next `/org/[slug]/` regex, `/app:\/\//`, dead
`includeThirdPartyErrorFilter` plumbing, webpack chunk error regex) and
stale Next/Pages Router comments, docs, and `#__next` CSS selector
**Changed:**
- `apps/studio/eslint.config.cjs`: switched from
`eslint-config-supabase/next` to the new `eslint-config-supabase/react`
preset (dropping `@next/next/no-img-element: off`, keeping `.next` /
`next-env.d.ts` ignored for local checkouts with stale pre-migration
build artifacts)
- `apps/studio/tsconfig.json`: extends `tsconfig/base.json` directly
instead of `tsconfig/nextjs.json` (identical resolved compiler options)
- `apps/studio/.github/eslint-rule-baselines.json`: pruned 33 stale
`pages/...` and `types/next.ts` entries without changing any rule
thresholds
- `apps/studio/tests/lib/custom-render.tsx`: backed
`TestFrameworkProvider` with TanStack Router instead of
`next-router-mock`
-
`apps/studio/components/interfaces/Integrations/GraphQL/GraphiQLTab.tsx`:
imports `graphiql/setup-workers/vite` directly
- `apps/studio/styles/globals.css`: replaced `@source
'../pages/**/*.{js,ts,jsx,tsx}'` with `@source
'../routes/**/*.{js,ts,jsx,tsx}'`
- `apps/studio/turbo.jsonc`: declared `"NEXT_PUBLIC_*"` in
`tasks.build.env` now that Turborepo infers `nitro` instead of `nextjs`
-
`apps/studio/components/interfaces/Organization/Organization.utils.ts`:
narrowed `buildOrgUrl`'s `slug` parameter to `string[] | undefined`
**Added:**
- `packages/eslint-config-supabase/shared.js` and
`packages/eslint-config-supabase/react.js` (plus `presets.test.ts`),
decoupling non-Next React apps from `eslint-config-next` with verified
zero non-`@next/*` rule drift while keeping
`eslint-config-supabase/next` unchanged for the Next.js apps
## To test
- Run `pnpm --filter eslint-config-supabase run test` and confirm preset
parity tests pass
- Run `pnpm --filter studio run lint`, `pnpm --filter studio run
lint:ratchet`, `pnpm --filter studio run typecheck`, `pnpm knip
--workspace apps/studio`, and `pnpm --filter studio run test`
- Run `pnpm --filter studio run build` and verify the production build,
prerendered routes, chunk-cycle check, and GraphiQL web workers succeed
- Smoke-test Studio locally (`pnpm dev:studio`): verify GraphiQL loads
cleanly, ConnectSheet framework steps render, and Tailwind styles on
route pages are intact
---------
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
|
||
|
|
c2ff38bb40 |
Update resolution for max_clients limit issue (#54458)
Consolidate resolution steps for max_clients limit. ## Problem Updating max_clients limit separately isn't supported, its bind to compute instance. ## Solution Clarify that increasing max_clients limit requires scaling compute instance. ## Review category (docs PRs only) - Low: get to it when you can --------- Co-authored-by: anthony lio <lionnet.ant@gmail.com> |
||
|
|
05cbf8ca50 |
feat(studio): show Trusted Partner access in Authorized Apps (#53705)
## Problem Organisation admins need to see authorised apps’ direct database access. [DEPR-731](https://linear.app/supabase/issue/DEPR-731) ## Solution - Show the approved direct-access level in Authorized apps. - Show permissions and project coverage in **View access**. | After | | --- | | <img width="1280" height="813" alt="OAuth Apps Organization Settings Basket Supabase" src="https://github.com/user-attachments/assets/d2bbc682-6e6f-462f-b5c2-3a2a8ff813ba" /> | | Authorized apps list showing read-only direct access | | <img width="1280" height="813" alt="OAuth Apps Organization Settings Basket Supabase (4)" src="https://github.com/user-attachments/assets/24506547-461a-44e0-880f-6ade23fd734c" /> | | Authorized apps list showing read-write direct access | | <img width="1280" height="813" alt="OAuth Apps Organization Settings Basket Supabase (1)" src="https://github.com/user-attachments/assets/53ac2662-9fb7-4cfc-b118-31ef5778b339" /> | | View access sheet with permission groups and project coverage | | <img width="1280" height="813" alt="OAuth Apps Organization Settings Basket Supabase (3)" src="https://github.com/user-attachments/assets/a21cefa7-c656-4b5c-bb0c-075c724350f9" /> | | View access sheet with permission groups and project coverage | | <img width="424" height="297" alt="CleanShot 2026-12-02 at 15 09 39" src="https://github.com/user-attachments/assets/e1f83068-21a8-43c4-9ca8-dcf6a3164b01" /> | | Added second paragraph for revoking access to apps with direct database access. This “existing connections will close shortly” is only accurate one CTRL-2141 merges, as discussed [here](https://github.com/supabase/supabase/pull/53705/changes#r4764576735). | ## Review instructions 1. Open the [staging preview](https://studio-staging-git-dnywh-depr-731-authorized-apps-supabase.vercel.app/dashboard), select a test organisation and open **Apps** (`/dashboard/org/{slug}/apps`). Enable `enableScopedOAuthManage` in the Studio dev toolbar’s **Flags** tab if needed. 2. Open Chrome DevTools → **Network** and reload. Select the **GET** request ending in `/platform/organizations/{slug}/oauth/approvals`. 3. Right-click that request → **Override content**. Choose a local folder and click **Allow**. For an existing organisation-bound app, add `database_token_access:read` to `attributes.org_grant.approved_scopes`. Keep every other field, save with **Cmd/Ctrl+S**, then reload with DevTools open. 4. Open the app’s **View access**. Override the **GET** request ending in `/platform/organizations/{slug}/oauth/approvals/{app_id}/grants`. Add the same scope to the matching grant’s `attributes.approved_scopes`. Save and reload. 5. Check read-only direct access in the list and access sheet. Change the scope to `database_token_access:write` in both overrides, save and reload. Check read-write access and compare it with a standard app. 6. Compare the grants response’s existing `attributes.projects` list with `null` for all projects. Save and reload after each change. Check permission groups, project coverage and the app ID in **View access**. 7. Open **Revoke access**, check the existing OAuth access explanation, then choose **Cancel**. 8. Disable **Sources → Overrides → Enable Local Overrides**. Repeat with real authorised staging apps. --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
0265ff935e |
feat(studio): configure direct database access in OAuth app settings (#54006)
> [!WARNING] > Partner eligibility requires [CTRL-2282](https://linear.app/supabase/issue/CTRL-2282) in the target environment; production deployment is pending. ## Problem Trusted Partners need to configure direct database access for OAuth apps. [DEPR-733](https://linear.app/supabase/issue/DEPR-733) ## Solution - Save and reload direct-access scopes independently of Database management. - Allow new grants only for eligible organisations and organisation-bound apps. - Allow existing direct access to be removed when eligibility changes. | After | | --- | | <img width="1280" height="754" alt="OAuth Apps Organization Settings Basket Supabase" src="https://github.com/user-attachments/assets/e9b78fb6-65e4-4299-ad07-a2f9538a36d5" /> | | `"is_trusted_partner": false` or missing | | <img width="1280" height="754" alt="OAuth Apps Organization Settings Basket Supabase (1)" src="https://github.com/user-attachments/assets/cf78db2c-952c-47e9-9239-82aab2c8398a" /> | | `"is_trusted_partner": true` | ## Review instructions 1. Open the [staging preview](https://studio-staging-git-dnywh-depr-733-oauth-app-dat-c71d4a-supabase.vercel.app/dashboard), select a test organisation and open **OAuth Apps**. It should already be `true, but enable `enableScopedOAuthPublish` in the Studio dev toolbar’s **Flags** tab if needed. 2. Open Chrome DevTools → **Network**, then click **Publish OAuth app**. 3. In Network, select the **GET** request whose URL ends in `/platform/organizations/YOUR_ORG_SLUG`, without `/oauth/apps` after it. Its response contains the organisation’s name and slug. 4. Right-click that request → **Override content**. Choose a local folder and click **Allow**. Add `"is_trusted_partner": true` to the top-level JSON object, keeping every other field. Save with **Cmd/Ctrl+S**. 5. Reload with DevTools open, reopen **Publish OAuth app**, and choose **An owner, once for the whole organization** under authorisation. 6. Under **Application permissions**, find **Direct database access**. Try **No access**, **Read only** and **Read and write**. Change **Database management** separately and check the two values stay independent. 7. With direct access selected, check **Each member, for themselves** is unavailable. Set direct access to **No access**, choose member authorisation, and check the Direct database access dropdown becomes disabled. 8. Switch back to organisation authorisation, select direct access and open **Preview consent for users**. Check its label and access level match the form. 9. Change the overridden field to `false`, save and reload. Reopen the new-app form and check Direct database access is hidden. 10. Disable **Sources → Overrides → Enable Local Overrides**. In a genuinely eligible staging organisation, create a disposable app with direct access, save and reopen it. Change its access level, save and reopen again, then remove direct access. Check Database management remains unchanged. --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
3f0edcecd1 |
docs: scoped oauth apps [CTRL-2123] (#53658)
## Problem Scoped OAuth Apps M1 adds two settings to OAuth apps: **Use the permissions of the person who connects** and **Ask for specific projects**. Together they let any organization member authorize an app with their own role, and let people limit an app to the projects they choose. The settings are in private beta. The current OAuth docs assume an Owner or Administrator authorizes an app for the whole organization, and they describe tokens as having full Management API access. App authors have no guidance on what changes when they turn on either setting. Organization admins have nothing on reviewing or revoking member grants. Linear: [[CTRL-2123]](https://linear.app/supabase/project/oauth-app-granular-permissions-scoped-oauth-apps-23de6daf1501) ## Solution Four new guides under `build-a-supabase-oauth-integration/`, plus edits that weave scoped access into the existing Build an Integration pages and the docs nav. | Page | Type | For | | --- | --- | --- | | Scoped access for OAuth apps | Explainer | App authors deciding whether to turn the settings on | | Update your app for scoped access | Guide | App authors changing their code, including which roles can authorize each scope | | Test scoped access on a staging app | Guide | App authors testing before production | | Manage OAuth app access | Guide | Organization admins and members reviewing and revoking grants | Edits to existing pages: - **Build a Supabase OAuth integration:** - The intro no longer says tokens have "full access", and points to scoped access. - The authorize parameters add `project_ref`. - The callback section covers a canceled authorization (`error=access_denied` and `state`) and explains `scope` and `project_refs`, including `project_refs` being `null` for an all-projects grant. - The refresh section notes that a member leaving ends their grant. - **OAuth scopes:** a new "Scopes and member roles" section links to the role table. - **Navigation:** the four pages are added to "Supabase OAuth Integration" after "OAuth scopes" as **Scoped access**, **Update your app**, **Test on staging** and **Manage app access**. The entries are added in both nav files: `features/IaNav/option1/integrations.ts` and `components/Navigation/NavigationMenu/NavigationMenu.constants.ts`. Key choices: - **Explainer separate from the guides.** The overview has no instructions, so authors can decide whether to turn the settings on before reading the code changes. - **Role table in the update guide.** It's derived from the scope and role mapping, and sits next to the advice it supports. The OAuth scopes page links to it rather than duplicating it. - **Partial grants are described as not available in the dashboard.** The pages point authors to the "Handle scopes missing from the grant" section instead of naming an API field. - **No rollout dates.** Dates belong in the changelog and partner emails, per `03-page-structure.md`. The pages state private beta status and the support-ticket route only for the initial TPP rollout. ## Still to be added - **No API reference.** `project_ref` and `project_refs` come from the Management API OpenAPI spec, so field-level detail is out of scope here. ## Preview links See PR preview Head to `docs/guides/integrations/build-a-supabase-oauth-integration` ### Self-review Reviewed with `review-the-docs` (local self-review) before opening. - **Passed:** voice, structure, frontmatter, internal links, anchors and nav. Code snippets run with stub values. - **Formatting:** Prettier check passes on all changed files. A follow-up commit fixed table alignment in three new guides. - **Edits to existing pages:** tested against the live text of both pages. - **Still to run:** `pnpm build:guides-markdown`, and the `WORD_LIST.md` two-pass check, including "re-authorize" and "turn on" vs "select". ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Joshen Lim <joshenlimek@gmail.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> |
||
|
|
4f1226a413 |
docs(functions): read prompt from query string in Llamafile OpenAI SDK example (#54191)
## Problem Fixes #54190 The Running AI Models page has an example that runs Llamafile through the OpenAI Deno SDK. The function reads the prompt with `await req.json()`. The curl command on the same tab sends a GET request with the prompt in the query string, so there is no body. `req.json()` throws `SyntaxError: Unexpected end of JSON input` and the function fails before it reaches Llamafile. ## Solution Read the prompt from the URL, with the same two lines the Ollama tab and the other Llamafile tab on this page already use. Tested: - Ran the handler in Deno 2.9.8 and called it with the curl command from the page. The handler ran without the `withSupabase` wrapper, which does not read the request body, and the OpenAI call was replaced with an echo, since the error happens first. The old code threw `Unexpected end of JSON input`. The new code returned the prompt. - `oxfmt --check` (version 0.79.0, from the repo catalog) passes on the changed file. Not tested: a real Llamafile server and the docs site build. ## Review instructions 1. Open [Running AI Models](https://supabase.com/docs/guides/functions/ai-models) and go to **Running locally** > **Mozilla Llamafile** > **OpenAI Deno SDK**. 2. Compare the function code with the curl command in "Execute the function". The curl command sends a GET request with no body. 3. In the diff, see that the function now reads `prompt` from the query string, like the other two tabs. ## 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: Nik Richers <nrichers@gmail.com> |
||
|
|
b3ddaa053a |
docs: fix grammar in sessions guide (#54212)
Fixes two small grammar errors in the User sessions guide: "All requests that require authentication has" → "have", and "termination of user's sessions" → "termination of users' sessions". Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
46a27e1aaf |
docs: fix grammar in signout guide (#54218)
Fixes a grammar error in the Sign out and scopes section of the signout guide by changing "but keep sessions" to "but keeps sessions". Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
7d9cbcd2aa |
docs: fix grammar in managing user data guide (#54217)
Fixes a grammar error in the Exporting users section of the managing user data guide by changing "table" to "tables". Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
77f33f115b |
fix(docs): use the OAuth client columns in the audit query (#54098)
## Problem Fixes #54097. The OAuth token security guide's audit query uses columns that no longer exist. `oauth_clients.client_id` was dropped in auth migration `20250903112500`, and `id` is now the public client ID. The table has `client_name`, not `name`, and `sessions` stores the client in `oauth_client_id`, which references `oauth_clients.id`. The query also filters on `s.created_at`. Sessions last indefinitely and are refreshed while a user stays active, so a long-lived session refreshed yesterday is excluded. ## Solution - Select `oc.id AS client_id` and group by `oc.id`. - Use `oc.client_name`. - Join on `s.oauth_client_id = oc.id`. - Put the 30-day window in the join on `coalesce(s.refreshed_at, s.created_at)`, so sessions created or refreshed in the last 30 days count and clients with a count of 0 remain. - Name the count `users_with_recent_sessions` so it describes the measure. This changes one SQL block in one `.mdx` file. ## Verification Checked against the auth schema from the `supabase/auth` migrations, including `sessions.refreshed_at`. Tested on `supabase/postgres:17.6.1.143` with `auth.oauth_clients` and `auth.sessions` tables that match the current columns. The previous query fails with `column oc.client_id does not exist`. With a session created 60 days ago and refreshed yesterday, the creation-time filter returns `0`, while the refresh-time filter returns `1`. A new session with no refresh still counts through the `created_at` fallback, and a client with no sessions returns `0`. ## Review instructions 1. Open `apps/docs/content/guides/auth/oauth-server/token-security.mdx`. 2. Confirm the audit query selects `oc.id AS client_id`, uses `oc.client_name`, joins on `s.oauth_client_id = oc.id`, and filters on `coalesce(s.refreshed_at, s.created_at)` inside the join. 3. Run the query against a project with the OAuth server enabled. It should return every client with the number of users whose session was created or refreshed in the last 30 days. ## 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) I used AI to help debug and verify this, but I reviewed the change and am submitting the PR myself. --------- Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
6482c700f9 |
docs(skills): update the ask-the-docs feature flag notes for the IA nav experiment (#54442)
## Problem The `ask-the-docs` feature-flags reference describes the docs experiments as they worked before the IA nav (`docs-ia-mvp-v1`) changes, so agents give wrong answers about how to preview the new nav and why a reader sees a variant: - It says a `?<flag>=<variant>` URL override applies only to the page in the URL. Since #53381, the IA nav hook saves the override in `sessionStorage`, so it lasts until the tab closes. - It doesn't mention the layout switch from #53688. The switch saves the reader's pick in `localStorage`, the pick wins over the flag unless the flag is off, and picking a layout clears the saved override. - It says the server always renders `control`. Since #52735, `proxy.ts` server-renders a variant that the URL forces on the docs home and guide pages. - Its hook rules say every variant hook caches in `localStorage`, but the getting-started hook hides its content until the flags load instead. The A/B test for the new nav launched on 2026-12-01, so these questions come up now. Resolves [DOCS-1832](https://linear.app/supabase/issue/DOCS-1832). ## Solution In `.agents/skills/ask-the-docs/reference/feature-flags.md`: - Says the override lasts one page by default, that the IA nav keeps it until the tab closes, and that `?docs-ia-mvp-v1=control` goes back - Describes both pre-flag approaches in the hook rules: cache like the IA nav, or hide until the flags load like getting-started - Updates the exposure rule and gotcha for saved overrides and layout choices - Lists the order the IA nav head script checks, and adds gotchas for the proxy rewrite and the layout switch - Adds a `Verified at` line, after checking every line against `c1330ca99f` In `.agents/skills/ask-the-docs/reference/app-map.md`, the "Layout v2" paragraph now mentions how long the override lasts and the layout switch. Its `Verified at` line stays as is, because only that paragraph was checked. These were checked on supabase.com: the override survives links and reloads and ends with the tab, `?docs-ia-mvp-v1=control` goes back, the layout switch clears the override and saves its pick, the getting-started override reads only the URL, and a forced guide page has the new nav in its server HTML. ## Review category (docs PRs only) - [ ] Critical: needs a review as soon as possible - [ ] Urgent: the feature ships soon, or it's blocking something else - [ ] Moderate: good to have soon, not urgent - [x] Low: get to it when you can ## Review instructions 1. Read the diff of `feature-flags.md` and the "Layout v2" paragraph in `app-map.md` 2. Compare the override and layout claims with `apps/docs/features/IaNav/useIaNavVariant.ts`, `layoutChoice.ts`, and `IA_NAV_CACHE_SCRIPT` in `constants.ts` 3. Compare the server-render gotcha with `forcedVariantRewrite` in `apps/docs/proxy.ts` 4. Compare the hook rules with `apps/docs/features/getting-started/useGettingStartedVariant.ts` ## 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) |
||
|
|
59cddd41a9 |
feat(studio): group database access settings (#54350)
> [!WARNING] > This PR relies on #54282 being merged first. ## Problem Database password and token access appear as separate sections in Database Settings, although both control connections to Postgres. ## Solution Group the existing controls under **Database access**, with **Password access** first and the switch beside **Token access**. Nest **Members** inside the Token access card and label its action **Add member**. Preserve the existing feature gates, permissions, toggle behaviour, dialogs and section anchors. Use shared card headings for Members, centre the token switch beside its description, and darken the Members table header. Update the matching token-access and password-reset docs instructions. ```text Database access ├── Password access └── Token access [switch] └── Members [Add member] ``` | After | | --- | | <img width="735" height="818" alt="CleanShot 2026-12-01 at 15 56 50" src="https://github.com/user-attachments/assets/f1207a2f-80d5-480a-9529-e110b960f427" /> | | _App [token] access coming separately in https://github.com/supabase/supabase/pull/53917._ | ## Review instructions 1. Open a project's **Database → Settings** page. Check that **Database access** contains **Password access** first, with the existing **Reset database password** button. 2. With the database token access preview enabled, check that **Token access** has its switch on the same row and **Members** appears inside the same card when enabled. Check that **Add member** opens the existing access rule sheet. 3. Check the existing enable confirmation and password reset dialog. Projects requiring SSL enforcement or a Postgres upgrade should keep their existing notices and actions. |
||
|
|
30a1b38da0 |
feat(studio): rename temporary access to database token access (#54282)
## Problem The database access preview still uses “Temporary access” across its settings and member rules. ## Solution Use “Database token access” for the feature and “Member access” for member rules. Update the preview, settings, dialogs, feedback, member status messages and docs together. Move the guide to `/guides/platform/token-access`, permanently redirect the old URL, and preserve existing section anchors. ## Review instructions 1. Open [the Studio preview](https://studio-staging-git-dnywh-database-token-access-naming-supabase.vercel.app), then Feature previews and find **Database token access**. Enable the preview for a supported project, then open [Database Settings](https://studio-staging-git-dnywh-database-token-access-naming-supabase.vercel.app/project/_/database/settings). 2. Check the **Database token access** heading, **Allow token access** switch and **Member access** table. Open **Add rule** and an existing rule to check the sheet titles. Open a rule’s delete confirmation and cancel it. 3. With an assigned role, check the access status above the member table. As a member without management permission, check the access notice uses the same feature name. 4. Open the [database token access guide in the docs preview](https://docs-git-dnywh-database-token-access-naming-supabase.vercel.app/docs/guides/platform/token-access). Check the guide and navigation use the new name, the dashboard instructions match Studio, and the existing section links from the member guide still work. Open `/docs/guides/platform/temporary-access` and its `.md` variant to check they permanently redirect to the new URLs. | Before | After | | --- | --- | | <img width="726" height="367" alt="CleanShot 2026-11-30 at 16 06 00" src="https://github.com/user-attachments/assets/be351f0c-d578-4289-8785-5c4e69a254a7" /> | <img width="729" height="374" alt="CleanShot 2026-11-30 at 16 05 38" src="https://github.com/user-attachments/assets/f02b470d-ef1a-4b6c-bdbb-20fe10b847c6" /> | |
||
|
|
fcfcd2e30b |
Add Duncan Lutz to humans.txt (#54439)
## Problem The team list in humans.txt is missing a new team member. ## Solution Adds Duncan Lutz to the team list in apps/docs/public/humans.txt, in alphabetical order. ## How to verify Open https://docs-git-duncanlutz-humans-txt-supabase.vercel.app/humans.txt and confirm "Duncan Lutz" appears. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) |
||
|
|
c1330ca99f |
ci(docs): scan every docs guide for accessibility issues daily (#54339)
## Problem Since #53899, Docs E2E skips the accessibility scan on every CI run, because the scan is slow and only covers the pages a diff names. Nothing checks docs accessibility automatically, and a change to a shared component can break pages that no pull request lists. ## Solution A new **Docs Accessibility Scan** workflow scans every MDX guide on production once a day. - `.github/workflows/docs-a11y-scan.yml` runs `pnpm e2e:docs:all --grep @a11y` against `https://supabase.com` at 05:17 UTC, off the top of the hour when GitHub can delay or drop scheduled runs, and on demand through `workflow_dispatch`. Its concurrency group includes the ref, so a manual run on a branch can't cancel the scheduled run on `master`. It uploads the Playwright report when the scan fails. - `docs-master-alert.yml` now watches the new workflow, so a failed run posts to the docs alerts Slack channel the same way the Production Smoke Tests do. - The shared alert no longer names the latest `master` commit and its author. That commit often didn't cause the failure: a scheduled or manual run tests whatever is deployed, and a workflow that was already failing keeps failing on later commits. The alert now names the workflow, says whether a push, schedule, or manual run failed, and links the run. This applies to every workflow the alert watches. - The scope resolver skips guides that `static-redirects.json` sends elsewhere, in both the pull request scope and the full run. A redirected guide has no docs article to scan, so it could never pass. Today that's only `getting-started/features`. Docs E2E's sparse checkout now includes `apps/docs/lib/redirects` so the resolver can read the file. One helper lists every guide with no docs article to test (nav-disabled and redirected), and both resolvers use it. - The README says where and when the scans run, which checks fail the scan, and how to start one by hand. It also lists guides with no MDX file, such as the CLI and self-hosting config pages, as a known limitation: the full run only resolves MDX guides, so the scan skips them. The full run doesn't need sharding. A list over 20 pages already runs on 3 workers, and the whole site took 15.3 minutes against production, inside the job's 45-minute timeout. ## Known failures A full run against production on 2026-11-30 failed on 5 guides with real accessibility issues: 4 `duplicate-id` and 1 `heading-order`. Until [DOCS-1817](https://linear.app/supabase/issue/DOCS-1817/fix-the-accessibility-issues-the-daily-docs-scan-finds-on-5-guides) fixes them, each daily run fails and posts an alert. ## Follow-ups - [DOCS-1831](https://linear.app/supabase/issue/DOCS-1831/trace-each-docs-accessibility-scan-failure-to-the-commit-that): keep a list of open failures in every docs alert, each with the commit that introduced it, or its possible commits marked unconfirmed. ## Review instructions 1. Run `pnpm -C e2e/docs test` and confirm all 15 tests pass, including the two redirect tests. 2. Confirm a change to a redirected guide resolves to no pages: ```bash printf 'apps/docs/content/guides/getting-started/features.mdx\n' | pnpm -C e2e/docs resolve-docs-scope ``` Expect `skip=true`. 3. Run the scan the way the workflow does, on one passing guide and one guide from DOCS-1817: ```bash cd e2e/docs && PLAYWRIGHT_BASE_URL=https://supabase.com DOCS_E2E_PAGE_PATHS=/docs/guides/auth,/docs/guides/resources pnpm exec playwright test --grep @a11y ``` Expect `/docs/guides/auth` to pass and `/docs/guides/resources` to fail on `heading-order`. 4. Check the alert payload. Copy the `run` script from `docs-master-alert.yml`, replace the `curl` call with `echo "$PAYLOAD"`, and run it with `TRIGGER` set to `push`, then `schedule`. Expect no commit or author in either, and the run type in the workflow line. 5. After merge, start the workflow with `gh workflow run docs-a11y-scan.yml` and confirm it finishes in about 15 to 20 minutes. Verified locally: unit tests, mutation probes on both redirect tests, typecheck, actionlint on the changed workflows, the alert payload for push, scheduled, and manual runs, the resolver on a sparse checkout like the workflow's, and a full-site scan against production. A scheduled workflow only runs from `master`, so the workflow itself hasn't run on GitHub yet. Resolves [DOCS-1816](https://linear.app/supabase/issue/DOCS-1816/run-the-docs-e2e-accessibility-scan-on-a-schedule-across-the-whole) Resolves [DOCS-1826](https://linear.app/supabase/issue/DOCS-1826/word-docs-slack-alerts-for-scheduled-workflow-failures-without-blaming) ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) |
||
|
|
a310db593b |
[FE-5262] ci: run UI Tests on PRs into release (#54440)
The `release` ruleset requires the `test (1)` check, but `ui-tests.yml` only triggers on PRs into `master`, so every PR into `release` stays blocked waiting for a check that never reports (e.g. #54438). Adds `release` to the `pull_request` branch filter in `ui-tests.yml`. Follow-up to #54416, which did the same for typecheck, format and Docs E2E. This was the last required check missing on `release`. Resolves FE-5262 |
||
|
|
b610d677c5 |
feat(www): lw16 launch week rewrite (#54315)
## Problem - supabase.com/launch-week shows the lw15 page, and the lw16 card app runs as a separate vercel app - a forward rule for all of `/launch-week/*` also covers the www pages of past launch weeks, and www does not add its security headers to forwarded paths ## Solution - moves the lw15 page to `/launch-week/15` - adds rewrites that forward `/launch-week` and its other paths to the lw16 card app at `launch-week-16.vercel.app/launch-week/` - changes the root rule to target `/launch-week/` directly because www removes the trailing slash and the app adds it, a loop otherwise - keeps `/launch-week/7`, `/8`, `/15`, `/ticket` and `/tickets/*` on www with the www security headers - adds the launch week paths to the security header tests - adds `/launch-week` to the paths that the redirect checks leave to other apps ## Preview links | Site | Live | Preview | Search for | | ---- | ---- | ------- | ---------- | | WWW | [/launch-week](https://supabase.com/launch-week) | [/launch-week](https://zone-www-dot-com-git-antlio-lw16-launch-week-rewrite-supabase.vercel.app/launch-week) | Claim your card | | WWW | [/launch-week/15](https://supabase.com/launch-week/15) | [/launch-week/15](https://zone-www-dot-com-git-antlio-lw16-launch-week-rewrite-supabase.vercel.app/launch-week/15) | Launch Week 15 | ## Review instructions 1. run `pnpm --filter www exec vitest run lib/security-headers.test.ts` and make sure that all tests pass 2. open the preview [/launch-week](https://zone-www-dot-com-git-antlio-lw16-launch-week-rewrite-supabase.vercel.app/launch-week) and make sure that the lw16 card page loads with no redirect loop 3. open the preview [/launch-week/](https://zone-www-dot-com-git-antlio-lw16-launch-week-rewrite-supabase.vercel.app/launch-week/) and make sure that www redirects it to `/launch-week` once ## 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) |
||
|
|
ba86e23d63 |
fix: restore Studio Braintrust evals in CI (#54345)
## Problem Our workflow sets `package_manager: pnpm`, which tells the Braintrust action to run `pnpm dlx braintrust eval`. That command fetches the latest `braintrust` package. Braintrust 4.0 dropped the bundled CLI, and the [eval job now fails with `ERR_PNPM_DLX_NO_BIN`](https://github.com/supabase/supabase/actions/runs/46545460526). ## Solution ```diff - package_manager: pnpm + package_manager: npm ``` The new setting launches the CLI from Studio’s frozen pnpm install. [Action source](https://github.com/braintrustdata/eval-action/blob/c0dd75b29984a0cc63a827d6e8da2f23f2752be4/eval/src/braintrust.ts#L78-L116) The action’s latest release, v2.1.0, still hardcodes `pnpm dlx braintrust` in pnpm mode. The `npm` setting is a workaround to restore CI now. We’ve asked Braintrust whether pnpm mode can use the project’s installed CLI. [v2.1.0 source](https://github.com/braintrustdata/eval-action/blob/ed007eb24e933007a4079bd56643bc72d3cb016f/eval/src/braintrust.ts#L147-L154) ## Review instructions The [PR workflow](https://github.com/supabase/supabase/actions/runs/46563640999) passed and posted the [Assistant eval summary](https://github.com/supabase/supabase/pull/54345#issuecomment-7299032048). Locally, `npx` also found the Assistant eval using Studio’s installed CLI with npm offline. |
||
|
|
dd15ef008c |
chore(docs): add Lauren Godfrey to humans.txt (#54435)
## Problem The team list in `humans.txt` is missing a new team member. ## Solution Adds Lauren Godfrey to the team list in `apps/docs/public/humans.txt`, in alphabetical order. ## How to verify 1. Open https://docs-git-tedd-add-lauren-godfrey-humans-supabase.vercel.app/humans.txt and confirm "Lauren Godfrey" appears between "Laura C" and "Laurence Isla". ## Checks Static text file only, so no typecheck, lint, or tests apply. `git diff` shows a single added line. ## Checklist - [x] I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) guide - [ ] I have checked that the change works in the preview deployment Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
45b5235705 |
docs: pass Postgres Changes eval (#54332)
Closes DOCS-1815 ## Problem The Postgres Changes page is failing. The reason is this: The Postgres Changes quick start sets up the `anon` role only. A reader who secures the table for signed-in users gets no events and no error. The publication step and replica identity sit in separate sections, so a reader can miss either. I have verified that this change fixes the issue in the Eval. This additionally breaks out many unused Eval lines into another topic. ## Solution - **Prepare a table:** a new section that lists the three requirements, how to set each, and what a reader sees without it. - **Signed-in users:** a policy that sends each user only their own rows. - **Filters page:** the operator reference moves to its own page. `#available-filters` still resolves. - **Corrections:** the publication step names `todos`, and the old record section says what `UPDATE` and `DELETE` carry. - **Style and structure:** imperative headings, a description, and Next steps. | Site | Live | Preview | Search for | | ---- | ---- | ------- | ---------- | | Docs | [/docs/guides/realtime/postgres-changes](https://supabase.com/docs/guides/realtime/postgres-changes) | [/docs/guides/realtime/postgres-changes](https://docs-git-docs-realtime-table-requirements-supabase.vercel.app/docs/guides/realtime/postgres-changes) | Prepare a table | | Docs | New page | [/docs/guides/realtime/postgres-changes-filters](https://docs-git-docs-realtime-table-requirements-supabase.vercel.app/docs/guides/realtime/postgres-changes-filters) | Combining filters with `AND` | ## Manual testing 1. Open the preview of `/docs/guides/realtime/postgres-changes` and go to **Prepare a table**. The table lists three requirements. 2. Open `/docs/guides/realtime/postgres-changes#receiving-old-records`. The page lands on **Receive old records**. 3. In the sidebar, click **Postgres Changes filters**. The page lists all 13 operators. |
||
|
|
6ac0f3f231 |
fix(docs): include request bodies in the Management API markdown reference (#54343)
## Problem Agents can't find request body fields for Management API endpoints. In an eval for the access control guide ([DOCS-1489](https://linear.app/supabase/issue/DOCS-1489)), an agent read the [Create organization invitations](https://supabase.com/docs/reference/api/v2-create-organization-invitations) page and concluded the body accepts only an email. It refused to invite someone scoped to one project, even though the API accepts `role` and `projects`. Reference pages have no `.md` version. Their markdown 404 points agents to the markdown reference (`llms/api.txt`), which lists path and query parameters but no request body for any endpoint. Resolves part of [DOCS-1823](https://linear.app/supabase/issue/DOCS-1823). ## Solution Each endpoint with a request body gets a **Request body** section in the markdown reference. It lists every field as a nested list with its type, whether it's required, its description, accepted values, defaults, and constraints. Unions list each option by name, and map-like objects show the shape of their values. This changes only the generated markdown. Reference pages render the same as before. Reference pages don't have their own `.md` versions yet. That's tracked in [DOCS-1332](https://linear.app/supabase/issue/DOCS-1332). The new renderer takes one endpoint's request body and returns markdown, so a per-page generator can reuse it. ## Follow-ups - **Reference page HTML (rest of DOCS-1823):** nested schema fields still reach the HTML only after someone opens their control. Moving these controls to native `<details>` also needs three fixes found in review: - A union option puts an `<li>` inside another `<li>`, which breaks the list once the content is in the HTML. - The **Items** control for an array of union items, such as the notebook `cells` array, opens an empty panel. - The new summary styles repeat the current trigger's styles. They should share one base. - **Parameters:** path and query parameters still use the older one-line format, so their accepted values don't appear in the markdown reference. For example, `continent` on the available regions endpoint lists no values. - **Shared schema helpers:** the renderer copies `asSchemaArray` from `Reference.ui.tsx` and adds its own schema type. Sharing both through `Reference.api.utils.ts` keeps the HTML and the markdown in step. ## Review category (docs PRs only) - [ ] Critical: needs a review as soon as possible - [ ] Urgent: the feature ships soon, or it's blocking something else - [x] Moderate: good to have soon, not urgent - [ ] Low: get to it when you can ## Review instructions 1. Open the [Management API markdown reference on the preview](https://docs-git-alexisa-docs-1823-supabase.vercel.app/docs/markdown/reference/api.md). On production, the same file is served at `/llms/api.txt`. 2. Under **Creates organization invitations**, see the **Request body** section with `data`, `type`, `attributes`, `email`, `role`, `projects`, and `require_sso`. 3. Under **Assign or change an organization member role**, see `data.attributes.role` and `projects`. ## 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) |
||
|
|
58b468916c |
docs(auth): Solve eval for Anonymous sign-in page (#53489)
Closes DOCS-1676 ## Problem The drafted Eval for this guide has one failing check. This PR fixes that check and also runs the `edit-the-docs` and `test-the-docs` skill to improve the page as a whole. The Anonymous Sign-Ins guide tells readers to check the `is_anonymous` JWT claim in RLS policies. When a guest links an email, phone, or OAuth identity, the user becomes permanent at once, but the token the client holds keeps `is_anonymous: true` until it refreshes. A policy on the claim refuses that new customer with `42501` until then. ## What changed - **Access control:** a caution on the stale claim, and a policy that reads `auth.users.is_anonymous` through a `security definer` function in a non-exposed schema with `search_path = ''`. - **Convert an anonymous user:** a "Refresh the session after linking" step with `refreshSession()`. - **Whole-page edit**, one commit per change type: - Style: wording, word list, sentence-case and imperative headings, no time-anchored text. - Structure (moves only): Access control before Convert, identity conflicts under Convert, the Next.js caution under Sign in. - Technical: the `anon` key uses the `anon` role, not `anonymous`; the opening caution no longer says to check the JWT claim; the existing-account sample throws instead of a top-level `return`. Renamed headings with no inbound links: Resolving identity conflicts, Linking an anonymous user to an existing account, Automatic cleanup. `#access-control` (Studio) and `#link-an-email--phone-identity` are unchanged. ## Eval on the preview `build-docs-016-auth-anonymous` with `REFERENCE` pointed at the preview, 3 runs ([workflow run](https://github.com/supabase/evals/actions/runs/43983385855)). | Run | Score | Guest who just made an account can post a review | Failed check | | --- | --- | --- | --- | | Baseline (published page) | 9/10 in all 3 runs | Fail in all 3 | Guest who just made an account can post a review | | 1 | 10/10 | Pass | None | | 2 | 9/10 | Pass | Agent read the guide | | 3 | 9/10 | Pass | Agent read the guide | All 3 runs fetched the preview and wrote the `security definer` policy. The guide-read check only counts fetches from `supabase.com`, so it can't pass on a preview. Run 1 passed it because that agent also opened the published page. ## Manual testing 1. Open the [Anonymous sign-ins preview](https://docs-git-docs-anonymous-claim-refresh-supabase.vercel.app/docs/guides/auth/auth-anonymous). 2. Check the new caution and function example under **Access control**, and the new **Refresh the session after linking** section. 3. Click the anchor links between the two sections and to the RLS guide. |
||
|
|
7c57f91538 |
docs: Solve eval for Enable email OTP (#54327)
## Problem
The passwordless email guide says to add `{{ .Token }}` to the **Magic
link or OTP** template to send a code. When email confirmations are on,
a first-time sign-in sends the **Confirm sign up** email instead, so new
users still get a link. This is the failure the passwordless email guide
eval catches.
Closes DOCS-1814
## Solution
This PR solves the Eval checks.
**Enable email OTP** now covers both templates:
- It says which template each user gets.
- It has you add `{{ .Token }}` to both **Magic link or OTP** and
**Confirm sign up**.
- It notes that a link left in either template still works.
The rest of the PR is style, structure, and template changes. Existing
anchors still resolve.
## Manual testing
1. Open the [preview
page](https://docs-git-docs-email-otp-confirm-signup-supabase.vercel.app/docs/guides/auth/auth-email-passwordless#enabling-email-otp)
and check that it lands on **Enable email OTP**.
2. Click the **Magic link or OTP** and **Confirm sign up** template
links and check that each opens its template in the dashboard.
|
||
|
|
4d9726da1c |
feat(docs): add last-modified dates to the docs sitemap (#54329)
Closes DOCS-1753 ## Problem Guide pages already show a "Last updated" date (supabase/supabase#52421), but `sitemap.xml` has no `<lastmod>`, so crawlers get no recency signal. ## Solution - Guide entries in `sitemap.xml` now include `<lastmod>`. The date comes from the same `last_changed` table as the on-page date: the newest `last_updated` across a page's sections, written as an ISO 8601 timestamp. - The paginated `last_changed` read moved from `lib/last-changed.ts` into `lib/last-changed.utils.ts`. The new module has no `server-only` import, so the `tsx` sitemap script can share it. `getGuideLastUpdated` behaves the same, including its timeout, cooldown, and Sentry reporting. - When `NEXT_PUBLIC_SUPABASE_URL` or `SUPABASE_SECRET_KEY` is missing, or the read fails, the script logs a warning and writes the sitemap without `<lastmod>`. Local and preview builds still succeed. - `build:sitemap` in `apps/docs/turbo.jsonc` is now uncached and passes the two credentials through. The dates change nightly, outside the task's inputs, so a cache hit could otherwise restore stale dates. The task is cheap, and its dependencies stay cached. - Reference pages don't get `<lastmod>` because `last_changed` only tracks guides. - `sitemap.md` (marked TBD in the issue) is out of scope. ## Review instructions | Preview | Link | | --- | --- | | Docs sitemap | https://docs-git-claude-compassionate-dirac-ns0vjr-supabase.vercel.app/docs/sitemap.xml | | Docs app | https://docs-git-claude-compassionate-dirac-ns0vjr-supabase.vercel.app/docs | 1. Check the `build:sitemap` step in the Vercel build log. It should print `Total of N pages in sitemap (M with last-modified dates)`, where M is greater than 0. 2. In the preview deploy, open `/docs/sitemap.xml` and confirm that guide entries have `<lastmod>` values matching the "Last updated" date on those pages. 3. Optional local check: run `pnpm -F docs build:sitemap` without credentials. You should see the warning, and the sitemap should have no `<lastmod>` entries. Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
51fa9b8e8d |
docs: mark C# and Kotlin SDKs as official (#54429)
## Problem The C# and Kotlin client libraries are now official Supabase SDKs. Several places in the docs and README still call them community libraries. ## Solution - **Client libraries page**: move Kotlin from "Community libraries" to "Official libraries". C# was already listed as official. - **Kotlin reference intros (v1, v2, v3)**: replace the "not an official library" note with a note that supabase-kt is official. The thanks to the original maintainer and contributors stays. - **Docs nav**: drop the `community: true` flag on the Kotlin entry in both nav configs. - **Getting Started stepper**: remove the "Community SDK" badge and the `isCommunity` field, which only Kotlin used. - **README**: move the C# and Kotlin rows into the Official section. - Point supabase-kt links in the changed spots at `supabase/supabase-kt`. Not changed: - Links to repos still in the `supabase-community` org (for example `postgrest-csharp` and `gotrue-csharp`) and old release-note issue links. - `guides/getting-started/features.mdx`. It redirects to `/features`, so the docs app never serves it. - The v4 Kotlin note that credits the community for creating supabase-kt. It's a thank-you, not a claim that the SDK is unofficial. ## Review category (docs PRs only) - [ ] Critical: needs a review as soon as possible - [ ] Urgent: the feature ships soon, or it's blocking something else - [x] Moderate: good to have soon, not urgent - [ ] Low: get to it when you can ## Review instructions 1. Open `/docs/guides/api/rest/client-libs` and check that Kotlin is in the official table. 2. Open `/docs/reference/kotlin/introduction` and check that the note no longer says the library is unofficial. 3. Open the docs nav reference menu and check that Kotlin has no community marker. 4. Open the Getting Started page, pick the Kotlin quickstart, and check that no "Community SDK" badge shows. 5. Check the README client libraries table. ## 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) |
||
|
|
9447067a51 |
feat: Add Security topic (#54423)
## Problem Security team needs a new topics/category to host their troubleshooting content. ## Solution Create a topic about Security. <!-- ## 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 category (docs PRs only) <!-- If this PR changes docs and you're on the Supabase team, select one category. PRs from forks are always reviewed as Low, so you can skip this section. --> - [ ] Critical: needs a review as soon as possible - [ ] Urgent: the feature ships soon, or it's blocking something else - [x] Moderate: good to have soon, not urgent - [ ] Low: get to it when you can ## Review instructions Nothing to test yet, since there's no content poured, project will ignore empty topics. ## 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) |
||
|
|
fd01db4691 |
feat(www): send pageview and global crash metrics on preview (#54425)
## Problem Studio sends pageview and global crash counters to the frontend metrics endpoint on non-production deployments (#54331), and docs is getting the same in #54424. The marketing site sends neither. ## Solution Port the same implementation to `apps/www`: - **Gate**: the existing `IS_PREVIEW` constant (`NEXT_PUBLIC_VERCEL_ENV === 'preview'`). Nothing is sent in production or local dev. - **Sender**: `lib/frontend-metrics.ts`, the same fire-and-forget `text/plain` POST as Studio, tagged `app: 'www'`. - **Pageview**: `usePageviewMetric` sends one count on hydration and on each pathname change, and skips while the pathname is not yet available. It is mounted once per router: through a small client component in `app/layout.tsx`, and directly in `pages/_app.tsx`. A page is served by only one router, so it is never mounted twice. - **Crash**: `app/global-error.tsx` sends one `global_crash` per error object. `pages/_error.tsx` sends one when the status code is unset or 5xx, so 404s and other 4xx responses are not counted. No CSP change is needed because www does not set a Content-Security-Policy. No turbo change is needed because the www build env already passes `NEXT_PUBLIC_*`. ## Additional context `app/global-error.tsx`, `pages/_error.tsx`, and `lib/frontend-metrics.ts` use relative imports because the `sentry-browser` vitest project, which renders the two error files, has no path-alias resolution. ## Review instructions 1. Open the www preview deployment for this PR with the network tab open. 2. Load an app-router page and a pages-router page. Confirm each sends one POST to the metrics endpoint with `metric_name: "pageview"` and `app: "www"`. 3. Navigate client-side and confirm one more POST per pathname change. 4. In `apps/www`, run `pnpm exec vitest run lib/frontend-metrics.test.ts hooks/usePageviewMetric.test.tsx` and `pnpm exec vitest run --project sentry-browser`. |
||
|
|
b24330e6bc |
docs(storage): fix create role statement in custom roles guide (#53724)
## Problem The first step of the Storage "Custom Roles" guide uses `create role 'manager';`. Role names are identifiers, not string literals, so Postgres rejects it with `syntax error at or near "'manager'"`. Every later step in the guide depends on that role. Closes #53723 ## Solution Remove the single quotes: `create role manager;`. The rest of the page already uses the unquoted name (`grant manager to authenticator;`, `to manager`). ## Review instructions 1. Open the [Custom Roles guide](https://supabase.com/docs/guides/storage/schema/custom-roles) and look at the first SQL block: `create role 'manager';` is a syntax error in Postgres (reproduced with the Postgres parser, see #53723). 2. Open the preview of this PR. The block is now `create role manager;`, which parses, and the following `grant` statements refer to the same unquoted name. 3. Run `pnpm test:prettier`. It passes for this file with the repo's `prettier.config.mjs`. I also parsed every `sql` block under `guides/storage/schema` with the Postgres parser (`libpg-query`). All 7 parse after this change. ## 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). (Not run: this is a one-token correction to an existing SQL statement.) Co-authored-by: Santhosh-x23 <185920429+Santhosh-x23@users.noreply.github.com> Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
34e0361708 |
feat(docs): send pageview and global crash metrics on preview (#54424)
## Problem Studio sends pageview and global crash counters to the frontend metrics endpoint on non-production deployments (#54331). Docs sends neither, so there is no equivalent signal for docs previews. ## Solution Port the Studio implementation to `apps/docs`: - **Gate**: new `IS_PREVIEW` constant, true only on Vercel preview deployments of the hosted platform. It is false in production, local dev, self-hosted, and the Nimbus flavor. Docs has no long-running staging environment, so there is no staging branch in the gate. - **Sender**: `lib/frontend-metrics.ts`, the same fire-and-forget `text/plain` POST as Studio, tagged `app: 'docs'`. - **Pageview**: `usePageviewMetric` sends one count on hydration and on each pathname change. It is mounted from the root layout through a small client component. - **Crash**: `app/error.tsx` and `app/global-error.tsx` each send one `global_crash`. A given error reaches only one of the two boundaries, and a `WeakSet` counts each error object once, so effect re-runs do not double count. - **Nimbus**: docs had no client-readable Nimbus check, so the gate reads `NEXT_PUBLIC_IS_NIMBUS` (same name and semantics as Studio) and the variable is added to the docs build env in `turbo.jsonc`. No CSP change is needed because docs does not set a Content-Security-Policy. ## Additional context `NEXT_PUBLIC_IS_NIMBUS` must be set on the Nimbus docs project for the Nimbus exclusion to take effect. The metrics also require `NEXT_PUBLIC_IS_PLATFORM=true` on preview deployments. ## Review instructions 1. Open the docs preview deployment for this PR with the network tab open. 2. Load any page and confirm one POST to the metrics endpoint with `metric_name: "pageview"` and `app: "docs"`. 3. Navigate to another page client-side and confirm one more POST. Changing only the hash or search params should not send one. 4. Run `pnpm -F docs exec vitest run lib/frontend-metrics.test.ts hooks/usePageviewMetric.test.tsx`. |
||
|
|
b53403e1d7 |
docs(integrations): add Build a Supabase integration guide (#54088)
## Problem The steps to build a Supabase integration are spread across five pages: the Partner Catalog page, creating an OAuth app, OAuth scopes, the partner install flow, and the Management API reference. A partner has no single page that says where to start or what to do next. Linear: DOCS-1720. ## Solution Add one guide, **Build a Supabase integration**, as the first item under **Build Your Own** in the integrations sidebar. It does not repeat the detail on the other pages. It links to them. - **The path at a glance:** two short paths. Partner Catalog: apply, build a landing page, publish. Integration: apply, build the OAuth flow, build the integration, publish. - **Apply to the Partners program**, then **Choose: Partner Catalog or Integration**, a comparison table with wireframe images (SVG, light and dark). - **Partner Catalog: Build your landing page** and **Integration** (build the OAuth flow, build the integration), each with "Build it" cards that link to the top of the existing page. - **Publish:** ask the partner manager to list the partner on the Partner Catalog or the Integrations page. - Removes the redirect from `/docs/guides/integrations/build-a-supabase-integration` to the OAuth guide, so the new page is reachable at that URL. The old `/oauth-scopes` redirect stays. - The progression and card data is in `apps/docs/data/content-listings/build-a-supabase-integration.data.ts`. Not in this PR: edits to the existing pages. The cards link to page tops, so nothing here depends on those edits. ## Please check - The five progression icons are placeholders from the built-in set. New icons are coming. - The table images sit inside table cells with a fixed width. I checked them in the dev server only. - I rendered the page with `pnpm dev` and ran `oxfmt --check` on the changed files. I did not run the docs tests or `build:guides-markdown`. - Two details are unverified: how partners hand their public key to Supabase for a signed redirect, and partner status callbacks. The guide does not describe either. - The Dashboard Integrations tab wireframe is a drawing, not a screenshot. ## Preview links | Site | Live | Preview | Search for | | ---- | ---- | ------- | ---------- | | Docs | [/docs/guides/integrations/build-a-supabase-integration](https://supabase.com/docs/guides/integrations/build-a-supabase-integration) (redirects to the OAuth guide until this merges) | Vercel bot comment | `The path at a glance` | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: John Stokvis <345546350+stokvis-at-supabase@users.noreply.github.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: John Stokvis <johnstokvis@Johns-MacBook-Pro.local> |
||
|
|
d57ff4ea06 |
ci: run typecheck, format and Docs E2E on PRs into release (#54416)
The `release` ruleset requires `typecheck`, `format` and `Docs E2E`, but those workflows only trigger on PRs into `master`, so every PR into `release` sits blocked waiting for checks that never report (e.g. #54413). Adds `release` to the `pull_request` branch filter in `typecheck.yml`, `prettier.yml` and `docs-e2e.yml`. |
||
|
|
07101b6894 |
[FE-3200] chore(studio): lift bundler workarounds and stabilize hooks (#54121)
Cleans up obsolete Rolldown/Vite bundler workarounds from the TanStack Start migration and fixes unstable router selectors and inline default array props that could cause unnecessary re-renders or render loops. Addresses [FE-3200](https://linear.app/supabase/issue/FE-3200/lift-bundler-workarounds-and-fix-latent-issues-next-was-masking). **Removed:** - Emptied `KNOWN_CHUNK_CYCLES` in `apps/studio/vite.config.ts` while keeping the `assertNoChunkCycles` build guard enabled - Removed obsolete `manualChunks` workarounds (`class-variance-authority`, `ui-field`, `ui-drawer`, `ui-form`, `ui-sidebar`, `ui-slider`, `ui-avatar`), keeping the React and `lucide-react` vendor chunks so React stays a single leaf chunk and Lucide does not fan out into per-icon modulepreload requests - Removed the obsolete `sharedDefines` (`global: 'globalThis'`) substitution from `apps/studio/vite.config.ts` **Changed:** - `StudioLink` (`StudioFrameworkProvider.tsx`): split `useRouterState` into primitive `currentPathname` and `currentSearch` selectors instead of returning a fresh object on every router state tick - `useNuqsTanStackRouterAdapter` (`nuqs-tanstack-adapter.tsx`): select a serialized query string key from `useLocation` so `useQueryState` consumers do not re-render when unwatched search params change - `FilterPopover`: replaced inline `[]` defaults for `options` and `activeOptions` with shared `EMPTY_ARR` (`@/lib/void`), and guarded `setSelectedOptions` with an element-wise equality check when closed - `InputWithSuggestions`: replaced inline `[]` default for `suggestions` with shared `EMPTY_ARR` (`@/lib/void`) so `useEffect` does not loop when `suggestions` is omitted at runtime **Added:** - Regression tests covering router selector stability and default-prop render loops in `StudioFrameworkProvider.test.tsx`, `nuqs-tanstack-adapter.test.tsx`, `FilterPopover.test.tsx`, and `InputWithSuggestions.test.tsx` ## To test - Run `pnpm --filter studio run build` and verify the build passes with `KNOWN_CHUNK_CYCLES` empty and `assertNoChunkCycles` enabled - Run the new/updated unit tests in `apps/studio` (`StudioFrameworkProvider.test.tsx`, `nuqs-tanstack-adapter.test.tsx`, `FilterPopover.test.tsx`, `InputWithSuggestions.test.tsx`) - Smoke-test Studio navigation, URL search-param filters (`nuqs`), Table Editor column suggestions, `FilterPopover` interactions, and `/auth/hooks` (confirming no `global` ReferenceError) --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
0cf8b266ff |
fix(studio): tables not showing on mobile (#54412)
## Problem On a mobile device the list of tables in the table editor are not showing: <img width="403" height="702" alt="Screenshot 2026-12-01 at 15 27 07" src="https://github.com/user-attachments/assets/cfb23739-50c8-4997-9d7b-f86ef5375e7d" /> ## Solution Tables are now showing: <img width="403" height="702" alt="Screenshot 2026-12-01 at 15 27 28" src="https://github.com/user-attachments/assets/8bc8c909-b866-4351-83bd-4bee4631cdd8" /> Closes #54400 |
||
|
|
fd5c02f1a0 |
fix(studio): Scoped OAuth apps - improve text for projects with permission issues (#54409)
## Problem When an authorization fails because of permission issues, we currently display _Unavailable_ next to the problematic projects in the project selector list. This is confusing as those projects are available, just not selectable for this authorization ## Solution Display _permission issues_ instead <img width="417" height="601" alt="image" src="https://github.com/user-attachments/assets/331073ac-71e0-45b0-a607-dcbd47268d91" /> |
||
|
|
0252fd8cad |
[FE-5114] (part 7) – refactor(studio): remove Next API adapter (#54034)
## Problem With all Studio API routes migrated to native TanStack Start handlers (or removed when unused) in parts 1–6, the Next Pages Router API adapter and legacy `NextApiRequest`/`NextApiResponse` wrappers are no longer used. Part 7 of 7 for [FE-5114](https://linear.app/supabase/issue/FE-5114/rewrite-api-routes-as-native-tanstack-start-handlers-and-remove-the) tears them down. ## Solution **Removed:** - `compat/next/api.ts` and `compat/next/api.test.ts` (`toWebHandler`) - Legacy `apiWrapper`, `apiAuthenticate`, and `fetchUserClaims` (`NextApiRequest`/`NextApiResponse`) functions and their legacy tests in `lib/api/apiWrapper.ts`, `lib/api/apiAuthenticate.ts`, `lib/api/apiWrappers.test.ts`, and `lib/api/apiAuthenticate.test.ts` - The now-unused `fromNodeHeaders` helper (and its `node:http` import) and its tests in `lib/api/apiHelpers.ts` / `lib/api/apiHelpers.test.ts` **Changed:** - Updated comment in `lib/server/configcat.ts` from `apiAuthenticate` to `authenticateRequest` ## Review instructions 1. Confirm `git grep -E "NextApiRequest|NextApiResponse|compat/next/api|toWebHandler|fromNodeHeaders|from 'next'" apps/studio/` returns no matches. 2. Run `pnpm --filter studio run typecheck`, `pnpm knip --workspace apps/studio`, and `pnpm --filter studio exec vitest run lib/api/ tests/routes/api/ scripts/__tests__/server-source-maps.test.ts`. ## 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: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
ccd691423b |
[FE-5114] (part 6) – refactor(studio): migrate platform storage routes (#54033)
## Problem Studio's `routes/api/platform/storage/**` routes still run legacy Next Pages Router handlers through `compat/next/api.ts`, and `buckets/$id/objects/download.ts` has no remaining callers. Part 6 of 7 for [FE-5114](https://linear.app/supabase/issue/FE-5114/rewrite-api-routes-as-native-tanstack-start-handlers-and-remove-the) migrates the 14 active storage routes to native TanStack Start handlers and removes the unused download route. ## Solution **Changed:** - Migrated 14 `buckets/**` and `vector-buckets/**` routes to `createApiHandlers` and `parseJsonBody` - Replaced the `parseAsInt`/`parseAsString`/`parseAsStringEnum` helpers in `buckets/index.ts` with a zod query schema that drops invalid values, keeping the conditional spreads so unset keys aren't sent to storage-js - Forwarded upstream `StorageError` status codes across all storage and vector-bucket routes via `storageErrorResponse` / `getStorageErrorStatus` (falling back to the route's default 400/500 when no valid HTTP status is present) - Guarded missing/invalid `SUPABASE_PUBLIC_URL` with a `500` error response in `objects/public-url`, `objects/sign`, and `objects/sign-multi` - Typed the `vector-buckets/$id/indexes` POST body from storage-js's `createIndex` options - Corrected stale `Allow` headers on `vector-buckets/$id` (`GET, DELETE`) and `vector-buckets/$id/indexes/$indexName` (`DELETE`) via `createApiHandlers` **Added:** - `lib/api/self-hosted/storage.ts` with `getStorageErrorStatus`, `storageErrorResponse`, `getStoragePublicOrigin`, `missingStoragePublicUrlResponse`, and `remapStoragePublicUrl` - Unit tests for `buckets/index` query parsing, `buckets/$id/objects/sign-multi` (`SUPABASE_PUBLIC_URL` guard, origin remapping, and upstream error status), and `vector-buckets` POST (exercising the real storage client through MSW) **Removed:** - Removed unused `routes/api/platform/storage/$ref/buckets/$id/objects/download.ts` and regenerated `routeTree.gen.ts` **Behavior changes vs master:** - `buckets` GET drops malformed `limit`/`offset`/sort values instead of `parseInt`-truncating them (e.g. `offset=1.5` is ignored rather than sent as `1`) - `vector-buckets` POST validates the body with zod and returns `400` when `bucketName` is missing or not a string - Storage routes forward the upstream HTTP status code from `StorageApiError` instead of hardcoding `400`/`500` - `objects/public-url`, `objects/sign`, and `objects/sign-multi` return a `500` JSON error when `SUPABASE_PUBLIC_URL` is unset or invalid instead of throwing an uncaught `TypeError` - Unused `buckets/$id/objects/download` route has been removed ## Review instructions 1. Run `pnpm --filter studio exec vitest run tests/routes/api/platform/storage/`. 2. On self-hosted Studio, create/list/empty/delete a storage bucket, upload/download/move/sign/delete an object, and check vector bucket operations. ## 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: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
37414c5a61 |
[FE-5114] (part 5) – refactor(studio): migrate platform project routes (#54032)
## Problem Studio's `routes/api/platform/projects/**` routes still run legacy Next Pages Router handlers through `compat/next/api.ts`, and `projects/$ref/config/index.ts` and `projects/$ref/billing/addons.ts` are unused in self-hosted mode. Part 5 of 7 for [FE-5114](https://linear.app/supabase/issue/FE-5114/rewrite-api-routes-as-native-tanstack-start-handlers-and-remove-the) migrates the 19 active project routes to native TanStack Start handlers and removes the 2 unused routes. ## Solution **Changed:** - Migrated 19 project routes — analytics (`endpoints/$name`, `log-drains`, `log-drains/$uuid`), API proxies (`api/graphql`, `api/rest`), content snippets & folders (`content/**`), and config/settings/databases/lints/keys/monitoring routes — to `createApiHandlers` - Preserved FE-5124 fixes on `log-drains/$uuid` (empty-body `204` on `DELETE`, `try`/`catch` + `!response.ok` → `500`); its `Allow: GET, PUT, DELETE` and the previously stale `Allow` on `log-drains` (`GET, POST`) now come from `createApiHandlers` - Forwarded upstream error status and JSON body (falling back to `500` / `{ error: { message } }`) in `api/graphql` and `api/rest` - Parsed the JSON body once in `content/index.ts` `PUT` so the `not found` create fallback does not attempt to re-read the request stream - `content/index.ts` and `content/folders/index.ts` read query params through `getSearchParamsRecord`, so repeated `ids` (and repeated GET params on `content/index`) return `400` as they did with Next's query parsing - `run-lints` forwards headers via `constructHeaders(Object.fromEntries(request.headers))` **Added:** - `getSearchParamsRecord` in `lib/api/apiHelpers.ts`: collects URL search params into a record, mapping repeated keys to arrays so zod string schemas reject them - `folderQueryParamsSchema` and `listFolderContents(request, folderId?)` in `lib/api/snippets.utils.ts`, shared by `content/folders/index` and `content/folders/$id` - `getLogflareConfig()` in `lib/api/self-hosted/logflare.ts`: reads the Logflare env vars at call time (same `500` naming the missing vars) and builds the request URLs and headers for `analytics/log-drains` and `analytics/log-drains/$uuid` - Unit tests for `getSearchParamsRecord`, `analytics/endpoints/$name`, `analytics/log-drains/$uuid`, `content/index`, `content/folders`, and `api/rest` (`HEAD` and upstream error forwarding) **Removed:** - Removed 2 unused routes (`routes/api/platform/projects/$ref/config/index.ts` and `routes/api/platform/projects/$ref/billing/addons.ts`) and regenerated `routeTree.gen.ts` **Behavior changes vs master:** - `analytics/endpoints/$name` GET strips `name` and `ref` from the forwarded query (parity with master, where they arrived as route params in `req.query`) - `content/folders` and `content/folders/$id` GET validate query params and return `400` for invalid or repeated values - `api/graphql` and `api/rest` forward upstream non-OK status codes and error bodies instead of always returning `500` - Unused `projects/$ref/config/index` and `projects/$ref/billing/addons` routes have been removed ## Review instructions 1. Run `pnpm --filter studio exec vitest run lib/api/apiHelpers.test.ts tests/routes/api/platform/projects/`. 2. On self-hosted Studio, create/update/delete a log drain, create/save/delete a SQL snippet and folder, and verify REST/GraphQL API docs load. ## 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: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
975689dcfc |
feat(studio): send pageview and global crash metrics on staging and preview (#54331)
## Problem We need simple counts of every pageview and every global crash for SLO monitoring. These counts need to go to observability ingest, not to Sentry, etc., so they can be part of our Grafana dashboards pipeline. ## Solution - `usePageviewMetric` sends one `pageview` event on first load (hydration) and on every client-side navigation that changes the pathname. Changes to only the query string or hash do not count. - A `global_crash` event is sent once when the global crash screen is shown. That covers both the root `ErrorBoundary` and the root route `errorComponent`. Chunk-load errors that are recovered by an automatic reload are not counted, which matches what is reported to Sentry. - Both are gated by a new `IS_STAGING_OR_PREVIEW` constant. It is false on production, local development, self-hosted and Nimbus. - The request is a fire-and-forget `fetch` with `keepalive: true` and `credentials: 'omit'`. It uses a `text/plain` body, so there is no CORS preflight. Errors are swallowed. - The endpoint origin is added to `connect-src` for all platform environments, because production will need it later. No other CSP directive changes. ## Review instructions 1. Open the Studio preview deployment for this PR with the network panel open. 2. Load any page. See one `POST /api/metrics` request that returns 204. 3. Navigate to another page. See one more request. 4. Change only a query parameter (for example a table filter). See no new request. ## 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) |
||
|
|
be32a941cd |
[FE-5114] (part 4) – refactor(studio): migrate platform auth and misc routes (#54031)
## Problem Studio's `routes/api/platform/auth/**` and platform misc/stub routes still run legacy Next Pages Router handlers through `compat/next/api.ts`, and 4 legacy database/props routes have no callers left. Part 4 of 7 for [FE-5114](https://linear.app/supabase/issue/FE-5114/rewrite-api-routes-as-native-tanstack-start-handlers-and-remove-the) migrates the 16 active routes to native TanStack Start handlers and removes the 4 unused ones. ## Solution **Changed:** - Migrated `platform/auth/$ref/{invite,magiclink,otp,recover}` to one-line `createAuthSenderHandlers` routes, and `users/index`, `users/$id/index`, and `users/$id/factors` to `createApiHandlers`, preserving the FE-5124 fixes (`Promise.all` MFA factor deletion, `code ?? 500` on auth senders, `Allow: PATCH, DELETE` on `users/$id`, now derived by `createApiHandlers`) - Migrated 9 platform misc/stub routes (`deployment-mode`, `integrations/{$slug,github/*}`, `organizations/{index,$slug/billing/subscription}`, `profile/index`, and `telemetry/event`) - Moved the `FETCH_TYPE_BYPASS_EXCEPTIONS` entries for the four sender routes in `eslint.config.cjs` to `lib/api/self-hosted/auth-senders.ts` **Added:** - `createAuthSenderHandlers(endpoint, field)` in `lib/api/self-hosted/auth-senders.ts`: shared POST handler for the self-hosted GoTrue `invite`, `magiclink`, `otp`, and `recover` endpoints (forwards only `email` or `phone`, uses `constructHeaders` with the service role key, and passes upstream errors through with `code ?? 500`) - Regression tests for `auth/$ref/users/$id/factors`, `auth/$ref/users/$id`, and all four auth sender routes **Removed:** - Removed 4 unused routes (`platform/database/$ref/pooling`, `platform/props/org/$slug`, `platform/props/project/$ref/index`, and `platform/props/project/$ref/api`) and regenerated `routeTree.gen.ts` ## Review instructions 1. Run `pnpm --filter studio exec vitest run tests/routes/api/platform/auth/`. 2. On self-hosted Studio, invite/ban/delete a user, remove MFA factors for a user, and confirm `GET /api/platform/auth/default/users/<id>` returns `405` with `Allow: PATCH, DELETE`. ## 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: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
5fb027c28f |
feat(studio): launch week + builder day sign-ins redirect (#54317)
## Problem - dashboard sign-in sends a user back with `router.push(returnTo)`, and the path stays under `/dashboard` - lw16 card app at `/launch-week` (#54315) signs in with `returnTo=/launch-week?claim=1` and the user lands on a 404 at `/dashboard/launch-week?claim=1` - `validateReturnTo` rejects full urls, and the Builder Day site at `/builderday` has the same problem ## Solution - adds `/dashboard/launch-week` and `/dashboard/builderday` pages that load the same path outside the dashboard + keep the query and the hash - adds a test that a query with another address does not change the destination ## Preview links | Site | Live | Preview | Search for | | ---- | ---- | ------- | ---------- | | Studio | [/dashboard/launch-week?claim=1](https://supabase.com/dashboard/launch-week?claim=1) | [/dashboard/launch-week?claim=1](https://studio-git-antlio-studio-launch-week-return-supabase.vercel.app/dashboard/launch-week?claim=1) | the address bar | | Studio | [/dashboard/builderday](https://supabase.com/dashboard/builderday) | [/dashboard/builderday](https://studio-git-antlio-studio-launch-week-return-supabase.vercel.app/dashboard/builderday) | the address bar | ## Review instructions 1. open the preview [/dashboard/launch-week?claim=1](https://studio-git-antlio-studio-launch-week-return-supabase.vercel.app/dashboard/launch-week?claim=1) and make sure that the address changes to `/launch-week?claim=1` outside `/dashboard` 2. open the preview [/dashboard/builderday](https://studio-git-antlio-studio-launch-week-return-supabase.vercel.app/dashboard/builderday) and make sure that the address changes to `/builderday` 3. sign out and open the preview [/dashboard/sign-in?returnTo=%2Flaunch-week%3Fclaim%3D1](https://studio-git-antlio-studio-launch-week-return-supabase.vercel.app/dashboard/sign-in?returnTo=%2Flaunch-week%3Fclaim%3D1) 4. sign in and make sure that the browser ends at `/launch-week?claim=1` 5. sign out, open the preview [/dashboard/sign-in?returnTo=%2Forganizations](https://studio-git-antlio-studio-launch-week-return-supabase.vercel.app/dashboard/sign-in?returnTo=%2Forganizations) and make sure that the sign-in still returns to `/dashboard/organizations` ## 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) --------- Co-authored-by: Dion Zeneli <101271736+Dionysos288@users.noreply.github.com> |
||
|
|
8aaf216d22 |
docs: add Chloe Kavanagh as per onboarding process (#54385)
### Purpose As per onboarding doc- add my name to `humans.txt` file ### Solution Added my name as per instructions ### Review instructions Check that "Chloe Kavanagh" is in the list on the expected position. ### 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) |
||
|
|
c8378a0a32 |
docs: add Aaron Johnson to humans.txt (#54405)
## Problem My name is missing from the team list in `apps/docs/public/humans.txt`. ## Solution Add "Aaron Johnson" to the list. The entry sits after "Aaron Byrne" to keep the list in alphabetical order. ## Review category (docs PRs only) - [ ] Critical: needs a review as soon as possible - [ ] Urgent: the feature ships soon, or it's blocking something else - [ ] Moderate: good to have soon, not urgent - [x] Low: get to it when you can ## Review instructions 1. Open the diff for `apps/docs/public/humans.txt`. 2. Confirm that "Aaron Johnson" appears once, between "Aaron Byrne" and "Adam Howard". ## 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) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
dc4f247e79 |
Revert "chore: update prod api types (#54394)" (#54404)
This reverts commit
|
||
|
|
20a5212c42 |
[FE-5114] (part 3) – refactor(studio): migrate pg-meta and v1 routes (#54030)
## Problem Studio's `routes/api/platform/pg-meta/**` and `routes/api/v1/**` routes still run legacy Next Pages Router handlers through `compat/next/api.ts`, and 10 legacy `pg-meta` GET proxy routes are no longer called anywhere in the repo. Part 3 of 7 for [FE-5114](https://linear.app/supabase/issue/FE-5114/rewrite-api-routes-as-native-tanstack-start-handlers-and-remove-the) migrates the 9 active routes to native TanStack Start handlers and deletes the 10 unused proxy routes. ## Solution **Changed:** - Migrated `platform/pg-meta/$ref/query/index.ts` and all 8 `v1` routes (`api-keys`, `api-keys/$id`, `config/auth/signing-keys/{index,legacy}`, `database/migrations`, `functions/{index,$slug/index}`, `types/typescript`) to `createApiHandlers`; `query` and `database/migrations` share `pgMetaErrorResponse` - Enabled `{ withAuth: true }` on `api-keys`, `api-keys/$id`, and `config/auth/signing-keys/{index,legacy}` for consistency with the other `v1` routes - Updated `api-keys` route tests to use `callRoute` **Added:** - `pgMetaErrorResponse(error)` in `lib/api/self-hosted/pg-meta.ts` (keeps a `PgMetaDatabaseError`'s status and `{ message, formattedError }` payload expected by `data/error-classification.ts`, otherwise `500`) - Unit test for `pg-meta/$ref/query` (`tests/routes/api/platform/pg-meta/$ref/query/index.test.ts`) **Removed:** - Removed all 10 unused `pg-meta` GET proxy routes (`column-privileges`, `extensions`, `foreign-tables`, `materialized-views`, `policies`, `publications`, `tables`, `triggers`, `types`, `views`), removed their `FETCH_TYPE_BYPASS_EXCEPTIONS` entries from `eslint.config.cjs`, and regenerated `routeTree.gen.ts` - Removed `getPgMetaRedirectUrl` (`lib/api/apiHelpers.ts`) and `parseRevealQuery` (`lib/api/self-hosted/api-keys.ts`) **Behavior changes vs master:** - Routes forward only `cookie` and `x-connection-encrypted` to pg-meta via `constructHeaders(Object.fromEntries(request.headers))`, matching what master's adapter forwarded - `database/migrations` GET now forwards headers to `listMigrationVersions` (master passed them as the wrong argument) - `v1/projects/$ref/api-keys*` and `config/auth/signing-keys*` now pass `{ withAuth: true }` (no-op in self-hosted mode; consistent with the other `v1` routes) - The 10 unused `pg-meta` GET proxy routes have been removed (`pg-meta/$ref/query` and `v1/projects/$ref/types/typescript` remain) ## Review instructions 1. Run `pnpm --filter studio exec vitest run tests/routes/api/v1/ tests/routes/api/platform/pg-meta/`. 2. On self-hosted Studio, load tables/views/policies/extensions, run a query in the SQL Editor, check API keys, and generate TypeScript types. ## 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: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
c5fca0a0d7 |
[FE-5114] (part 2) – refactor(studio): migrate AI API routes (#54029)
## Problem Studio's AI API routes under `routes/api/ai/**` still run legacy Next Pages Router handlers through `compat/next/api.ts`. Part 2 of 7 for [FE-5114](https://linear.app/supabase/issue/FE-5114/rewrite-api-routes-as-native-tanstack-start-handlers-and-remove-the) migrates the active AI routes to native TanStack Start (`Request` → `Response`) handlers and drops 3 unused AI endpoints. ## Solution **Changed:** - Migrated 8 active AI routes (`ai/code/complete`, `ai/feedback/{classify,rate}`, and `ai/sql/{check-api-key,cron-v2,filter-v1,generate-v4,title-v2}`) to `createApiHandlers` and `parseJsonBody` - Replaced Node `pipeUIMessageStreamToResponse` in `ai/sql/generate-v4.ts` with native `createUIMessageStreamResponse`, preserving the `x-braintrust-span-id` header - Replaced `req.on`/`res.on` in `ai/sql/generate-v4.ts` with `AbortSignal.any([request.signal, done.signal])` and a `TransformStream` whose `flush`/`cancel` tear down the MCP connection opened in `getTools` on stream completion, cancellation, or setup error - Removed the custom malformed-JSON handling in `ai/code/complete.ts` in favor of the wrapper's `400` - Updated `lib/api/generate-v4.test.ts` to assert against the real native SSE `Response` stream instead of mocking `pipeUIMessageStreamToResponse`, with a shared `mockOpenStream()` helper, a stream-cancellation abort test, and a Braintrust tracing test asserting `x-braintrust-span-id` matches the exported root span - Updated `lib/ai/README.md` to drop references to removed endpoints **Removed:** - Removed 3 unused AI routes (`routes/api/ai/onboarding/design.ts`, `routes/api/ai/sql/parse-client-code.ts`, and `routes/api/ai/sql/policy.ts`), dropped them from `lib/hosted-api-allowlist.ts`, and regenerated `routeTree.gen.ts` - Removed the now-unused `withoutApprovalTools` helper from `lib/ai/tool-filter.ts` and its test from `lib/ai/tool-filter.test.ts` **Behavior changes vs master:** - `ai/code/complete` returns the wrapper's `400` JSON `{ error: { message: 'Invalid JSON' } }` for malformed bodies - Unused `ai/onboarding/design`, `ai/sql/parse-client-code`, and `ai/sql/policy` endpoints have been removed ## Review instructions 1. Run `pnpm --filter studio exec vitest run lib/api/generate-v4.test.ts lib/api/rate.test.ts lib/ai/tool-filter.test.ts`. 2. Send a prompt in the AI Assistant panel, verify streaming output, and cancel mid-stream. 3. Trigger SQL title, cron, and filter generation as well as AI code completion. ## 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: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
a27ef81d2e |
feat(studio): enable advanced V3 deployment for allowlisted organizations (#53158)
## Problem Currently, in production, the Supabase UI doesn't allow for a set of advanced deployment options, that we need to properly test new clusters before getting those into production. ## Solution Allow production dashboard requests to specify an AWS_K8S cluster when the organization is included in the comma-separated `orgsAllowedToUseV3AdvancedDeployment` setting. Limited the exception to cluster placement fields. Preserve existing permissions and cluster validation, require force for cordoned clusters, and keep system requests supported. Default the allowlist to empty. Updated the API descriptions and document ConfigCat setup. ## Review instructions - ## 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) |
||
|
|
431a55435a |
fix(studio): keep the function overview range in logs FE-4973 (#53867)
## Problem An Edge Function’s Overview can show an invocation from two hours ago. Selecting **Open logs** or pressing **O** then **L** opens the function’s Logs page with its default one-hour window, which hides that invocation. ## Fix Both actions now pass the start and end of the selected Overview window to the function’s Logs page. ## How to test 1. Open an Edge Function with invocations in the last three hours and select the three-hour interval on Overview. 2. Select **Open logs**. Check that Logs opens for the same function and the date range spans exactly three hours. If an invocation is older than one hour, confirm it appears in that range. 3. Return to Overview, select three hours again, and press **O** then **L**. Check the same function and time range. Related to [FE-4973](https://linear.app/supabase/issue/FE-4973). ## Verification On the Studio staging preview, both **Open logs** and **O** then **L** opened the same function with the exact Overview timestamps, 13:03:16.960 through 16:03:16.960 UTC. The results included a successful invocation more than one hour before the window ended. All 72 focused Overview and Logs navigation tests passed. Removing the date range from either entry point independently failed its regression assertion. |
||
|
|
b6c391a058 |
[FE-5114] (part 1) – refactor(studio): add native API helpers & routes (#54028)
## Problem Studio's `routes/api/**` server routes still run legacy Next Pages Router handlers through the `toWebHandler` shim in `compat/next/api.ts`. Part 1 of 7 for [FE-5114](https://linear.app/supabase/issue/FE-5114/rewrite-api-routes-as-native-tanstack-start-handlers-and-remove-the) adds native TanStack Start (`Request` → `Response`) helpers and migrates the top-level utility routes so we can remove the adapter at the end of the stack. ## Solution **Added:** - `createApiHandlers` in `lib/api/apiWrapper.ts`: wraps native TanStack Start route handlers with optional platform JWT auth, JSON `400` (`{ error: { message: 'Invalid JSON' } }`) on `InvalidJsonError`, Sentry capture + generic `500` on unexpected throws, and an `ANY` handler that returns `405` with an `Allow` header derived from the registered methods. Exports `ApiHandler` / `ApiHandlerContext` (`params` is `Record<string, string>`) - `authenticateRequest` in `lib/api/apiAuthenticate.ts` (Web `Request` counterpart of `apiAuthenticate`, same error messages) - `InvalidJsonError` and `parseJsonBody` in `lib/api/apiHelpers.ts` - `callRoute(route, request, params)` test helper in `tests/lib/server-route.ts` - Unit tests for `createApiHandlers` (exercising real `authenticateRequest` through MSW in `lib/api/createApiHandlers.test.ts`), `authenticateRequest`, `parseJsonBody`, `/api/generate-attachment-url`, and `/api/integrations/stripe-sync` **Changed:** - Updated `getRouteHandler` in `tests/lib/server-route.ts` to mirror TanStack Start's `HEAD` → `GET` → `ANY` dispatch order - Migrated 11 top-level API routes (`check-cname`, `cli-release-version`, `content/graphql`, `edge-functions/test`, `enabled-features-overrides`, `generate-attachment-url`, `get-deployment-commit`, `get-ip-address`, `get-s3-keys`, `get-utc-time`, `integrations/stripe-sync`) to native handlers - Added `withAuth: true` to `check-cname`, `content/graphql`, and `integrations/stripe-sync`, and updated `check-cname-mutation.ts` and `data/graphql/execute.ts` to attach `constructHeaders()` - Reused `withAuth` `claims` in `generate-attachment-url` to avoid a duplicate GoTrue lookup in platform mode - Converted `tests/routes/api/get-deployment-commit.test.ts` to `callRoute` **Removed:** - Removed 2 unused routes (`routes/api/connect/index.ts` and `routes/api/parse-query.ts`), dropped `/parse-query` from `lib/hosted-api-allowlist.ts`, removed Nitro's `traceDeps: ['libpg-query*']` in `vite.config.ts` (no server runtime route imports `libpg-query` anymore), and regenerated `routeTree.gen.ts` **Behavior changes vs master:** - Methods a route doesn't register now get a JSON `405` with an `Allow` header (previously they fell through to the SSR app). `HEAD` requests that TanStack Start dispatches to a `GET` handler also get `405`, matching master's method switches - `InvalidJsonError` returns JSON `{ error: { message: 'Invalid JSON' } }` (`400`) instead of plain text - `check-cname`, `content/graphql`, and `integrations/stripe-sync` now verify the platform JWT via `withAuth: true` - Unexpected throws return a generic `500` with `{ error: { message: 'Internal Server Error' } }` - Unused `/api/connect` and `/api/parse-query` routes have been removed ## Review instructions 1. Run `pnpm --filter studio exec vitest run lib/api/apiAuthenticate.test.ts lib/api/apiHelpers.test.ts lib/api/apiWrappers.test.ts lib/api/createApiHandlers.test.ts tests/routes/api/ scripts/__tests__/server-source-maps.test.ts`. 2. Smoke-test `/api/get-deployment-commit`, `/api/check-cname`, `/api/content/graphql`, `/api/generate-attachment-url`, and `/api/edge-functions/test` in Studio and confirm unsupported HTTP methods return `405` with an `Allow` header. ## 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: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
cebd7a5eba |
docs(ref): add Kotlin v4 alpha reference (#54384)
## This PR - Adds a v4 alpha reference for Kotlin at `/reference/kotlin/v4`, using the prerelease flag from #53896. - v3 stays the default at `/reference/kotlin`. v4 shows the alpha notice and is listed under "Prereleases" in the version menu. - `spec/supabase_kt_v4.yml` is the v3 spec with links updated to `supabase/supabase-kt`. The API is the same in v4. - New `introduction`, `installing` (with `io.supabase` coordinates) and `upgrade-guide` pages under `docs/ref/kotlin/v4/`. ## Why - supabase-kt `4.0.0-alpha-1` is on Maven Central. It's the first official release of the Kotlin SDK and moves it to the `io.supabase` Maven group and package. The current reference only shows the v3 coordinates. ## Note - Guides, quickstarts and the existing v3 pages are unchanged. They switch to `io.supabase` with the stable 4.0.0 release. - Search doesn't index prerelease versions yet, same as Swift v3. - I didn't run the docs build locally. Please check `/docs/reference/kotlin/v4` and `/docs/reference/kotlin/v4/upgrade-guide` on the preview. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Safa <4990386+safaorhan@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |