mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
bot/decrease-eslint-ratchet-baselines
22209
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
b2e8cb07a4 |
fix: horizontal overflow on /solutions/no-code mobile view (#47913)
## Problem Prompt cards on /solutions/no-code caused horizontal page scroll on mobile. Flex/grid children don't shrink below content size by default, so long card titles and content pushed cards past the viewport width. ## Fix Added `min-w-0` to the card container and title in `TwoColumnsSection.tsx` so cards respect their grid/flex track width instead of growing with content. ## Screenshots | Before | After | |--------|-------| | <img src="https://github.com/user-attachments/assets/069fa434-c202-4761-ab25-0eaf5f71b434" width="300" /> | <img src="https://github.com/user-attachments/assets/2478bd84-1361-46e9-a076-4148b0c38706" width="300" /> | <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Improved code snippet layout in two-column sections by allowing the snippet container to shrink within its column. This helps prevent the container from forcing the surrounding layout wider when space is limited, keeping the section more consistent across narrow and wider layouts. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com> Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
cf822303b8 |
fix: footer social links open in new tab with security attributes (#45362)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES --- ## What kind of change does this PR introduce? Bug fix --- ## What is the current behavior? Footer social links (X, GitHub, Discord, YouTube, TikTok, Instagram) open in the same tab, navigating users away from the Supabase website. Issue: https://github.com/supabase/supabase/issues/45342 --- ## What is the new behavior? Footer social links now open in a new tab while keeping the Supabase website open. Added: * `target="_blank"` * `rel="noopener noreferrer"` to all external social links in the footer. --- ## Additional context This change improves: * User experience (users don’t lose their current page) * Security (prevents reverse tabnabbing via `window.opener`) Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
5912394ffc |
chore(studio): improve object versioning feature preview (#52689)
Improve copywriting and add image for the Storage Object Versioning feature preview. |Before | After | |--|--| | <img width="1096" height="717" alt="Screenshot 2026-11-03 at 11 05 30" src="https://github.com/user-attachments/assets/88a7f13e-4762-48cd-89db-57e2c51f7613" /> | <img width="1075" height="693" alt="Screenshot 2026-11-03 at 11 06 28" src="https://github.com/user-attachments/assets/bab3a2ef-f8bf-4188-865a-701e482347f1" /> | ## How to review 1. Open `Storage object versioning` feature preview 2. See feature preview 3. Acknowledge feature preview 4. Approve --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> |
||
|
|
155f6d7960 |
chore: update cli config schemas (#52638)
Updates the published JSON Schemas from the supabase/cli release workflow. Generated by `scripts/publish-schemas.ts` in supabase/cli from `apps/docs/public/schemas` — edit the schemas there rather than this folder. Published versions below the current one are frozen and never rewritten. Auto-merge is enabled: the PR squash-merges once a reviewer approves it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Colum Ferry <cferry09@gmail.com> |
||
|
|
88ca61270f |
docs: clarify that the supabase stack commands predate CLI v3 (#52667)
## What kind of change does this PR introduce? Docs fix. ## What is the current behavior? The [Try the experimental `supabase stack` commands](https://supabase.com/docs/guides/local-development/cli/migrating-to-v3#try-the-experimental-supabase-stack-commands) section of the v3 migration guide opens with "v3 includes the experimental `supabase stack` commands". On a page listing v2 to v3 changes, that reads as if the stack commands are new in v3. They were already available in v2 and are still experimental. ## What is the new behavior? The opening paragraph now says the commands were available in v2, that v3 keeps improving them, and that they are still experimental. It also links to the Running multiple local projects guide. The rest of the section is unchanged. Linear: [CLI-2918](https://linear.app/supabase/issue/CLI-2918) ## Additional context The section stays on the page on purpose, to raise visibility of the stack commands for people reading the migration guide. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
0e0f84ac30 |
Remove MGMT API examples (#52676)
Updated log configuration settings to reflect changes in the CLI usage and removed API examples. ## Problem MGMT API overrode previous overrides ## Solution Remove MGMT API references --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> |
||
|
|
5e896fe41f |
docs: add Levon Galstyan to humans.txt (#52658)
## Problem As part of onboarding, I need to add myself to humans.txt ## Solution This PR does that! ## Review instructions N/A ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
929af55026 |
fix(studio): stop csp-blocked images from failing feedback screenshots (#52590)
## Problem - "Capture screenshot" in the studio feedback widget fails in production, and studio shows the "Failed to capture screenshot" toast - `html-to-image` downloads each image with `fetch()`, and the csp `connect-src` does not allow the github and google avatar hosts - the blocked avatar gets an empty `src`, so its `onerror` rejects the whole capture ## Solution - changes the capture to use a transparent pixel for each image that it cannot download, so a blocked avatar shows blank and the screenshot still completes | state | preview | | -------|------| | before | <img width="600" height="280" alt="image" src="https://github.com/user-attachments/assets/53c5916e-cd37-4fb5-8989-070537aa9f76" /> | <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. open [/dashboard](https://studio-git-antlio-fix-studio-feedback-screenshot-supabase.vercel.app/dashboard) and sign in with an account that has a github or google avatar 2. click "Feedback" in the top bar, click the image button, and click "Capture screenshot" 3. capturing works and "Failed to capture screenshot" toast does not show 4. click the thumbnail, and make sure that the page shows in the screenshot with a blank area where the avatar is ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
7c52a9b539 |
Joshenlim/fe 3931 re phone mfa enrollment repeatedly force disabled despite (#52629)
## Context In Authentication -> Multi Factor, if you've set SMS MFA to any status apart from "Disabled" and refresh the page, the UI seemingly doesn't render the right value in the dropdown as such: <img width="1114" height="160" alt="image" src="https://github.com/user-attachments/assets/d3353628-0b9a-4347-b81f-3a968a87b5c2" /> Was happening as the form mounted with placeholder values (for SMS MFA, default status was "Disabled"), and the real value was only applied afterwards by a `useEffect` which called `reset`. This changed the `Select`'s value after mount, in Radix then fires an event on that change through `onValueChange` which set `value` as an empty string `''`. It happens as well for TOTP, if you set any value other than "Enabled" which is the default status. ## Changes involved - Am also opting to breakdown `MfaAuthSettingsForm.tsx` into smaller components as it's a single file handling 3 different forms at the moment - (Main fix) Derive the form values via `defaultValue` instead of via `useEffect` which prevents the unintended firing of `onValueChange` for the `Select` |
||
|
|
b9a2422deb |
fix(pipelines): Fix data loading issue in Pipelines (#52642)
Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
5dfd86d35c |
fix: regressed studio typecheck performance (#52677)
Heads up: Generated with Claude Opus 5.5 CheckedInit made TypeScript infer each call's init through conditional and Omit types over the full API paths, at every typed get/post/put/ patch/del call site. A cold `tsc --noEmit` spent 92s type-checking and peaked at 17 GB of memory. CheckedUrl already rejects missing, mismatched, and unexpected grants, so the init check was redundant. Remove CheckedInit and ParseAsContext (which only worked around CheckedInit breaking parseAs inference) and type init the way openapi-fetch does. Cold check time: 92s -> 5.4s. Instantiations: 34.9M -> 16.4M. Peak memory: 17.3 GB -> 5.5 GB. All guarded-fetch type tests still fail for the same reasons. |
||
|
|
7bb6e13aa8 |
Include existing postgres config params in PUT payload (#52675)
## Context The PUT `database/postgres` endpoint does a full resource override for the project's Postgres config. The only surface in the dashboard that does requests to PUT `database/postgres` is under Database -> Settings -> Log connections, but the dashboard only sends `log_connections` and `log_disconnections` when updating the settings here, resulting in existing config values being over written. Fix here is to merge the existing Postgres config values in the PUT payload |
||
|
|
ab60ab2684 |
Fix ProjectLayout side nav width changes after opening and closing inline SQL Editor (#52623)
## Context Happens in the ProjectLayout when the side navigation menu's width can be resized (Table Editor / SQL Editor) On those pages, if you were to toggle the inline SQL Editor with Cmd+E, the side navigation menu's width will change to fit the max width once the inline SQL Editor is closed, and its happening due to the library's default behaviour for handling nested resizable groups. The fix was to bump `react-resizable-panel` to `4.7.x` which introduced a new property `groupResizeBehaviour` and allows us to set that prop's value as `preseve-pixel-size` for the `ProjectLayout` since we use pixel values in this context for the panel widths. Same fix also applied for `FilterSideBar` which is used in Unified Logs |
||
|
|
403fe6c2fc |
Add BeeAPro case study (#52674)
Adds the BeeAPro customer story (multi-tenant training platform for compliance-heavy industries, run on one Supabase project with Row Level Security). - New file: apps/www/_customers/beeapro.mdx - New logos: on-light and on-dark beeapro.png - Linear: https://linear.app/supabase/issue/MARKET-2421/case-study-beeapro-academy Before merge: - Confirm the publish date in the frontmatter 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Wendie Cheung <wendie.cheung@supabase.io> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
92c13cdb2a |
Add VideoGen case study (#52672)
Adds the VideoGen customer story (Firebase to Supabase migration of 3.3 million users). - New file: apps/www/_customers/videogen.mdx - New logos: on-light and on-dark videogen.svg (single-color wordmark from VideoGen's press kit) - Linear: https://linear.app/supabase/issue/MARKET-2427/case-study-videogen Before merge: - Confirm the publish date (TODO in the frontmatter) - Anton Koenig sign-off still open 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01NPB7PkB3r3qmwcheteas5e --------- Co-authored-by: Wendie Cheung <wendie.cheung@supabase.io> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
90c3e57e05 | feat(studio): realtime health advisors (#52535) | ||
|
|
7439ae34d1 |
Fix update role panel not scrollable (#52621)
## Context Under organization -> team member settings, when managing a member's access (specifically if the access is project-scoped), the list of projects is not scrollable at the moment if there's a lot of projects, so this PR addresses that, as well as cleans up a couple of small UI issues that I found while investigating. Screenshot here just shows which UI i'm referring to but you'll need to have a lot of projects to reproduce this <img width="1099" height="492" alt="image" src="https://github.com/user-attachments/assets/73c6db27-9ae8-479b-b2cc-2b6b0d322ff6" /> |
||
|
|
5ce8532dff |
chore(www): update links in Stripe Data Pipeline blog post (#52668)
## Problem The "Get started" links in the Stripe Data Pipeline blog post point to generic Stripe pages. The updated links go straight to the Supabase destination and the Postgres sync docs. ## Solution Update two links in the "Get started" section: - Stripe Dashboard: `/data-management` -> `/data-management/pipeline?destination=postgres_supabase` - Documentation: `/data-pipeline` -> `/data/data-pipeline/real-time-sync-to-postgres` ## Preview links | Site | Live | | ---- | ---- | | WWW | [/blog/stripe-data-pipeline-now-syncs-real-time-data-to-supabase](https://supabase.com/blog/stripe-data-pipeline-now-syncs-real-time-data-to-supabase) | ## Review instructions 1. Open the live post and scroll to "Get started". 2. Open the preview and confirm the first two links match the table above. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
8be85ad4ad |
feat(studio): guard branch update and push with FGA grants (#52377)
Part 6 of 7 in a stack that splits #52331 into reviewable pieces. Resolves part of [FE-4693](https://linear.app/supabase/issue/FE-4693/pilot-migrate-branches-to-grants-8-endpoints-createbranchmodal). There are no functional changes beyond #52331, and the top of the stack is identical to it. See #52331 for the full rationale. ## Stack 1. #52372 Grant infra for branch variants 2. #52373 Branches list query 3. #52374 Page gates on the list grant 4. #52375 Branch creation 5. #52376 Branch read, delete, reset, and restore 6. 👉 #52377 Branch update and push 7. #52378 Branch diff and merge ## Changes The update and push mutations take grants. `Overview` (including "Switch to persistent", which previously had no check), `EditBranchModal`, `SwitchToPreviewModal`, `MergeRequestButton`, the merge-requests page, and the merge page use `useBranchGrant`. The "Update branch" button in `OutOfDateNotice` is disabled without push; previously it did nothing. The GitHub integration form blocks saving without the production-branch grant. Previously the connection was saved even when the branch request failed. ## Testing New `GitHubIntegrationConnectionForm` test. |
||
|
|
fca0f99354 |
docs: move the explain() guide to guides/api/query-plans (#52471)
Closes DOCS-1496 ## Problem The Debugging performance issues page is moved to the Data API as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). The [docs tree tests](https://github.com/supabase/evals/tree/docs/ia-tree-tests/evals/docs-tree-tests) in supabase/evals drove the rename. Each test gives an agent a developer goal and only the navigation labels, with no page content and no search. - **The task:** [one test](https://github.com/supabase/evals/tree/docs/ia-tree-tests/evals/docs-tree-tests/investigate-tree-036-client-call-execution-plan) asks how to see the plan Postgres uses for a slow supabase-js `.from('orders').select()` call. Its answer is this page. - **Today's label:** the page sits under Database as "Debugging performance issues". That label names a symptom many pages share, not the tool the page teaches. - **The change:** round 4 of the tests split the `explain()` content into its own topic, labeled "Query plans with explain()" and placed in Data API, Tools, next to the other client tools. Option 1 fixed every task its new topics targeted. - **Why the whole page moves:** `explain()` is the only thing the page covers, so a split would leave an empty source. The page takes the topic's label as its title. ## Solution - **Move, not split:** the whole page covers `explain()`, so a split would leave an empty source. The page moves to `guides/api/query-plans`, and the old URL redirects there. The existing `api/rest/debugging-performance` redirect now points straight to the new URL, so there's no chain. - **Anchors:** the four H2s keep their anchors, so the client reference link to `#enabling-explain` resolves through the redirect. The two H3s, Example data and Expected response, are gone. Nothing links to them. - **Navigation:** both entries in today's navigation point to the new URL, with the label "Query plans with explain()". In Option 1, the Data API, Tools entry points to the new page, and the Database entry is gone, since it would list the page twice. This was the last Option 1 topic that linked to a section of its source page, so the test that tracked those topics is removed. - **Inbound link:** Realtime reports links to the new URL. - **Cross-links:** the page links Query Performance for finding slow queries, Query optimization for plans of SQL you run yourself, Row Level Security performance for slow policies, and the `explain()` client reference. Query optimization and Row Level Security performance link back to it. - **Guide shape:** a value-statement opener with the reason `explain()` is off by default, and the sample table before the query that reads it. The SQL samples have no comments, and the `format` option has an example. Production readers are told to set up the filter before enabling, and the options paragraph warns that `analyze` on a write changes data. - **Row Level Security performance:** the caution about restricting plans now sits above the step that enables them. - **Sample fix:** `pgrst.db_pre_request` holds one function, so the production step now checks for an existing one and says to call the filter from it. The disable step clears the pre-request setting only for readers who set the filter directly. The filter function sets `search_path`, so the Security Advisor doesn't flag it. It matches the `Accept` header case-insensitively anywhere in the list, because PostgREST accepts `Application/vnd.pgrst.plan+text` and the old prefix check let it through. The check for an existing pre-request function reads `pg_db_role_setting`, which also shows per-database settings that `pg_roles.rolconfig` leaves out. When both a global and a per-database setting exist, the page says PostgREST uses the per-database one. The function is created and set as `public.filter_plan_requests`, because PostgREST resolves an unqualified name against the requested schema first. After the filter, the page says the Supabase Platform sets `cf-connecting-ip`, and that a self-hosted project needs a header its proxy overwrites. ### Verification `test-the-docs`, local stack, Supabase CLI v2.39.2. Each SQL fence ran in document order. The `supabase-js` calls were checked through the HTTP request they send, with `Accept: application/vnd.pgrst.plan`. | Step | Result | | --- | --- | | Plan request before enabling | 406, as expected | | Enable, then request a plan | 200, text plan, and JSON with `+json` | | Sample table, no extra grant | readable by `anon` | | Pre-request filter with `set search_path = ''`, non-matching IP | 401 `Not allowed to use application/vnd.pgrst.plan`, normal requests 200 | | Filter, mixed-case `Application/vnd.pgrst.plan+text` | old filter 200 with a plan, new filter 401; matching IP 200 | | Insert plan with `options=analyze` | row persists after the request; without `analyze`, no row | | Existing-function check with an `in database` setting | `pg_db_role_setting` shows it, `rolconfig` doesn't | | Disable | plan requests 406, normal requests 200 | | `cf-connecting-ip` on a hosted project | checked in review on a test project: Cloudflare sets it, and a request that sends its own value is rejected at the edge with `error code: 1000` | ### Not verified - **Deferred:** the TypeScript fences, because the sandbox runs Node only for example apps. The plan values in the example response come from the old page and differ slightly from a local run. - **Old links left on the redirect:** the client reference specs (`supabase_{dart,py,kt,swift}`), the supabase-js doc comment, and one `www` blog post still link to the old URL. ## Manual testing 1. Open [Query plans with explain()](https://docs-git-docs-query-plans-supabase.vercel.app/docs/guides/api/query-plans). See the enable, use, production, and disable sections. 2. Open [the old URL](https://docs-git-docs-query-plans-supabase.vercel.app/docs/guides/database/debugging-performance#enabling-explain). See it redirect to the new page at Enabling `explain()`. 3. In the Database sidebar under Debugging, click **Query plans with explain()**. See the new page open. |
||
|
|
86848fc036 |
docs: move the production security checklist to its own page (#52466)
Closes DOCS-1494 ## Problem The Security section of the Production checklist is split out as a part of the Information Architecture plan laid out in Option 1 of the [Docs navigation architecture proposal](https://app.notion.com/p/supabase/Q4-2027-Proposal-Docs-navigation-architecture-3f25004b775f81f49dbad710a732ef61). ## Solution - **Structure:** move `## Security` to `guides/security/production-checklist`. The production checklist keeps the heading, and its `#security` anchor, with a one-sentence pointer. The page is in the Security sidebar under Guides, after Production Checklist. - **Option 1 navigation:** the "Production security checklist" entry in Run and manage, Security and compliance, points to the new page. The Option 1 test no longer expects the anchor. - **Page shape:** a value-statement opener with the situations that call for the checklist, then the items grouped under Database, Account and organization, Auth, and Threat review. Each group opens with a lead-in that says what its checks protect. - **Inbound links:** two Studio linter entries for OTP settings, the Studio Auth providers form, and `auth/auth-email-passwordless` now point to `production-checklist#auth`. The password length lint points to the password security guide instead, since the checklist has no password item. They used to land on `going-into-prod#security`, which is a pointer now. - **Claim fixes:** - The replication item told readers to enable replication on sensitive tables. It now says to enable RLS on replicated tables that hold sensitive data. - The Auth items named **Authentication > Providers**. The Dashboard label is **Sign In / Providers**. - **Terminal path:** the Auth group links the Management API endpoint for its settings. The Database items link to guides that carry CLI or SQL paths. - **Review fixes:** a note that RLS doesn't filter Postgres Changes `DELETE` events, a SQL path for publications, and the other email links the OTP expiry controls. - **Agent prompt:** after the opener, a copyable `AiPrompt` that has an agent audit the project read-only and report each item as pass, fail, or can't check. It reads Security Advisor and the tables through the Supabase MCP server, and SSL, network restrictions, Auth settings, and org members through Management API GET endpoints. `includeInMarkdown` is on, so the `.md` carries the prompt as a fenced text block. - **Cross-links:** Testing auth flows points to the checklist's Auth group, and the Security overview and Product configuration pages link the checklist. The custom SMTP item links the SMTP guide. ### Not verified - **Deferred samples:** none. The page has no code samples. - **Agent prompt:** its endpoints and fields match `api_v1_openapi.json`, and `Owner` matches Studio's role name. No agent has run it against a hosted project. - **Studio:** the link changes are strings only. Studio tests and build run on this PR because it touches `apps/studio`. ## Manual testing 1. Open [Production security checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/security/production-checklist). See the agent prompt below the opener and four groups of checks. Click **Copy** and see the prompt text. 2. Open [Production checklist](https://docs-git-docs-production-security-checklist-supabase.vercel.app/docs/guides/deployment/going-into-prod#security). See the Security heading with a one-sentence pointer to the new page. 3. In the Security sidebar under Guides, click **Production security checklist**. See the new page open. |
||
|
|
38ae9fea1c |
feat(studio): add admonition for api keys settings view (#52250)
## Problem API Keys Settings view needs updating. ## Solution Added admonition with update and link to docs. |
||
|
|
315447c4f9 |
fix: server-render FAQ answers and library catalog (#52644)
Four pages served their main content only after JavaScript ran, so
crawlers that don't run it never saw that content. The FAQ answers on
/pricing, /compute and /partners were missing because the accordion
unmounts closed panels. The /library catalog was missing because
`LibraryOverview` read `?category=` with `useSearchParams`, which makes
Next client-render everything up to the nearest Suspense boundary on a
static route.
**Changed:**
- **FAQ answers render in the HTML, collapsed**: I added `FaqAnswer`,
which keeps each panel mounted (`forceMount`) and collapses it with a
grid-rows transition, and I replaced `AccordionContent` with it at the
three FAQ call sites. Open and close keep the same 150ms ease-out
motion. The panel turns `invisible` 150ms after closing, so closed
answers are not tabbable and not listed as regions, as before.
- **The /library catalog renders in the static HTML**: I moved the
`useSearchParams` read into a small `CategoryFromUrl` child that renders
nothing, under its own `<Suspense fallback={null}>`, and removed the
page-level `<Suspense>`. The child passes the category up to
`LibraryOverview` state in a layout effect, so category clicks, header
navigation to `/`, and back and forward still update the filter before
paint.
**Note:** the shared `ui` `AccordionContent` is unchanged for other
apps. The FAQ height transition sits on an inner element because Radix
sets `transition-duration: 0s` on the content node while it measures it.
On a hard load of a `/library?category=X` link (the kb FAQs link to
`?category=Authentication`), the catalog shows All until the client
applies X. Before this change the page was empty in that window.
Avoiding it means rendering the page per request.
## To test
I tested on the PR previews:
- [x] `curl -sL` /pricing with a Chrome user agent and strip `<script>`,
`<style>` and `<template>`: all 11 FAQ answers are present (prod has
none). Same for /compute (7) and /partners (5).
- [x] On /pricing, /compute and /partners, open and close a FAQ: it
slides open and closed as on prod (about 150ms each way), and the answer
stays visible while it collapses.
- [x] Open two FAQs on /pricing: both stay open.
- [x] With every FAQ closed, press Tab from a question: focus skips the
links inside closed answers. Once that FAQ is open, Tab focuses the
link.
- [x] With reduced motion enabled, open and close a FAQ: both happen
instantly.
- [x] `curl -sL` /library the same way: "Building blocks for your next
backend", all 19 block titles and the canonical link are present. The
only `<!--$!-->` is the empty `CategoryFromUrl` slot, a sibling before
the heading.
- [x] On /library, click a category: the list filters and the URL gains
`?category=`. Click "Browse all blocks" in the header: All is selected
again and every block shows.
- [x] Open `/library?category=Authentication` directly: the list ends up
filtered. Click a block, then go back: the filter is still applied.
- [x] No hydration, `useSearchParams` or Suspense warnings in the
console on any of these pages.
- [x] Compare preview with prod at 1440px and 390px wide on /pricing,
/compute, /partners and /library: FAQ row heights, spacing and
open-answer heights match prod to the pixel, nothing is clipped, and the
/library catalog and `?category=Authentication` view render the same as
prod.
## Linear
- part of GROWTH-1416
|
||
|
|
5ff6930c2a |
feat(studio): send role passwords as precomputed SCRAM-SHA-256 verifiers (#52544)
## What kind of change does this PR introduce? Feature. ## What is the current behavior? Role passwords are sent as plaintext in the SQL (`create role ... password '...'` and `alter role ... password '...'`), so they can end up in Postgres logs. ## What is the new behavior? ASCII role passwords are hashed in the browser with Web Crypto and sent as a precomputed `SCRAM-SHA-256$...` verifier. Postgres stores a verifier as given, so the plaintext no longer appears in the SQL or the server logs. This applies to every flow that sets a role password, because they all go through the role create and update mutations. Non-ASCII passwords are still sent as plaintext. Postgres normalizes passwords with SASLprep before hashing, and the browser code doesn't apply it, so a verifier built from the raw text could stop the role from logging in. For ASCII, SASLprep changes nothing, so the verifier always matches. The `saslprep` package can't be used here because it reads its table with `fs.readFileSync` at import time. Covering non-ASCII passwords is a follow-up, most likely a server-side API. Studio also falls back to plaintext when `crypto.subtle` isn't available, which browsers only expose in secure contexts. This keeps setting a password working on self-hosted Studio served over plain HTTP. ## Known limitations - The verifier is built with 4096 iterations, the Postgres default. If a project sets `scram_iterations` higher, these roles keep 4096, because Postgres stores a supplied verifier as given. Reading the setting first needs an extra query and a grant for it, so it's left for the follow-up below. - Non-ASCII passwords, and Studio over plain HTTP, still send plaintext. - The follow-up is a server-side path that sets the password without it going through the SQL, which would honor the server's own settings and cover these cases. A verifier isn't secret (it can be attacked offline), but it is a clear improvement over plaintext. ## Testing - Unit tests compare the helper with an independent `node:crypto` implementation, and check that ASCII passwords become verifiers and non-ASCII passwords pass through unchanged. - I also checked against a real Postgres: roles given these verifiers log in with the plaintext password and reject a wrong one. - The `CreateRolePanel` test now expects a verifier and no plaintext in the SQL. Resolves FE-4822. |
||
|
|
6a1228f4e4 |
feat(www): serve MCP server card and list it in the ARD catalog (#52643)
Adds an MCP Server Card for the hosted Supabase MCP server at `/.well-known/mcp/server-card.json` and lists it in the agent discovery catalog. Most developer platforms that host an MCP server already publish a card at that path, and agent-readiness scanners check it. **Changed:** - **Server card**: a static card in the v1 format of the MCP Server Card extension (SEP-2127), named `com.supabase/mcp` to match the official MCP registry record, with one streamable HTTP remote at `https://mcp.supabase.com/mcp`. - **Catalog discovery**: a new `ard.json` entry typed `application/mcp-server-card+json` points at the card. The extension's discovery flow reads `/.well-known/ai-catalog.json`, which already rewrites to `ard.json`. **Note:** `version` is pinned to the current supabase/mcp release (0.15.0). I chose a static file over a build-time fetch for a single string. To keep it current, a daily Checkly check alerts Growth Engineering when the card stops serving a valid card or has been behind a newer MCP release for more than 14 days; the fix is a one-line version bump in this file. ## To test Tested on the PR preview: - [x] `curl -sS -D - <preview>/.well-known/mcp/server-card.json`, expect 200 `application/json` with `access-control-allow-origin: *`, and a body with `"name": "com.supabase/mcp"` and one `streamable-http` remote at `https://mcp.supabase.com/mcp` - [x] `curl -sS <preview>/.well-known/ai-catalog.json`, expect an entry with `"type": "application/mcp-server-card+json"` whose `url` is `https://supabase.com/.well-known/mcp/server-card.json` ## Linear - part of GROWTH-1415 |
||
|
|
b98eca75c7 |
fix(studio): give disk space warning plan-specific guidance (#52633)
The disk space warning banner showed every user the text "You can opt to increase your disk size up to 200GB on the Database Settings page". That text was wrong on three counts: 200 GB is the cap on a single automatic expansion step, the disk settings now live on the Infrastructure page, and it never mentioned that paid-plan disks already expand automatically. Users who had just received the automatic resize email couldn't tell what to do next. **Changed:** I split the banner description by plan. - **Paid plans**: the description says the disk expands automatically and points to the Infrastructure page for its current size and any limits on resizing it. - **Free Plan**: the description says the disk doesn't expand automatically and suggests freeing up space or upgrading. - **Organization still loading**: the banner falls back to a plan-neutral sentence, so a Free Plan project never flashes the paid text. **Note:** I left a manual-resize instruction out of the paid copy because the Infrastructure page blocks manual resizing above 8 GB while the spend cap is on, and blocks any resize during the cooldown after the previous one. That page explains which case applies. Spend cap is not a separate case because automatic expansion runs the same way with or without it. ## To test Setup: on a project's home page (the banner is hidden on Usage and Infrastructure), override the `GET /platform/projects-resource-warnings` response so the entry with `project: <ref>` has `"disk_space_exhaustion": "warning"`. To check both plans with one org, also override `GET /platform/organizations` to set the org's `plan.id`. I tested on the PR preview: - [x] Open a project in a paid organization, expect the banner description "Your disk expands automatically as it fills up. The Infrastructure page shows its current size and any limits on resizing it." I observed this with the org forced to `pro`; the "Check" button links to `/project/<ref>/settings/infrastructure`. - [x] Open a project in a Free Plan organization, expect "Free Plan disks don't expand automatically. Free up space, or upgrade to the Pro Plan for a disk that expands as it fills up." I observed this with the org forced to `free`. - [x] In both, expect no mention of "200GB" or "Database Settings page". - [x] With the overrides removed, expect no disk banner on a healthy project. ## Linear - part of GROWTH-1408 |
||
|
|
4a92bac8d8 |
[bot] Decrease ESLint ratchet baselines (#52597)
Automated weekly decrease of ESLint ratchet baselines. Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> |
||
|
|
298fda50dc |
feat(logs): filter by any log attribute DEBUG-223 (#52513)
Support filtering log attributes through the picker and log details, preserving filters across URLs and query surfaces. Fixes DEBUG-223. |
||
|
|
da454314b1 |
fix(studio): select the full folder name when renaming in Storage (#52594)
## Problem Renaming a Storage folder such as `photos.backup` selects only `photos`, leaving `.backup` behind when the user types a replacement name. Fixes https://github.com/supabase/supabase/issues/52593 ## Solution Apply extension-aware text selection only to files. Select the entire name for folders. Add regression tests for dotted folder names, ordinary folder names, and files with extensions. All three tests pass with the fix; the dotted-folder case fails before it. ## Review instructions 1. Create a folder named `photos.backup` in a test Storage bucket. 2. Select Rename and confirm the entire name is selected. 3. Type `archive` and confirm no `.backup` suffix remains. 4. Rename a file named `photo.png` and confirm only `photo` is selected. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) |
||
|
|
a23ab5ef9e |
fix(ui-library) - add in core SEO features (#52567)
## Problem The UI was missing several common SEO affordances, including: - canonical URLs - JSON+LD structured data (`TechArticle`, `BreadcrumbList`) - a sitemap Also the [examples pages](https://supabase.com/library/example/password-based-auth/auth/sign-up) should be tagged with `noindex` b/c they're demo webpages. ## Solution Adds these + adds the newly created sitemap to the apps/www listing. ## Preview links ### Sitemap https://ui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app/library/sitemap.xml <img width="1338" height="669" alt="image" src="https://github.com/user-attachments/assets/75bdbfa0-1294-4ed2-a045-fc76d2c8f133" /> ### Canonical URLs Also fixed a bug in the og:url property, where it didn't set the `/library` and instead rendered `undefined`. **Previous** https://supabase.com/library/docs/nextjs/password-based-auth <img width="1338" height="702" alt="image" src="https://github.com/user-attachments/assets/90561e30-f5b0-4a91-b19d-340b542c996d" /> **New** https://ui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app/library/docs/nextjs/password-based-auth <img width="1338" height="702" alt="image" src="https://github.com/user-attachments/assets/2bdf34b2-2cc2-4b50-b57b-807835ba5d01" /> ### JSON-LD - [preview](https://ui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app/library/docs/nextjs/password-based-auth) - [validation](https://validator.schema.org/#url=https%3A%2F%2Fui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app%2Flibrary%2Fdocs%2Fnextjs%2Fpassword-based-auth) <img width="1338" height="702" alt="image" src="https://github.com/user-attachments/assets/25627028-c37a-4940-ad6d-0d85d31f3ef9" /> ### Examples Now have a `noindex` value on them. https://ui-library-git-kody-devrel-815-seo-tweaks-ui-library-supabase.vercel.app/library/example/password-based-auth/auth/sign-up <img width="1338" height="702" alt="image" src="https://github.com/user-attachments/assets/16f30d8c-8471-43e0-a55c-e6dc30e326e0" /> |
||
|
|
03c2008987 |
feat(docs) - add last updated date (#52421)
## Problem Per #52168, dates are a really important signal for LLMs. We should be surfacing this more proactively across our docs, pulling from the lastModified date. ## Solution Looks like this information is already stored in a Supabase table, so we can grab the date values and then render on associated pages. To this end, this PR: - Grabs the last-updated date with a script (with tests on the script). Gets all the dates to form a map, and then have all the pages read from that map to save roundtrips. Still ~20+ lookups b/c of how the site is built (by multiple workers). - Adds that date into the Guides template and associated JSON-LD / opengraph structured data. The goal of these dates -- to answer the various CodeRabbit comments -- are to be an **approximation** of age. It's okay if they're not 100% accurate based on changed titles, frontmatter, deleted heading sections, etc. Reading this via JS instead of a SQL lookup to save us a DB migration, as that's the fastest way to get this change up (and I have very little familiarity with db migrations, so partially just lack of knowledge here). This does add some additional latency to builds, approximately ~20 seconds from some build benchmarking: - https://vercel.com/supabase/docs/7UcfoR3Jjb8SYuUNkRo14W3DZqBL#L1221-L1241 - https://vercel.com/supabase/docs/23RH6uPtR92K8EggPPiTEQvY23bk#L1062-L1085 ## Preview links | state | preview | | -------|------| | after | <img width="891" height="438" alt="image" src="https://github.com/user-attachments/assets/38476245-be80-4b65-99a7-4501e60560fc" /> | - [Queues overview](https://docs-git-kody-devrel-751-docs-last-updated-date-supabase.vercel.app/docs/guides/queues) -- rendered date of Oct 19th matches [git last modified](https://github.com/supabase/supabase/commits/master/apps/docs/content/guides/queues.mdx) - [Cron overview](https://docs-git-kody-devrel-751-docs-last-updated-date-supabase.vercel.app/docs/guides/cron) -- rendered date of Feb 23rd slight diff from git last modified... but matches last [content change](https://github.com/supabase/supabase/commits/master/apps/docs/content/guides/cron.mdx) - [Auth overview](https://docs-git-kody-devrel-751-docs-last-updated-date-supabase.vercel.app/docs/guides/auth) -- rendered date of Oct 22nd matches [git last modified](https://github.com/supabase/supabase/commits/master/apps/docs/content/guides/auth.mdx) ## Gaps / open review questions - **testing** - Least familiar with the tests in `apps/docs/lib/last-changed.test.ts` + these are entirely claude generated. Unsure if they hit what they should. - **build latency** - Is ~20 sec / build acceptable latency here? If we wanted to move forward with SQL instead of JS to try and reduce it, could make sense... but I'd definitely need help on the associated db migration here. - **build fragility** - AI review flagged the cooldown / potential hanging requests without a timeout. Seems like this is now addressed, but obviously could use a sanity check. --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> Co-authored-by: anthony lio <lionnet.ant@gmail.com> |
||
|
|
1e94d386a4 |
feat(studio): add a reset password action for custom roles (#52506)
## What kind of change does this PR introduce? Feature. ## What is the current behavior? The Dashboard only offers a reset password action for the `postgres` role (Database Settings). To change the password of a custom role, users have to run `alter role ... password` in the SQL editor. ## What is the new behavior? Each role row in Database > Roles has a "Reset password" item in its actions menu. It opens a dialog with a warning that anything using the old password will be disconnected, and the shared password field (generate and copy). The password is required in this dialog. - The item is disabled for system roles, and for roles that can't log in, with a tooltip explaining why. - It uses the existing role update mutation, so no platform endpoint is involved. - `RolePasswordField` gains `isOptional` and `layout` props so the dialog can reuse it. <img width="271" height="174" alt="Screenshot 2026-11-02 at 11 11 33" src="https://github.com/user-attachments/assets/36f05fa0-e95c-440c-b6bb-4fadb466c2f6" /> <img width="543" height="414" alt="Screenshot 2026-11-02 at 11 11 17" src="https://github.com/user-attachments/assets/87ba4f50-1315-4e07-b390-9c5b6beba129" /> ## Testing New `RoleRow` component tests cover the item being available for a custom role that can log in, disabled for system roles and roles that can't log in, the required-password validation, and a successful reset. Resolves FE-4813. |
||
|
|
4810bbcfdf |
feat(studio): guard branch read, delete, reset, and restore with FGA grants (#52376)
Part 5 of 7 in a stack that splits #52331 into reviewable pieces. Resolves part of [FE-4693](https://linear.app/supabase/issue/FE-4693/pilot-migrate-branches-to-grants-8-endpoints-createbranchmodal). There are no functional changes beyond #52331, and the top of the stack is identical to it. See #52331 for the full rationale. ## Stack 1. #52372 Grant infra for branch variants 2. #52373 Branches list query 3. #52374 Page gates on the list grant 4. #52375 Branch creation 5. 👉 #52376 Branch read, delete, reset, and restore 6. #52377 Branch update and push 7. #52378 Branch diff and merge ## Changes `useBranchQuery` becomes `branchQueryOptions`. The delete, reset, and restore mutations take grants. `DeleteBranchModal`, `DeleteBranchPanel`, and the relevant `Overview` actions use `useBranchGrant`, which picks production for the default branch and development for preview branches. Reset previously had no check. ## Testing New `DeleteBranchPanel` test. |
||
|
|
d2d0a9ec8e |
fix(www): server-render the /events list (#52637)
`/events` showed skeletons until a client-side request to the Luma events API finished, so the raw HTML had no upcoming events and every category count read zero. I moved the Luma fetch to the server next to the Notion and MDX loaders, so the HTML now includes the event list, and I set the page to revalidate every 5 minutes. **Changed:** - **Event list in the HTML**: I built `getLumaEvents` on the upstream fetch from `/api-v2/luma-events`, which I made shareable and gave a 10 s timeout, with the same public-only filter and mapping the client used. I removed the client fetch, the loading state and both skeletons. - **Luma failures**: on a missing API key, an upstream error or a timeout, `getLumaEvents` returns no Luma events and reports the error to Sentry, the same soft fallback the Notion loader uses, so neither the build nor a regeneration can fail on Luma. - **Dates without hydration mismatches**: I format each event's date and time in the event's own time zone on the server and the first client render (banner times carry the zone name, and the banner always shows the year). After hydration the page switches to the visitor's time zone, as before. **Note:** before JavaScript loads, visitors now see event-local times labeled with their zone where they used to see skeletons. If Luma is down during a regeneration, the page shows no Luma events until the next successful regeneration. ## To test Tested on the PR preview: - [x] Fetch `<preview-url>/api-v2/luma-events?after=<now>`, then fetch `<preview-url>/events` with a Chrome user agent, strip `<script>`, `<style>` and `<template>` elements and React's `<!-- -->` separators: expect every returned event name in the HTML, `All (N)` equal to the number of event cards (`h3.leading-snug`), and no `animate-pulse` skeletons (5/5 names, `All (5)` with 5 cards, 0 skeletons; a 6 PM Denver event groups under its own local date) - [x] Open `/events` in a browser outside UTC: expect no hydration errors in the console, banner times in local time without a zone label, and no request to `/api-v2/luma-events` (Asia/Singapore: none of either) - [x] Click a category filter, then All; search for a title word, then clear it; toggle On-demand: expect the list to narrow and restore as before, and the banner to hide on On-demand ## Linear - part of GROWTH-1416 |
||
|
|
f5e3e7f7a2 |
fix(www): serve /nextjs as a 308 to the Next.js tutorial (#52634)
`/nextjs` was a placeholder page that redirected with a client-side `router.push`, so without JavaScript it served an indexable 200 with an empty body and a self-canonical. I replaced it with a permanent redirect straight to the Next.js tutorial, which also skips the old intermediate `/docs/guides/with-nextjs` hop. I deleted the page, so `/nextjs` drops out of the www sitemap, and I pointed the image transformations feature page's Next.js link at the Next.js loader docs, which is what its text describes. ## To test Tested on the PR preview: - [x] `curl -sI <preview-url>/nextjs`, expect `308` with `location: /docs/guides/getting-started/tutorials/with-nextjs` (one hop, no request to `/docs/guides/with-nextjs`) - [x] Open `/features/image-transformations`, expect the "Next.js integration" link to point to `/docs/guides/storage/serving/image-transformations#nextjs-loader` and no link to `/nextjs` on the page ## Linear - part of GROWTH-1416 |
||
|
|
d97a410577 |
docs: add a Supabase CLI v2 to v3 migration guide (#52147)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Docs update ## What is the current behavior? There's no page covering the breaking changes between Supabase CLI v2 and v3. v3.0.0 was released on 2026-11-02. ## What is the new behavior? Adds a migration guide at `/docs/guides/local-development/cli/migrating-to-v3`, linked from the Local Dev / CLI nav just under "Install and run the CLI". It's modelled on [Vite's migration guide](https://vite.dev/guide/migration): a short summary, what to do before upgrading, how to install (or stay on v2), a CI quick-reference table, then one section per change, ending with the removed commands, flags, config keys and env vars as tables. The content comes from the `BREAKING CHANGE` footers of the breaking PRs on supabase/cli `next`, checked against the code there: supabase/cli#6609, supabase/cli#7064, supabase/cli#7066, supabase/cli#7074, supabase/cli#7109, supabase/cli#7116, supabase/cli#7172, supabase/cli#7176, supabase/cli#7188 and supabase/cli#7221. ## Additional context The page describes v3.0.0 as released: npm `latest`, Homebrew, Scoop and the Linux packages all install v3. The "Staying on v2" channels are live with v2.122.1: npm `v2.stable`, `supabase/tap/supabase@2`, `supabase-v2-stable` on Scoop, and `version: v2.stable` or a semver range like `^2` on `supabase/setup-cli@v3` (ranges need v3.2.0). It also updates about 60 existing guides and troubleshooting pages for v3. Hosted examples pass `--remote`, CI examples that change a hosted project pass `--yes`, deprecated target flags and removed commands are replaced, and pages that described migra as the default now describe pg-delta. It adds a new concept page, "Running commands against local and hosted projects" at `/docs/guides/local-development/local-and-hosted-projects`, linked from the Local Dev nav after "Local development workflow". It covers how a command picks its target (local by default, `--remote` and its forms, the linked project, the `Target:` line), how settings resolve (flag, then shell env, then project env files, then config), and when the CLI asks before changing a hosted project (`--yes`, `SUPABASE_YES`, `--dry-run`, seeding), with a CI recipe and a section for AI coding agents. The migration guide links to it from its target, consent and config sections. Tracks CLI-2747 🤖 Generated with [Claude Code](https://claude.com/claude-code) |
||
|
|
be28b2517f |
fix(logs): correlate request and trace IDs DEBUG-260 (#52514)
Correlate related log timelines using request and trace IDs, and improve the Timeline empty state. Fixes DEBUG-260. |
||
|
|
7d0c1c60bd |
fix(studio): show branches page for paused branches and leave it on branch switch (#52572)
From a paused branch, "Manage branches" showed the paused screen instead of the Branches page, so the click seemed to do nothing. The next branch pick then kept the hidden `/branches` route. The Branches page now renders for paused branches, and picking a branch from the Branches pages opens that branch's home page. Fixes FE-4831 ## Testing instructions **Setup:** a project with branching enabled and at least three branches: - the default `main` branch (running) - one other running branch (`live`) - one paused branch (`paused`) Open the branch switcher with the chevron next to the branch name in the top header. **1. Manage branches from a paused branch** 1. Open `/project/<paused-ref>`. The paused state shows. 2. Open the branch switcher and click **Manage branches**. 3. Expected: the URL is `/project/<paused-ref>/branches` and the Branches page renders with the full branch list. The "project is paused" screen does not show. **2. Switching to a live branch from the Branches page** 1. Continue from step 1 (on `/project/<paused-ref>/branches`). 2. Open the branch switcher and click `live`. 3. Expected: on the first click, the URL is `/project/<live-ref>` and the live branch's project home page renders. It does not land on `/project/<live-ref>/branches`. **3. Switching straight from a paused branch (no Manage branches click first)** 1. Open `/project/<paused-ref>`. 2. Open the branch switcher and click `live`. 3. Expected: the URL is `/project/<live-ref>` on the first click. **4. Merge requests page** 1. Open `/project/<paused-ref>/branches/merge-requests`. 2. Expected: the Merge requests page renders, not the paused screen. 3. Open the branch switcher and click `live`. Expected: the URL is `/project/<live-ref>`. **5. Regression: switching branches keeps the current page elsewhere** 1. Open `/project/<live-ref>/editor` (Table Editor). 2. Open the branch switcher and click `main`. 3. Expected: the URL is `/project/<main-ref>/editor`, so the current page is kept. 4. Repeat from `/project/<live-ref>/settings/general`. Expected: `/project/<main-ref>/settings/general`. **6. Regression: paused screen still shows on other pages** 1. Open `/project/<paused-ref>/editor`. 2. Expected: the "project is paused" screen still shows. **7. Console** - During cases 1–4, there should be no unhandled errors in the console caused by the navigation itself. |
||
|
|
8e2ff1f0e8 |
feat: update mgmt api docs (#52615)
This PR updates Management API docs automatically. This regenerates: - Management API specs and sections - Personal Access Tokens permission-to-endpoint table - Personal Access Tokens MCP tool permissions table Sources include the live Management API specs, MCP permission map, and Studio's shared permission catalog. Co-authored-by: phamhieu <689843+phamhieu@users.noreply.github.com> |
||
|
|
2b85c37aea |
fix: broken links from the Web 404 Review, week of 2026-10-26 (#52617)
<!-- claude-slack-attribution --> _Requested via [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1793584471038389?thread_ts=1793584471.038389&cid=C076KTY11DF)_ ## Problem The weekly Web 404 Review found broken URLs that are emitted by links in this repo, or that a redirect can send to a live page. I fixed the ones I confirmed in the code. Each fix is its own commit, so any one of them can be dropped by reverting that commit. ## Solution | Path that 404s | App | Change | | --- | --- | --- | | `/blog/sitemap.xml` | www | Add a permanent redirect to `/sitemap_www.xml` in `apps/www/lib/redirects.js`, next to the existing `/blog/rss.xml` redirect. Old supabase.io links still point at this legacy per-section sitemap. | | `/partners/sitemap.xml` | www | Add a permanent redirect to `/sitemap_www.xml` in `apps/www/lib/redirects.js`, next to the other `/partners/*` redirects. Same legacy supabase.io source. | | `/design-system/og.jpg` | design-system | `apps/design-system/config/site.ts`: `ogImage` pointed at a file that was never added to the app. Point it at `https://supabase.com/docs/img/supabase-og-image.png`, the shared OG image that docs, learn, and kb already use. That image is 1200x600, so `og:image:height` in `apps/design-system/app/(app)/docs/[[...slug]]/page.tsx` changes from 630 to 600 to match. | | `/docs/reference/auth/config` | docs | `apps/docs/spec/supabase_kt_v1.yml`, `supabase_kt_v2.yml`, `supabase_kt_v3.yml`, `supabase_swift_v1.yml`, `supabase_swift_v2.yml`: the refresh token rotation and `REFRESH_TOKEN_REUSE_INTERVAL` links now go to `/docs/guides/local-development/cli/config#auth.enable_refresh_token_rotation` and `#auth.refresh_token_reuse_interval`, matching the Dart v2 spec. Also add a permanent redirect from `/docs/reference/auth/config` to `/docs/guides/local-development/cli/config` in `apps/docs/lib/redirects/static-redirects.json`, so external links to the old URL stop 404ing. | | `/app/settings/api-keys` | docs | `elevenlabs-generate-speech-stream.mdx` and `elevenlabs-transcribe-speech.mdx`: the ElevenLabs API key link was a relative path that resolved on supabase.com. It now uses `https://elevenlabs.io/app/developers/api-keys`, the current ElevenLabs path (`/app/settings/api-keys` 308s there). The code-sample comments on both pages use the same URL. | I left out the other lines in the review. They need feature work, live outside this repo, or come from stale clients with no matching link in the code. ## To test - [x] www preview: open `/blog/sitemap.xml`. It should 308 redirect to `/sitemap_www.xml` and render the sitemap. - [x] www preview: open `/partners/sitemap.xml`. It should 308 redirect to `/sitemap_www.xml` and render the sitemap. - [x] design-system preview: view source on any `/design-system/docs/...` page. The `og:image` and `twitter:image` meta tags should be `https://supabase.com/docs/img/supabase-og-image.png`, and that URL should load an image. `og:image:height` should be `600`. - [x] docs preview: open `/docs/reference/kotlin/auth-setsession` and `/docs/reference/swift/auth-setsession`. The "Refresh token rotation" and `REFRESH_TOKEN_REUSE_INTERVAL` links should open the matching sections of `/docs/guides/local-development/cli/config`. - [x] docs preview: open `/docs/reference/auth/config`. It should 308 redirect to `/docs/guides/local-development/cli/config`. - [x] docs preview: open `/docs/reference/auth`. It should still 308 redirect to `/docs/reference/self-hosting-auth/start`, so the new `/docs/reference/auth/config` entry doesn't collide with it. - [x] docs preview: open `/docs/guides/functions/examples/elevenlabs-generate-speech-stream` and `/docs/guides/functions/examples/elevenlabs-transcribe-speech`. The "API key" link under Requirements should go to `https://elevenlabs.io/app/developers/api-keys`. ## Checklist - [ ] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) ## Linear - fixes GROWTH-1409 --- _Generated by [Claude Code](https://claude.ai/code/session_011aGhSAkL6hxEkWQxXbNazM)_ --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Pamela Chia <pamelachiamayyee@gmail.com> |
||
|
|
31c9854c2a |
chore: update api types (#52618)
Fixes API-types as per latest develop - pending prod deployment today to clear out the failing action that checks against prod types |
||
|
|
cd0b65c03e | feat(logs): Add Pipelines to unified logs and rename ETL to Pipelines (#52555) | ||
|
|
419ab63a14 |
fix(studio): report regionSelectionType 'auto' only for the Auto region option (#52283)
<!-- claude-slack-attribution --> _Requested by **Pam Chia** · [Slack thread](https://supabase.slack.com/archives/C076KTY11DF/p1792977863856759?thread_ts=1792977863.856759&cid=C076KTY11DF)_ ## Problem **Before:** `getRegionSelectionType` had an untouched-field branch that also returned `auto`, but it was unreachable: `ProjectCreationForm` passed `dirtyFields.dbRegion` (`undefined` when untouched) into an `isDbRegionDirty = true` default parameter, so the branch never fired. With the new Auto (best available) region option also reporting `auto`, the value was ambiguous between "left untouched" and "picked the Auto option". **After:** `auto` means the user submitted the Auto (best available) region. An untouched field reports whatever default it holds (`general` or `auto`). Production values for untouched submissions don't change, since the removed branch never fired. Fixes [GROWTH-1358](https://linear.app/supabase/issue/GROWTH-1358/studio-regionselectiontype-never-reports-auto-for-untouched-default) ## Solution - `ProjectCreation.utils.ts`: `getRegionSelectionType` classifies only by the submitted region. Removed the `isDbRegionDirty` argument and the untouched-field branch. - `ProjectCreationForm.tsx`: stopped passing `isDbRegionDirty`. The default-region sync effect still uses it, unchanged. - `ProjectCreation.utils.test.ts`: removed the untouched-field cases. The Auto option cases (available and unavailable) stay. - `packages/common/telemetry-constants.ts`: updated the `regionSelectionType` doc to the new meaning. ## Review instructions 1. `pnpm --filter studio exec vitest run components/interfaces/ProjectCreation` passes. 2. On the preview, create a project with the Auto region option and confirm `project_creation_simple_version_submitted` fires with `regionSelectionType: 'auto'`. 3. Create another project leaving a smart group default (e.g. Americas) untouched, or picking an exact region, and confirm it reports `general` or `specific`. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --- _Generated by [Claude Code](https://claude.ai/code/session_01U4bWS81PTj81V8YkZeFP2Q)_ --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|
|
5bb549efae |
feat(studio): allow setting a password when enabling login on an existing role (#52505)
## What kind of change does this PR introduce? Feature. ## What is the current behavior? Turning on "User can login" for an existing role that couldn't log in gives no way to set a password. Users have to run `alter role ... password` in the SQL editor. ## What is the new behavior? In Database > Roles, turning on "User can login" for a role that couldn't log in now shows the same optional password field as the create panel, including the generate and copy actions. - The field only shows for roles that don't currently have login. Roles that can already log in don't get one. - The password is sent only when login is gained in that save and the field isn't empty. An empty field turns on login without a password, as in create mode. - The password is kept out of the "changed fields" diff, so unrelated edits never send `password ''`. - The password field is extracted from the create panel into a shared `RolePasswordField`, which also owns the "Password generated" announcement state. Follow-up to #52463. Changing the password of a role that can already log in is tracked separately and is the next PR in this stack. <img width="840" height="655" alt="Screenshot 2026-10-29 at 15 47 33" src="https://github.com/user-attachments/assets/8bb52e86-7b1e-4911-b625-2532fb7dfa25" /> ## Testing - New `RoleRow` component tests cover the field's visibility, sending the password, and omitting it when empty or for roles that already have login. - Existing `CreateRolePanel` tests still pass. Part of FE-4763. |
||
|
|
48bc6ef4a5 |
fix: log meter alarm (#52393)
I am updating these meters to make them not so elevated, to reduce customer alarm. I am improving the query info to reduce alarm, and adding a GH discussion link to help route customers to a central location to give feedback for us to consider while improving the product ahead of launch. ## Problem The upcoming meters for ingest and logs work well, but are increasing support ticket volume in a manner that is counter productive to our ability to address the issues, while trying to tend to customer concern and sentiment. ## Solution Addresses customer concern by reducing visibility and adding a GH discussion link to cusotmers can be routed to a cnetral place where we can provide updates and we can collect feedback publicly to address any customer concerns. We still want feedback and to address them, we just need to control the volume. Includes: - removing upcoming pill from both meters - moving the meters lower - adjusting the query text to add more confidence around billing timeline enforcement - added link to the GH discussion to route feedback before: sudio: usage <img width="1284" height="424" alt="image" src="https://github.com/user-attachments/assets/0587f2a9-be6d-4a11-8e33-64b6354bc41d" /> and after: <img width="861" height="448" alt="image" src="https://github.com/user-attachments/assets/708497af-eda9-478f-ad84-f29196f2f01f" /> |
||
|
|
1a2db3779e |
feat(docs): ask ai v2 (#52459)
## Problem - the change is a follow-up to search v2 (#51175, #52233), which runs as the `docs-search-v2` experiment - in the `search-v2-active` group, `cmd+k` opens the new search instead of the legacy command menu, so readers lose ask ai - a search with no results stops at "No results found." and gives no next step ## Solution - adds an ask ai panel and a `cmd+i` shortcut to search v2, so the `search-v2-active` group can ask supabase ai - adds ask ai entries to the top nav, the results footer and empty results, so readers can ask from search - changes search and ask ai to use one dialog for the page, so two dialogs never open together - adds `renderNoResults` and `renderFooterStart` slots to the `docs-search` panel, so the package has no ask ai code - nit: adds a `keycaps` variant to `KeyboardShortcut` with a design-system example, and uses it in the search trigger and footers | state | preview | | -------|------| | after | <video src="https://github.com/user-attachments/assets/6681fcba-6267-4ee1-b9e0-154b5f45091d" /> | <!-- ## Preview links If relevant, include links to changed pages for easy review access. Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions 1. open [/docs?docs-search-v2=search-v2-active](https://docs-git-antlio-feat-docs-ask-ai-supabase.vercel.app/docs?docs-search-v2=search-v2-active) 2. make sure that the top nav shows the search box and an `Ask AI` button 3. press `cmd+i` (`ctrl+i` on windows and linux), and make sure that the ask ai dialog opens with example questions 4. select an example question, and make sure that the bolt icon changes from gray to color while the answer loads 5. press `cmd+k`, and make sure that the same dialog changes to search 6. search for `zzqqxx`, select `Ask Supabase AI: zzqqxx`, and make sure that ask ai opens and sends the question 7. search for `auth`, and make sure that the results footer shows `Ask Supabase AI` and the keycap hints ## 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) |
||
|
|
a05e7ec1d7 |
refactor(studio): move self-hosted Assistant tools to contracts (#52468)
Stacked on supabase/supabase#52422. ## What The self-hosted Assistant tools become contracts, so every tool the Assistant can call now comes from the registry and the allowlist is derived from it. * The fallback tools (`getSchemaTables`, `getRlsKnowledge`, `getFunctions`, `getEdgeFunctionKnowledge`) are deleted. Self-hosted now gets the shared tools plus: * `list_tables`: a local contract with the same input as the MCP tool and a similar output, built from pg-meta. It shares its prompt guidance with the remote contract, which moves to `list-tables.remote.ts`. On platform the remote contract is still used. * `list_functions`: self-hosted only, filtered by schema in SQL. * `list_policies`: now available in both environments. * `runPgMetaQuery` (`tool-sql.server.ts`) runs pg-meta-built SQL and validates the rows with the builder's zod schema. Off platform it calls `executeQuery` directly, because the default fetcher goes through a relative API URL that doesn't resolve server-side. * The allowlist comes from the registry: * `ToolName` and the tool set validation schema are built from the contract keys. The tool category map is removed. * `mcp-tools.ts` keeps only tools with a remote contract, before opt-in filtering, so `UI_EXECUTED_TOOLS` is gone. `EXPECTED_MCP_TOOLS` is derived from the contracts and type-checked against the MCP package. * Saved chats: the legacy contracts now trim replayed outputs. `getRlsKnowledge` replays only the saved policy list, without the stale RLS instructions. `getEdgeFunctionKnowledge` replays a pointer to `load_knowledge`. * The logs reference text no longer names `query_logs`. ## Behavior changes * `list_policies` on platform validates rows before formatting, so a row that fails pg-meta's schema now errors the tool call instead of returning text. * `list_tables` on self-hosted doesn't include the MCP tool's optional `advisory` field. * `list_functions` with an empty `schemas` list returns every non-system schema. * On platform, if the MCP tools fail to load, `list_tables` is dropped from the tool set like the other remote tools. ## Tests * Unit tests for `runPgMetaQuery`, the local `list_tables` and `list_functions`, and the output mapping. The SQL boundary is mocked; not yet run against a live self-hosted database. * Legacy contract tests cover trimming, the empty and missing policy cases, and that replaying an already-trimmed output leaves it unchanged. ## 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>) |
||
|
|
7837277084 |
fix(studio): correct grammar in organization not found message (#52276)
## Problem The Studio error shown when an organization does not exist, or the user lacks permission to view it, has two grammar mistakes: "permission to access to it" and "Contact the the owner". ## Solution Changed the copy to "permission to access it" and "Contact the owner". This is a text-only change in `OrgNotFound.tsx`, reformatted with the repo's Prettier config. No logic changed. ## Review instructions 1. Open `/dashboard/org/<a-slug-that-does-not-exist>` on the Studio preview. 2. Confirm the message reads: "This organization does not exist or you do not have permission to access it. Contact the owner if you believe this is a mistake." ## 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 (not applicable, no docs changed) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
63ea299a2b |
docs(auth): clarify ip_address is not included in audit logs (#43005)
Fixes #42997 Removed `ip_address` from the audit log example and clarified that client IP addresses are stored in `auth.sessions`, but are not currently included in Auth audit logs. This aligns the documentation with the current behavior. --- ## I have read the CONTRIBUTING.md file. YES ## What kind of change does this PR introduce? Docs update ## What is the current behavior? The documentation example includes `ip_address` in Auth audit logs, but this field is not actually present in the audit logs. ## What is the new behavior? The example no longer includes `ip_address`, and a note clarifies that IP addresses are stored in `auth.sessions`, but not included in audit logs. ## Additional context N/A --------- Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com> Co-authored-by: Nik Richers <nrichers@gmail.com> Co-authored-by: Nik Richers <nik@validmind.ai> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
a19cfc54eb |
fix(docs): use string for smtp_port in custom SMTP example (#52418)
## Problem
The custom SMTP Management API example in the Auth documentation sends
`smtp_port` as a number (`587`). The API expects a string and rejects
the numeric value with:
```json
{"message":"smtp_port: Invalid input, expected string, received number"}
```
Fixes #52384.
## Solution
Change `smtp_port` from `587` to `"587"` in the `curl` example in
`apps/docs/content/guides/auth/auth-smtp.mdx`, matching the API's
expected string type.
## Review instructions
1. Open `apps/docs/content/guides/auth/auth-smtp.mdx`.
2. Find the custom SMTP Management API example.
3. Verify that `smtp_port` is `"587"` and that the rest of the example
remains unchanged.
## Validation
- `git diff --check` — passed.
- JSON payload parsing — passed; `smtp_port` is a string.
- Prettier check for the modified MDX file — passed.
- Full monorepo build — not run; this is a one-line documentation
change.
- Live API snippet test — deferred because it would target the
production Management API.
## Checklist
- [x] I have read
[[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md).
- [ ] If I edited an existing docs topic, I used the `/edit-the-docs`
skill, which applies the docs [[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide).
Co-authored-by: Nik Richers <nrichers@gmail.com>
|