mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 23:49:03 +00:00
create-pull-request/patch
40517
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
97df268569 |
chore(www): add blog cross-links and fix outdated links (2026 posts) (#51769)
## Summary - Adds cross-links from 2026 blog posts to related pages on supabase.com where the post already mentions the topic. - Updates existing links in these posts that redirected or returned 404 so they point to the final destination. ## Notes - Link changes only; no prose changes beyond wrapping existing wording in links. - All internal targets were checked against the sitemap. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
4e1c6b5907 |
fix(logs): preserve pagination cursor precision DEBUG-229 (#51597)
## Problem Rhe dashboard used only the last log's time to decide where to continue, and shortened that time to milliseconds. This could skip logs with the same recorded time, or times less than a millisecond apart, between one page and the next. This could happen even with Live turned off. ## Fix Use both the last log's full recorded time and its unique ID to decide where the next page starts. This lets the dashboard continue from the right log, even when several logs have the same time. The fix works with both supported log services. This PR fixes missing logs when loading older results. It does not change how Live fetches new logs; that improvement is handled separately in [#51599](https://github.com/supabase/supabase/pull/51599). Part 1/9 of the replacement stack for #51090, tracked by [DEBUG-229](https://linear.app/supabase/issue/DEBUG-229/make-live-mode-incremental). Targets master; review and merge the stack in order. This diff contains 389 changed lines, including tests. Stack: [#51597](https://github.com/supabase/supabase/pull/51597) → [#51598](https://github.com/supabase/supabase/pull/51598) → [#51599](https://github.com/supabase/supabase/pull/51599) → [#51600](https://github.com/supabase/supabase/pull/51600) → [#51601](https://github.com/supabase/supabase/pull/51601) → [#51602](https://github.com/supabase/supabase/pull/51602) → [#51603](https://github.com/supabase/supabase/pull/51603) → [#51604](https://github.com/supabase/supabase/pull/51604) → [#51605](https://github.com/supabase/supabase/pull/51605). ## How to test - `pnpm --filter studio exec vitest run data/logs/unified-logs-pagination.test.ts data/logs/unified-logs.utils.test.ts` - Check both log services: logs with the same recorded time, or times less than a millisecond apart, should appear once when loading older results. - Validation: focused tests, full Studio typecheck, changed-file lint, and formatting pass. |
||
|
|
5b8f504ce3 |
fix(studio): preserve restore times across date edits FE-4129 (#51613)
## Problem Changing the restore date resets the entered time, and the repeated hour at the end of daylight saving time can resolve to the wrong occurrence. Both can change the submitted recovery timestamp. ## Fix Store the recovery point as a Unix timestamp and preserve its occurrence when editing an ambiguous local time. Calendar edits carry the entered hours, minutes, and seconds onto the selected day, applying that day's timezone offset and retaining the existing backup-range clamping. This focuses on date edits and repeated-hour handling from #48903. It changes only the PITR form, its utilities, and regression tests. Related to [FE-4129](https://linear.app/supabase/issue/FE-4129/r2np-datetime-widget). ## How to test - In PITR or restore-to-new-project, enter a time and select another available calendar day. Expected result: the entered hours, minutes, and seconds remain selected, and the submitted timestamp matches the new date. - Run the PITRForm and PITR.utils Vitest suites. Their fixtures cover both occurrences of the repeated Madrid/New York hour, edits across DST, spring-forward normalization, fractional offsets, and backup boundaries. - Twelve focused regression cases passed under a Madrid browser timezone. Those cases plus the existing selector component test passed under Hong Kong, thirteen tests total. All CI checks passed, including Studio tests, all four Next.js/TanStack E2E shards, typecheck, lint ratchet, formatting, spelling, unused-code checks, and Docker build. |
||
|
|
cb17091d2d |
feat(studio): default staging project creation to v3 (50%) (#51808)
## Problem New projects created on staging default to v2 (`cloud_provider: 'AWS'`). We want staging to start exercising v3 (`AWS_K8S`). Resolves FE-4640. ## Solution In `ProjectCreationForm`, the initial cloud provider is now rolled once per mount: on staging (`NEXT_PUBLIC_ENVIRONMENT === 'staging'`) it is `AWS_K8S` with 50% probability, otherwise the existing default. v3 is only rolled if the `infra:cloud_providers` custom content allows `AWS_K8S`. Prod and local are unchanged, and the internal-only "Cloud provider" selector still lets admins override the default. ## Review instructions 1. Run Studio with `NEXT_PUBLIC_ENVIRONMENT=staging` and the `newProjectInternalOnlyConfiguration` flag on. 2. Reload the new-project page several times and check that the "Cloud provider" select defaults to AWS and AWS (Revamped) about equally often. 3. Change the select manually and confirm the choice is kept and the project is created with it. 4. With `NEXT_PUBLIC_ENVIRONMENT=prod` or `local`, confirm the default is always AWS. ## 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 with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
c168c991f7 |
chore(www): add blog cross-links and fix outdated links (2022 posts) (#51765)
## Summary - Adds cross-links from 2022 blog posts to related pages on supabase.com where the post already mentions the topic. - Updates existing links in these posts that redirected or returned 404 so they point to the final destination. ## Notes - Link changes only; no prose changes beyond wrapping existing wording in links. - All internal targets were checked against the sitemap. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
79c1d9b64c |
chore(www): add blog cross-links and fix outdated links (2021 posts) (#51764)
## Summary - Adds cross-links from 2021 blog posts to related pages on supabase.com where the post already mentions the topic. - Updates existing links in these posts that redirected or returned 404 so they point to the final destination. ## Notes - Link changes only; no prose changes beyond wrapping existing wording in links. - All internal targets were checked against the sitemap. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
a37e434aa4 |
chore(studio): track docs link clicks in the region selector footer (#51841)
Adds `free_tier_general_region_docs_link_clicked` event, fired when the regions docs link in the selector footer is clicked |
||
|
|
13d4d053c8 |
chore(www): add blog cross-links and fix outdated links (2020 posts) (#51763)
## Summary - Adds cross-links from 2020 blog posts to related pages on supabase.com where the post already mentions the topic. - Updates existing links in these posts that redirected or returned 404 so they point to the final destination. ## Notes - Link changes only; no prose changes beyond wrapping existing wording in links. - All internal targets were checked against the sitemap. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
f5288eb1e2 |
feat(studio): remember project home chart interval per project (#51833)
## Problem The time-range dropdown above the request charts on the project home page resets on every visit, so users who prefer a different range have to re-select it each time. Resolves FE-2828. <img width="819" height="353" alt="Screenshot 2026-10-16 at 10 42 05" src="https://github.com/user-attachments/assets/cb8d467b-e709-43b0-9ae4-b02ebccf5faf" /> ## Solution Persist the selection in localStorage, keyed per project (`home-chart-interval-${ref}`), in both usage section variants (`ProjectUsageSection` and `ProjectUsageSectionDeltas`, chosen by the `newHomepageUsageDeltas` flag). - New `resolveChartInterval` helper validates the stored value against the known keys and the plan's log retention, falling back to the plan default for corrupt values or after a plan downgrade. Unit tested. - Removed the `useEffect` in `ProjectUsageSection` that reset the interval on retention change, since it would overwrite the saved value. - Moved `getDaysRequired` into `logs.utils.ts` so the dropdown and the helper share the retention check. Manually verified with the flag on and off: reload keeps the selection, and each project keeps its own. |
||
|
|
bc27d2661e | chore(self-hosted): update 2026-10-16 - 0.8.3 (#51839) self-hosted/v0.8.3 | ||
|
|
8963a05479 |
chore(studio): drop anon key wording from connect snippet placeholders (#51793)
## Problem Several snippets in the dashboard Connect sheet still mention anon keys in placeholder text, even though publishable keys are now the recommended client key: - Swift, Kotlin, Expo, Ionic React and Ionic Angular show `<prefer publishable key instead of anon key ...>` when the project has no publishable key. - Astro, Nuxt, Refine, TanStack, Flask and the three .NET snippets fall back to `your-anon-key` when the project has neither key. - Ionic React stores the key in a variable called `supabaseAnonKey`. ## Solution - Both placeholders become `your-publishable-key`. - The Ionic React variable becomes `supabaseKey`, matching the other snippets. Snippets that switch to `*_ANON_KEY` environment variables for projects with only legacy keys (Next.js, Vite, SvelteKit and others) are unchanged. There, `your-anon-key` still matches the variable name. The Flutter snippet is handled separately in #51792. ## Review instructions 1. Open the Connect sheet for a project without a publishable key. 2. Go through the frameworks listed above and check that the placeholders say `your-publishable-key`. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) |
||
|
|
e4ee46854a |
docs: add Antigravity to Supabase agent plugin docs (#51647)
## What this does
Adds **Antigravity** to the Supabase AI agent plugin docs.
- **Plugin docs** (`AgentPluginsPanel`): Antigravity client between
Cursor and Gemini CLI. The install step is a copyable `agy plugin
install https://github.com/supabase-community/supabase-plugin` (checked
with `agy` 1.4.0: it installs v0.1.17 with both skills and the MCP
server). A note below points to the `/plugin` slash command and
[Antigravity's plugin
docs](https://antigravity.google/docs/plugins/#managing-plugins-by-surface).
- **Icon**: replaces the existing Antigravity icon (MCP client picker
and "Pick your agent" grid share it) with the official full-color icon
from the [Antigravity press assets](https://antigravity.google/press/).
- **"Pick your agent" grid**: Antigravity now shows the "Plugin + MCP"
badge and links to the plugin page.
Plugin support shipped in supabase-community/supabase-plugin
[v0.1.17](https://github.com/supabase-community/supabase-plugin/releases/tag/v0.1.17)
(#66), validated with `agy` 1.3.5 and 1.4.0.
## Testing
Ran the docs app locally at
|
||
|
|
09a4374b14 |
Fix: ensure the scoped oauth apps new UI doesn't show if mocks are enabled (#51829)
## Problem The feature flag enabling the new scoped oauth apps UI was enabled by mistake in production but this UI currently only work with mocks. We added an environment check in some places but not all so users did see the new UI ## Solution Add the environment check wherever needed |
||
|
|
17f21bf6a8 |
Joshenlim/fe 4510 auditlogs filterbar for account logs (#51790)
## Context Replaces the individual filters on the Account audit logs page with the filter bar to match a consistent UX across log surfaces <img width="1206" height="360" alt="image" src="https://github.com/user-attachments/assets/c5bdfd7e-3277-4695-b9fc-1791df8720c7" /> Also uses the `supportOperators` param for the `FilterBar` to support "OR" based operations when filtering for projects <img width="1219" height="97" alt="image" src="https://github.com/user-attachments/assets/d4748e6c-d1f3-4f23-b767-e0f4bb1c0a1c" /> The main changes for the `FilterBar` component made in this PR (which would be more relevant for the design team) are: - Added a divider between the options and "New group" - Originally didn't have a divider - So there's a clearer distinction that the "New group" isn't a option to set as the value for - Add a new `defaultGroupOperator` prop - Originally defaults to `AND` - However, in the context of Audit Logs when filtering for projects, you'd expect `OR` to be the default to filter across several projects (`AND` wouldn't make sense here) |
||
|
|
b74d799c3d |
fix(studio): sort edge function files by name and select the entrypoint by default (#51796)
## Problem The file list in an Edge Function's code view is shown in the order the Management API returns it (roughly `created_at` order), not sorted by name. Users expect name order, as in VS Code. Resolves FE-2799 ## Solution - `formatFunctionBodyToFiles` now sorts files by their displayed name before assigning ids, using a case-insensitive numeric comparison (`file2` before `file10`). The list is flat, so there is no folder grouping. - Sorting would have changed which file opens first, so the code page now selects the function's entrypoint file by default. `getDefaultSelectedFileId` matches the entrypoint's basename, then falls back to `index.ts`, then to the first file. The entrypoint isn't always `index.ts`: the docs allow any `.ts`, `.js`, `.tsx`, `.jsx` or `.mjs` file. - The shared `FileExplorerAndEditor` and the new-function page are unchanged. The code page passes the selection through the explorer's existing `selectedFileId` / `setSelectedFileId` props. - Files added or renamed in the editor keep their position until the next load. Before: <img width="259" height="370" alt="Screenshot 2026-10-15 at 16 44 50" src="https://github.com/user-attachments/assets/611fe2b9-5676-496a-85a9-e50032708c7a" /> After: <img width="259" height="371" alt="Screenshot 2026-10-15 at 16 35 19" src="https://github.com/user-attachments/assets/7f433661-ef34-4e3f-9143-afc67be1b30a" /> ## Review instructions 1. Open an Edge Function's Code tab for a function with several files, for example `utils.ts`, `index.ts`, `deno.json`. 2. Confirm the files are listed alphabetically and that `index.ts` is selected on load. 3. For a function with a custom entrypoint (for example `main.ts`), confirm that file is selected on load. 4. Run `pnpm test:studio -- components/interfaces/EdgeFunctions`. |
||
|
|
4593b3ffc0 |
feat(studio): compose pipeline creation step navigation (#51776)
## Problem The pipeline wizard in #49243 needs its merged components composed into a full-page flow, with values preserved when moving backwards and forwards. ## Solution - Compose four full-page SteppedFlow steps behind **Pipeline creation wizard**. - Preserve values through step navigation and browser Back/Forward. Refresh starts at Destination. - Reuse Studio’s header controls and confirm before discarding changes. - Defer step validation and creation; **Start pipeline** is disabled. **Add pipeline** and preview-off visits keep the sheet. | After | | --- | | <img width="1024" height="759" alt="New Pipeline Supabase" src="https://github.com/user-attachments/assets/7c3c4511-9a00-4e64-a86a-d6d9489f7d75" /> | | _Only available by navigating to `database/pipelines/new` with the feature preview on._ | ## Review instructions 1. Open the [Pipelines preview](https://studio-staging-git-dnywh-featpipeline-stepped-n-ce5307-supabase.vercel.app/dashboard/project/_/database/pipelines), select a test project and enable **Pipeline creation wizard**. Open the [wizard preview](https://studio-staging-git-dnywh-featpipeline-stepped-n-ce5307-supabase.vercel.app/dashboard/project/_/database/pipelines/new) for that project. Check the full-page layout and header at desktop and phone widths. 2. Enter connection details, select a publication and change initial-sync and advanced settings. Use **Back/Continue**, browser **Back/Forward**, and switch destinations to confirm values remain. 3. Check Review shows your settings, masks secrets and disables **Start pipeline**. Refresh and confirm it restarts at Destination. Incomplete steps are allowed in this navigation-only slice. 4. With changes, try header navigation or **Close**. Check **Keep editing** preserves values and **Discard changes** leaves the flow. Turn the preview off and confirm the wizard URL opens the sheet. |
||
|
|
780846e449 |
chore(www): add Native runtime hero images, hide hero on Parallel local projects (#51813)
## 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 (www feature catalog). ## What is the current behavior? Follow-up to supabase/supabase#51773. - `/features/native-local-runtime` has no hero image, so it shows the green placeholder block. - `/features/parallel-local-projects` shows the same placeholder. ## What is the new behavior? - Native runtime uses the Local development hero images (`local-development.png` and `-light.png`). - Adds an optional `hideHero` field to the feature type. When true, `pages/features/[slug].tsx` skips the hero block. Parallel local projects sets it. All other features render as before. ## Additional context The diff in `[slug].tsx` is mostly re-indentation from wrapping the hero block in a conditional. |
||
|
|
3960e6ac41 |
chore(deps): bump lucide-react to v1 (#51770)
## Problem Lucide React v1 improves screen reader behaviour (icons are hidden from assistive tech by default). It also removes brand icons such as GitHub. We were still on Lucide 0.x across the monorepo. ## Solution - Move every workspace onto one shared Lucide React v1 version via the pnpm catalog. - But Lucide React v1 [deprecated brand icons](https://github.com/lucide-icons/lucide/blob/main/BRAND_LOGOS_STATEMENT.md) - Meaning we need to handle any _old_ brand icons we used from Lucide 0.x. - Luckily, that was just `GitHubIcon`. So... - Add a `GithubIcon` in `packages/ui` that matches Lucide’s previous GitHub icon, and use it wherever we imported GitHub from Lucide. - No other Lucide brand icons were in use. - Studio “Continue with GitHub” sign-in still uses the existing SVG asset (`github-icon.svg`), not this component. - Keep the `Icon` suffix import style [recently introduced](https://github.com/supabase/supabase/pull/51659) - Monorepo apps now use `catalog` Lucide React v1. ## Review instructions 1. Open [Studio preview](https://studio-staging-git-dnywh-bump-lucide-react-v1-supabase.vercel.app/dashboard/org) on a project that is connected to GitHub: - Project home → Activity stats “GitHub” row - Org project list → GitHub badge on a connected project card/row - Branches → GitHub link on a branch row, or “Sync with a GitHub branch” - Project Settings → Integrations → GitHub integration panel 2. Open [/kb/guides/sample-guide](https://supabase.com/kb/guides/sample-guide) → confirm “Go to the GitHub discussion” shows the icon. 3. Open [/docs/reference/javascript](https://supabase.com/docs/reference/javascript) → confirm the header GitHub control still shows the icon. Or [/docs/guides/troubleshooting/rls-simplified-BJTcS8](https://supabase.com/docs/guides/troubleshooting/rls-simplified-BJTcS8) → “View discussion on GitHub”. |
||
|
|
dfe5d436da |
chore(www): add blog post on local Supabase projects per agent (#51777)
## 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: adds a new blog post to `apps/www/_blog`. ## What is the current behavior? There is no blog post covering multiple local Supabase projects (one per git worktree), the native no-Docker runtime, or faster remote branches in CLI v2.119.0. ## What is the new behavior? Adds "A local Supabase project per agent, with or without Docker" at `/blog/local-supabase-project-per-agent-with-or-without-docker`, dated 2026-10-14. Prettier passes on the new file. The `og.png` and `thumb.png` images are not included in this PR yet. ## Additional context Authors: `jgoux`, `wenbo` (both already in `authors.json`). |
||
|
|
008178c621 |
chore(www): add Local development feature page, update CLI and Branching (#51773)
## 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 (www feature catalog copy). ## What is the current behavior? - No feature page for local development. - The CLI entry predates multi-project local dev, config-driven development, and declarative schemas. - The Branching entry still says "Branching 2.0 (currently in public alpha)" and links to `/platform/branching`. Linear: MARKET-1648 (Local development, CLI), MARKET-1919 overlaps on CLI bullet 3. ## What is the new behavior? Updates `apps/www/data/features.tsx` so the catalog matches what shipped at Select 2026: - **New: Local development** (`/features/local-development`). Multiple local projects per machine, one per git worktree, plus the native runtime for environments without Docker. Experimental behind `SUPABASE_EXPERIMENTAL_STACK=1`, so the stage is Public Alpha. - **Rewrite: CLI** (`/features/cli`). New subtitle, body, and `docsUrl`. - **Rewrite: Branching** (`/features/branching`). Dashboard branching is the default, with inherited configuration and faster provisioning. Stage is GA, and `docsUrl` moves to `/deployment/branching`. Copy comes from the Notion Features Page database, reviewed 2026-10-14. ## Additional context - Adds the Local development hero images (`/images/features/local-development.png` and `-light.png`). - The existing `parallel-local-projects` and `native-local-runtime` entries are left as is. They overlap with the new page. --------- Co-authored-by: Wen Bo Xie <wenbox323@gmail.com> |
||
|
|
43e18fa0d9 |
blog: how a new branch gets its config, migrations, and functions (#51789)
## Problem We want a public engineering post that explains what runs when a Supabase branch is created, in what order, and what to check when a step fails. ## Solution Adds the engineering post "How a new branch gets its config, migrations, and functions" under the `engineering` category, with the OG and thumbnail images at `apps/www/public/images/blog/how-a-new-branch-gets-its-config-migrations-and-functions/`. ## Review instructions 1. Open `/blog/how-a-new-branch-gets-its-config-migrations-and-functions` on the preview link. 2. Check that the mermaid diagram renders and the H3 headings appear in the table of contents. 3. Check that the post card and link preview show the images and that the post appears under the Engineering filter on `/blog`. 🤖 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> |
||
|
|
09f80f528e |
docs: reference the ability to use custom dns from VPCE (#51778)
Quick update to privatelink walkthrough in reference to custom DNS |
||
|
|
991653aa36 |
chore(studio): allow project creation region flags to resolve independently (#51787)
## Problem Updating our region experiment flags to be able to handle latest experiment. ## Solution Make flags resolve independently. cc @charislam ## Review instructions tbc --------- Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com> |
||
|
|
0612cbdb27 |
fix(ui): drop stray tab border (#51657)
## Problem there's a legacy border style duplicating border after recent rabs change in docs ## Solution - removes stray border | state | preview | | -------|------| | before | <img width="913" height="509" alt="image" src="https://github.com/user-attachments/assets/dba5a5ee-5212-4be2-86c0-e96d9dac41fb" /> | | after | <img width="913" height="509" alt="image" src="https://github.com/user-attachments/assets/1f7d20eb-2f03-45b0-9a2c-4af8fa335784" /> | <!-- ## 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. visit `/docs/guides/auth/passwords#signing-up-with-an-email-and-password` ## 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) |
||
|
|
688f5ecd55 |
chore: Update API types (#51798)
Regenerates `packages/api-types/types` from the production OpenAPI specs with `pnpm api:codegen:prod` (no hand edits), so the committed types match production and `verify-production-types` passes. - `platform.d.ts`: adds the db-integrity operations path and schemas, new scoped permission values, and the `t8i.nano` instance type. - `api-v2.d.ts`: webhook event-type enums drop the legacy `project.v1.*` / `organization.v1.*` names, `custom_headers` in endpoint bodies is no longer nullable, and delivery attempts gain `error_code` / `error_message`. `api-v1.d.ts` is unchanged. - Studio: `WebhookEndpointAttributesInput.custom_headers` no longer allows `null`, matching the API. The mapper already sends either a headers object or `undefined`, so runtime behavior is unchanged. [FE-4639](https://linear.app/supabase/issue/FE-4639/regenerate-production-api-types-and-fix-resulting-type-issues) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
ebfe057c9a |
feat(kb) - add in content negotiation support (#51801)
## Problem KB doesn't currently support content negotiation via `-H "Accept: text/markdown`, which helps agents dramatically cut down on the tokens they use. ## Solution Adds in Vercel rewrites + headers to support this functionality. ## Output ### Live [Live](https://supabase.com/kb/guides/sample-guide) ``` curl "https://supabase.com/kb/guides/sample-guide" \ -H "Accept: text/markdown" ``` ``` <!DOCTYPE html><html lang="en" data-astro-cid-ju4pidww><head><meta charset="utf-8"><meta name="viewport" content="width=device-width"><meta name="robots" content="noindex, nofollow"><meta name="description" content="A lorem ipsum sample guide exercising every base Markdown element supported by the guide layout."><script> // Set data-theme on <html> before first paint, so the page doesn't flash // the wrong theme while this loads. Defaults to dark (no system-preference // check — the toggle in components/ThemeToggle.tsx is light/dark only). ;(function () { try { ``` ### Preview [Preview](https://kb-git-kody-devrel-718-content-negotiation-supabase.vercel.app/kb/guides/sample-guide) ``` curl "https://kb-git-kody-devrel-718-content-negotiation-supabase.vercel.app/kb/guides/sample-guide" \ -H "Accept: text/markdown" ``` ``` # Markdown elements sample A lorem ipsum sample guide exercising every base Markdown element supported by the guide layout. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. ``` --------- Co-authored-by: Claude Haiku 5.5 <noreply@anthropic.com> |
||
|
|
d0cf8dbc50 |
fix: align webhook FE with updated API changes (#51800)
## What Aligns the webhooks FE with backend changes confirmed by Pawel (FE-4621): 1. `custom_headers` is optional but never null, matches the updated contract. 2. Removed the client-only `name` field (never persisted by the API). Display name is now the endpoint's URL plus its subscribed event types. 3. The deliveries list endpoint now returns the full `event` object, so `eventType`/`eventPayload` are always populated. Added an Event column to the deliveries table. Also regenerates `packages/api-types` from production to pick up these changes. While testing, found and fixed two more related issues: 4. A delivery can briefly exist before the backend finishes attaching its event data, regardless of what triggered it (test, retry, or real traffic). The deliveries list now polls every 5s while open, so new or still-settling deliveries fill in automatically instead of requiring a manual refresh. 5. "Send test event" always defaulted to an unrelated sample event type. The test endpoint actually accepts a specific `event_type`, so this now sends the endpoint's own subscribed type automatically, or shows a picker when there's more than one to choose from. ## Testing All webhooks component/unit tests pass (30/30), typecheck and lint clean. Manually verified on localhost against a live backend. ## Note This may clash with #51614 (`custom_headers: null` in a test fixture, no longer a valid value once this merges). Will follow up there after this lands. |
||
|
|
0e5753aac7 |
Add blog post: Sync real-time Stripe data to Supabase with Stripe Data Pipeline (#51775)
## 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? Blog post (apps/www) ## What is the current behavior? There is no blog post announcing Stripe Data Pipeline support for Supabase as a Postgres destination. ## What is the new behavior? Adds the launch post for 2026-10-15, with OG and thumbnail images, and a new author entry for Saba Pochkhua in `authors.json`. ## Additional context - Draft until the Stripe dev rel video is ready. There is a TODO comment where the embed goes. - Author photo for Saba is currently the GitHub avatar and will be swapped for a different photo. - Content is shared with Stripe and still in internal review. |
||
|
|
d1a38675ea |
feat(www): add project ID field to compute waitlist (#51772)
## 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? - Feature: new optional Project ID field on the Compute private alpha waitlist form at /compute ## What is the current behavior? The waitlist form doesn't ask for a project, so each project ID has to be collected by follow-up before access can be granted. ## What is the new behavior? - Adds an optional "Project ID" field, with an info tooltip that shows which part of the project URL it is and links to Settings → General - Adds the note "Only projects created in us-west-2 can access Compute." - Also accepts a pasted project URL or dashboard URL and normalizes it to the 20-letter ref, on both the client and the API route - Sends the ref to HubSpot as the existing `supabase_project_ref` contact property - Adds unit tests for the ref parser ## Additional context `supabase_project_ref` has been added to the Compute Private Alpha Waitlist form in HubSpot and tested. (The v3 integration submit endpoint rejects fields that aren't on the form, so this was required before merging.) --------- Co-authored-by: Ana <ana1337x@users.noreply.github.com> Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com> |
||
|
|
339797498c |
docs(vercel-marketplace): refresh the Vercel Marketplace guide (#51630)
## Problem The [Vercel Marketplace guide](https://supabase.com/docs/guides/integrations/vercel-marketplace) describes the integration as a Public Alpha, and its Quickstart doesn't match how readers set it up. The **Deploy with Vercel** button deploys an example app that doesn't include Supabase. The section on environment variable sync sits next to the two setup paths, even though it applies to both. The page also uses promotional phrasing and bare `Note:` paragraphs where the style guide calls for admonitions. These issues came up while reviewing #51617, which fills in the **Via Vercel Marketplace** step. Resolves DOCS-1451. ## Solution Manual review plus a review with the `edit-the-docs` skill. - **Quickstart:** The Quickstart now opens by naming both setup paths, a starter template and the Vercel Marketplace, and explains that both create a Supabase project and sync the same environment variables. The template button deploys the Next.js Supabase starter and installs the Supabase integration from the Vercel Marketplace, matching the deploy link on Vercel's Supabase template page. - **Release status:** The Public Alpha admonition is removed. - **Overview:** Promotional phrases such as "seamless experience" and "easy access management" now name the specific behavior: Vercel bills you, you sign in with your Vercel account, and Vercel team roles carry over to Supabase. - **Studio support:** Readers get a click path for each entry point. The **Integrations** tab opens the Supabase dashboard homepage, and the **Storage** tab opens a specific project. Both tab names match the current Vercel dashboard. Each instruction names the location before the control, and buttons use _click_, per `WORD_LIST.md`. - **Admonitions:** The permissions note is now a `note` admonition. The billing cycle note is a `caution` admonition, because a plan change resets the billing cycle. - **Capitalization:** Common nouns such as organization, project, and integration are lowercase. - **Limitations:** The organization removal bullet now gives the order of operations: delete the associated projects, then uninstall the integration. Two writing patterns from this PR are now proposed as style guide rules in #51632 (DOCS-1452): using _the following_ when a sentence sits between a reference and its list, and putting the location before the action in UI instructions. ## Preview links https://docs-git-alexisa-docs-1451-supabase.vercel.app/docs/guides/integrations/vercel-marketplace ## 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) |
||
|
|
bb1a2ab70d |
feat(docs): add Copy as Markdown and Ask AI to troubleshooting pages (#51501)
Resolves [DOCS-1334](https://linear.app/supabase/issue/DOCS-1334/add-copy-as-markdown-ask-affordance-to-troubleshooting-pages). ## What this changes Troubleshooting pages now have the same AI tools as guides: Copy as Markdown, Ask ChatGPT, and Ask Claude. Readers can copy an article as markdown, or open it in an AI assistant in one click. The actions appear in the troubleshooting sidebar, after Keywords. The heading matches the other sidebar headings. On narrow screens, the sidebar stacks under the article, so the actions also work on mobile. <img width="1512" height="908" alt="Screenshot 2026-10-09 at 2 29 13 PM" src="https://github.com/user-attachments/assets/991c1555-c163-4894-91e5-8701bb1831f8" /> <img width="740" height="831" alt="Screenshot 2026-10-09 at 2 32 31 PM" src="https://github.com/user-attachments/assets/1b9423d4-9f26-4f6f-9c9a-e95d50d7808e" /> ## How it works Before this PR, the AI tools section was built directly into the guides sidebar, so only guides could use it. This PR moves it into its own component, and guides and troubleshooting pages both render that component. A future change to these actions, such as adding another assistant or changing the Ask prompt, then happens in one place and applies to both page types. Each page passes a page type to the component. The component includes that page type in the analytics events it sends when someone copies markdown or clicks an Ask link. Guides send `guide`, and troubleshooting pages send `troubleshooting`, so usage on each page type can be measured separately. ## Open question This PR adds a `troubleshooting` page type for analytics. It stays in draft until that value is confirmed. If we reuse `guide` instead, it's a one-line change. ## Testing - Copy as Markdown copies the article and shows the "Copied!" state. - Ask ChatGPT and Ask Claude open with the canonical page URL. ChatGPT requires you to be logged in, which is also true on existing guide pages. - The sidebar layout works at desktop and mobile widths. - Guide pages look and behave the same as before. ## Possible follow-up On troubleshooting pages, the sidebar lists Products, Related error codes, Keywords, AI tools, and then "Is this helpful?". The first four headings use the sidebar's regular heading style. "Is this helpful?" still uses the small monospace style from the guides sidebar, so it stands out. This PR lets the AI tools component accept a heading style from the page it's placed on. The feedback component could accept a heading style the same way. Troubleshooting pages could then pass the regular sidebar style, and every heading in that sidebar would match. --------- Co-authored-by: Miranda Limonczenko <miranda.limonczenko@supabase.io> |
||
|
|
9ae8432dc7 |
refactor(studio): migrate create, delete, and run notebook tools to tool contracts (#51754)
## Summary Migrates the create, delete, and run notebook assistant tools to the tool contract + server pattern used by `update_notebook`. Each tool now defines its schema once in a shared contract, with server-only execution split into a `.server.ts` module. This removes duplicated client-side schemas and gives the three tools one shared notebook mutation output schema. ## Changes - Add `create-notebook`, `delete-notebook`, and `run-notebook` tool contracts, each with a `.server.ts` implementation. - Remove the duplicated client-side schemas for these tools from `notebook-tools.ts` and the registry. - Add `notebook-mutation-output.ts` as the single output schema shared by the notebook mutation tools. - Add `lib/ai/opt-in-level.ts` with the opt-in level helpers, extracted from the existing module to break an import cycle. - Add optional `ToolContract.outputOnInvalid` so `run_notebook` history replay can reuse a stored output when input fails validation. - Update the AI assistant panel renderers (proposal, run, opt-in modal and request) and the tool filter, sanitizer, and cache invalidation to use the new contracts. ## Deviations worth reviewing - **`outputOnInvalid` on `ToolContract`.** This is a new optional hook. It exists so `run_notebook` history replay can return a valid output when stored input no longer passes validation. Reviewers should confirm this is the right level for the hook rather than handling it inside the tool. - **`opt-in-level.ts` extraction.** The helpers were moved into their own module to break a circular import between the tool modules and the opt-in components. This adds one file, but no behavior change is intended. - **`create-notebook` contract imports the data-layer `notebook-schema`.** This matches `update-notebook`. It should be moved behind the contract before the planned ESLint rule step, which restricts contract modules from importing data-layer code. ## Testing - `vitest` for `lib/ai`, `components/ui/AIAssistantPanel`, and `state`: 920 tests pass across 71 files. - `tsc`: one error remains in `packages/ui-patterns` (`InstructionBlocks.tsx`), which is unrelated to this change. I have not verified whether it also fails on the base branch. - ESLint reports no errors on the changed files (9 `no-explicit-any` warnings in `tool-filter.ts` and its test); Prettier is clean. - Not run: knip and the lint ratchet. |
||
|
|
dfd1f58838 |
fix(studio): use publishableKey in the Flutter connect snippet (#51792)
## Problem The Flutter snippet in the dashboard Connect sheet calls `Supabase.initialize` with `anonKey`. The current stable `supabase_flutter` (2.18.3) deprecates `anonKey` in favor of `publishableKey`, so the copied code shows a deprecation warning right away. ## Solution Pass the key as `publishableKey` and change the fallback placeholder to `your-publishable-key`. The old placeholder told users to prefer the publishable key over the anon key, which no longer makes sense once the parameter itself is named `publishableKey`. ## Review instructions 1. Open a project in the dashboard and click Connect. 2. Choose Framework, then Flutter. 3. Check that `lib/main.dart` calls `Supabase.initialize(url: ..., publishableKey: ...)`. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) |
||
|
|
97bd456842 |
fix: consolidate SMTP minimum interval into Rate Limits page (#51784)
## What Moves the "Minimum interval per user" (SMTP_MAX_FREQUENCY) setting from the Custom SMTP page to the Rate Limits page. The field is always visible there now, disabled with a tooltip when Custom SMTP isn't configured, linking to the SMTP settings page. ## Why This setting can cause `over_email_send_rate_limit` errors even when all settings on the Rate Limits page allow more traffic, because it lived only on the SMTP page. Consolidating it onto Rate Limits makes the actual rate-limiting behavior visible in one place. Fixes FE-4627 ## Testing - Verified field is disabled with explanatory tooltip when Custom SMTP is off - Verified field becomes editable and saves correctly once Custom SMTP is configured - Confirmed field no longer appears on the SMTP settings page - Ran typecheck, lint, and SmtpForm unit tests locally |
||
|
|
7e3d8dfe35 |
fix(studio): load all org projects in UpdateRolesPanel (#51780)
## Summary
Fixes FE-4635: `UpdateRolesPanel` only loaded the first page (96) of org
projects. Instead of fetching every page, the team settings no longer
need the full project list.
```diff
<UpdateRolesPanel>
useOrgProjectsInfiniteQuery({ slug }) // only pagination.count is used
- orgProjects = all loaded projects
- noAccessProjects = orgProjects - projectsRoleConfiguration
- toggle off "Apply to all projects" -> select every org project
+ toggle off "Apply to all projects" -> start with no projects selected
- <Collapsible> listing every project without access
+ <Admonition> "access to N projects out of M total projects"
```
```diff
MemberRow
- orgProjects from TeamSettingsDataContext
- projectNameByRef = Map(orgProjects)
- projectsApplied = role.projects.map(lookup name).filter(has name)
+ projectsApplied = role.projects // roles API already returns { name, ref }
<HoverCardContent>
+ appliesToAllProjects
+ ? "<role> role applies to M projects" // no project list
+ : "<role> role applies to N projects" + list of projects
```
```diff
MembersView / TeamSettingsDataContext
- useOrgProjectsInfiniteQuery
- orgProjects
```
## Evidence
- **Before:** orgs with more than 96 projects: toggling off "Apply roles
to all projects" assigned only the first 96, and the "no access" list
was capped at 96. API logs showed only `offset=0` requests from the team
page.
**After:** no code path depends on the loaded project list, so the 96
cap no longer applies. The screenshots below show the new UI. No
automated test covers orgs with more than one page of projects.
## Merge Danger
**Door:** two-way
**Blast Radius:** Team settings
- Toggling off "Apply roles to all projects" now starts with nothing
selected instead of every project.
- The member row hover card for org-wide roles shows only the project
count, not the project list.
- The "no access" project list in the panel is replaced by a count.
New UI:
<img width="602" height="381" alt="Screenshot 2026-10-15 at 14 11 17"
src="https://github.com/user-attachments/assets/39d5ef62-5beb-4e14-9c6f-740bd7f113a1"
/>
<img width="593" height="334" alt="Screenshot 2026-10-15 at 14 11 23"
src="https://github.com/user-attachments/assets/ec06bbc4-b2af-458f-b664-894e9567ff23"
/>
<img width="637" height="248" alt="Screenshot 2026-10-15 at 14 11 38"
src="https://github.com/user-attachments/assets/e4ef9774-58eb-415d-aab8-f0497e3fef2a"
/>
<img width="496" height="431" alt="Screenshot 2026-10-15 at 14 11 46"
src="https://github.com/user-attachments/assets/d1618ce3-a03d-41ec-985d-ca5936c754a7"
/>
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
|
||
|
|
78348a767a |
docs(ai): Add Assistant code guide (#51785)
## Problem A starting point for humans and agents whenever they need to modify the AI assistant. Working on an issue for the Supabase Assistant for the first time, I missed having a starting point so I could guide the LLM / myself on where to start looking. A link to share with someone so they know its current architecture. ## Solution Links from the agents.md so the reference is not lost and a main readme that includes some diagrams. <!-- ## 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 Check the references make sense (i.e.: it fits well your existing workflow and doesn't break any existing one). Main file lives [here](https://github.com/supabase/supabase/blob/f87b248056837df5abacb1e581fc70c234fb0037/apps/studio/lib/ai/README.md) ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) |
||
|
|
3b810b13bd |
feat(studio): add new assistant evaluation cases for common user issues (#51119)
## Problem We ran a test using the AI assistant for support and added these eval cases to improve the AI assistant. https://linear.app/supabase/issue/TOOLING-1172/create-ai-assistant-supported-tickets-report ## Solution Added the eval cases based on what the support team had to to do resolve the user queries. ## 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) |
||
|
|
1d9808ab8b |
fix(studio): name the organization in the overdue invoices banner (#51747)
## Problem The "Outstanding invoices in other organization" banner asks users to pay invoices to avoid service disruption, but never says which organization has them. Users with several organizations have to guess where to go. The banner also looked at only the first overdue organization. Its link pointed at that organization's billing page without naming it, and if the lookup failed, it fell back to the current organization's billing page. Linear: FE-4587 ## Solution - `useOrganizationRestrictions` now collects every other organization with overdue invoices from the organizations list. It dedupes them, excludes the current one, and orders them by name, which the list already is. It no longer falls back to the current organization's slug. - The banner names only the first organization, linked to its billing page: "Pay invoices for **Acme** to avoid service disruption". When more organizations are affected it adds a count: "…for **Acme** and 2 others…". Paying the first often clears the rest, and the next one appears once it's resolved. - If no affected organization can be resolved, for example the user lost access, the banner shows "Pay outstanding invoices to avoid service disruption", linking to `/organizations`. - The title is now plural: "Outstanding invoices in other organizations". - The dev toolbar's "overdue invoices from other org" override now injects overdue invoices for every real other organization. It previously used a made-up ID, so the banner could never show a name. I also replaced a nested ternary there, per Studio's style rules. For one org: <img width="1022" height="42" alt="Screenshot 2026-10-14 at 12 01 32" src="https://github.com/user-attachments/assets/8f34c2ff-d47f-45fc-80a4-c7cdc3df558b" /> For multiple orgs: <img width="1057" height="42" alt="Screenshot 2026-10-14 at 13 39 42" src="https://github.com/user-attachments/assets/2100b0b5-65a3-4d7c-8521-48d8e71b62ef" /> Note: Overdue invoice counts are not shown by design, only that one or more overdue invoices exist for an org. ## Review instructions 1. Run Studio in platform mode with at least three organizations, and open a project page. 2. Enable the dev toolbar from the account menu ("Local tools" > "Dev toolbar"). 3. In the Warnings tab when on a Project page, choose "Overdue invoices from other org". 4. Check that the banner names the first other organization alphabetically, shows "and N others" when there's more than one, and that the name links to that organization's billing page. 5. Use "Reset to real data" to clear the override. Tests: `pnpm --filter studio exec vitest run components/interfaces/Organization/restriction.constants.test.tsx hooks/misc/useOrganizationRestrictions.test.tsx` ### Mocking in QA Mock `/platform/stripe/invoices/overdue` for overdue invoice counts in different organizations. Note: The endpoint will not return an org in the result if the overdue invoice count is zero. ## 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) (not applicable) |
||
|
|
c829b26bd5 |
(feat) Allow to filter organization users by role (#51653)
## Problem It can be hard to verify users roles in organizations with many members ## Solution Add a filter on the team pages for organization roles. <img width="1174" height="310" alt="image" src="https://github.com/user-attachments/assets/dfc2ccdc-b83e-45c5-9a6c-d50417a3ff3e" /> ## Review instructions - Open the organization team page - Select a role and verify only members who have this role are displayed - Ensure other filters still work --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
c3fd259904 |
fix(ai): assistant sql row cap (#51608)
## Problem attempt to [fix this ticket](https://supabase.frontapp.com/inboxes/teams/folders/27650590/unassigned/116845868830): when the studio ai assistant runs a query with previously set database opt-in, `execute_sql` returns every row while the query cell's footer says "Limit 100 rows" causing in case of large amount of returned rows browser to freeze + the chat fails with "Sorry, I'm having trouble responding right now" until the user clears it ## Solution - `execute_sql` now keeps the first 100 rows using the cell's existing `DEFAULT_CELL_ROW_LIMIT` - uses in history sanitizer the same `toModelRows` helper - chats saved before this change have no `totalRows` so the helper falls back to `rows.length` and cuts them to 100 too <!-- ## 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. In a test project, run this in the SQL editor: ```sql create table "emailSubscriber" (id bigint generated always as identity primary key, email text); create table "stripeCustomer" (id bigint generated always as identity primary key, email text); insert into "emailSubscriber" (email) select md5(g::text) || '@example.com' from generate_series(1, 50000) g; insert into "stripeCustomer" (email) select md5(g::text) || '@example.com' from generate_series(1, 1000) g; 2. on the live dashboard, open the assistant in a new chat and send "i want all the emails in emailSubscriber where the email is not in the stripeCustomer table" 3. in the opt in requested settings choose "Schema, Logs & Database Data" 4. then click run query, the cell should show 100 rows (vs 50000 rows in prod) ## 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: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
c8c12a87b4 |
feat(studio): add support satisfaction survey page (#51648)
## Problem After a support ticket is resolved, customers receive an email with a link to a satisfaction survey. That survey page is currently served from a standalone function outside this repo. We are consolidating it into the dashboard so it is deployed, monitored and tested with everything else. Linear: [TOOLING-1425](https://linear.app/supabase/issue/TOOLING-1425/build-csat-in-supase-studio) ## Solution Adds a public page at `/support/csat` that collects the survey answer and posts it to a new Platform endpoint, `POST /platform/support/csat`, which records the answer on the support conversation. Key choices: - **Pre-auth page**, modelled on `/verify-email`. Customers arrive from an email and may not have a dashboard session. Hosted platform only; self-hosted routes to 404. - **URL shape** `?conversation_id=cnv_…&helpful=yes|no` matches the links already sent in survey emails, so the email template only needs its host changed. `helpful` preselects the answer, defaulting to Yes. - **Copy and behaviour match the existing survey page**: same title, question, labels, button text, and result messages. - **Form** uses react-hook-form + zod; Yes/No are toggle buttons, the comment is optional. - **States**: missing or malformed ticket reference, already submitted (409), ticket mismatch (404), and a generic error that keeps the form so the customer can retry. - The mutation uses `fetchHandler` directly, like the email-verification mutation, because the endpoint is not in the generated API types yet. Screenshot: <img width="977" height="801" alt="image" src="https://github.com/user-attachments/assets/2331861e-e8e9-43e1-84fc-3bf5786c145e" /> Depends on the Platform endpoint https://github.com/supabase/platform/pull/40027. Until it is deployed, submissions fail with the generic error state. ## Review instructions 1. Run Studio against a Platform stack that has the `POST /platform/support/csat` endpoint. 2. Open `/support/csat?conversation_id=<a support conversation id>&helpful=yes` while logged out. The page renders without redirecting to sign in, with Yes preselected. 3. Pick an answer, optionally add a comment, and submit. The success message appears and the answer is recorded on the conversation. 4. Submit again for the same conversation: the page reports that the survey has already been submitted. 5. Open the page with no `conversation_id`: the page reports an invalid ticket. 6. `pnpm --filter studio exec vitest --run components/interfaces/Support/CsatSurvey` passes (18 tests). ## 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: Gildas Garcia <1122076+djhi@users.noreply.github.com> |
||
|
|
ad37074869 |
Clean up JWT keys page (#51745)
## Context Initial feedback was mainly that the "Previously used keys" table was scrollable while the top table wasn't which was a bit inconsistent UX, so this PR addresses that but also makes a couple of UI adjustments to the JWT keys page to tidy things up ### Before <img width="1142" height="912" alt="image" src="https://github.com/user-attachments/assets/ca5f8bc6-8b73-4d96-9055-24a39544fc06" /> ### After - Removed color indicators + badges on the key's status and ID - reckon these are unnecessary signals and plain texts work fine. Opted for `text-foreground-lighter` for keys which status isn't `in_use`, mainly to highlight the current key which is the most important imo - Removed icons for status and type, also reckon unnecessary as they don't really communicate the context much quicker than their texts - Removed "Legacy" prefix on the type column (e.g for HS256) - reckon unnecessary, we don't label this as legacy either in the create standby key dialog, doesn't really communicate any implications - Standardized widths of status, key id, type, and last used columns - these values are fixed and won't deviate, so fixing the widths will allow a more uniform layout across the 3 tables - Prioritise order of "current" key above "standby" key - Use ButtonTooltip + default variant for the "More actions" CTA, also removed the "Actions" header text - "Last rotated at" column only shows up on `xl` viewport breakpoint rather than `lg` - Remove a number of unnecessary class names that were applied on the `Table` components <img width="1145" height="909" alt="image" src="https://github.com/user-attachments/assets/af596931-a126-4883-999b-829a9c9359fc" /> |
||
|
|
dccad31a39 |
Virtualize AuditLogsTable component (#51748)
## Context
The audit logs endpoint isn't paginated, so we could be fetching a lot
of rows at once
e.g on the Supabase Dev org, the orgs audit logs were pulling 4k rows
from the endpoint which i noticed a bit of browser slow down - so this
should alleviate the browser performance impact
There shouldn't be any visual difference from the changes here 🙏
|
||
|
|
4215b6ca32 |
feat(studio): add cost estimates and validation feedback to pipeline review (#51641)
## Problem The pipeline wizard in #49243 needs estimated costs and validation feedback in review before creation. ## Solution Add the megabranch’s inline cost estimate and validation feedback to preview-enabled creation. Initial-sync costs follow the selected tables; ongoing pipeline and streaming rates remain visible. Missing estimates do not block creation. Validation feedback distinguishes critical issues from warnings. Preview off and editing keep the existing layout. The Start action, warning confirmation and final cost dialog stay unchanged; no wizard routing is added. Stacked on #51635. ## Review instructions 1. Open the [Pipelines preview](https://studio-staging-git-dnywh-featpipeline-review-costs-supabase.vercel.app/dashboard/project/_/database/pipelines), select a test project with Pipelines enabled, enable **Pipeline creation wizard** in Feature Previews and click **Add pipeline**. Select a publication and confirm **Estimated costs** follows Data review. 2. Compare **All tables**, **No tables** and selected-table initial sync. Confirm initial-sync totals follow the selection, while hourly pipeline and streaming rates stay visible. With **No tables**, initial sync should cost zero. Check desktop and phone widths. 3. Enter valid-format but incorrect destination credentials and click **Start pipeline**. Confirm critical validation issues appear inline and creation stops. Correct the credentials and retry. If warnings are returned, confirm the review explains they may affect replication and the existing **Start pipeline anyway** confirmation still applies. Cancel before final creation. 4. Turn the preview off and reopen **Add pipeline**. Confirm there is no inline cost review. With the preview on, edit an existing pipeline and confirm its original layout remains. |
||
|
|
f20277377b |
feat(studio): add pipeline data and custom settings review (#51635)
## Problem The pipeline wizard in #49243 needs publication, initial sync and custom settings reviewed before creation. ## Solution Extend the preview-enabled review from #51633 with Data, custom connection settings and configured BigQuery table layouts. Values update as fields change. Unchanged advanced defaults and unconfigured table layouts are omitted; an explicit maximum staleness of zero is shown. Preview off and editing keep their existing layout. Validation and creation behaviour stay the same; no wizard routing is added. Stacked on #51633. | This PR: Simple Case | This PR: Extreme Case | Reference: Final Wizard | | --- | --- | --- | | <img width="1244" height="1994" alt="CleanShot 2026-10-14 at 11 22 16@2x" src="https://github.com/user-attachments/assets/5c2c9ea4-7b2b-4f0b-8ebe-0cfc2ac27059" /> | <img width="1226" height="3568" alt="CleanShot 2026-10-14 at 12 02 16@2x" src="https://github.com/user-attachments/assets/dc556d4a-5130-4b6c-80b5-8644603d9a55" /> | <img width="1486" height="2364" alt="CleanShot 2026-10-14 at 10 50 30@2x" src="https://github.com/user-attachments/assets/982b7d23-9449-4841-b002-9e30fbbabfe9" /> | ## Review instructions 1. Open the [Pipelines preview](https://studio-staging-git-dnywh-featpipeline-data-review-supabase.vercel.app/dashboard/project/_/database/pipelines), select a test project with Pipelines enabled, enable **Pipeline creation wizard** in Feature Previews and click **Add pipeline**. Confirm **Data** review follows the destination review. 2. Select a publication. Confirm its name, table count and initial-sync choice appear as read-only fields. Choose selected tables to include or exclude and confirm their schema-qualified names appear. Change publication and confirm old tables are not shown. 3. Under Data’s **Advanced settings**, change batch wait time, table sync workers or initial sync connections. Confirm only custom values appear in review. Restore defaults and confirm those rows disappear. For BigQuery, configure partitioning or clustering and confirm the table name and wrapping layout summary appear in the main column under **Table layout**; unconfigured layouts should be omitted. 4. Change BigQuery connection pool size or maximum staleness and confirm they appear within **Connection**. If available, check DuckLake pool size and Snowflake role too. Check desktop and phone widths, then cancel and discard changes; no credentials or creation are needed. 5. Turn the preview off and reopen **Add pipeline**: confirm no review. With the preview on, edit an existing pipeline and confirm no review there either. |
||
|
|
17a7d2a00f |
feat(studio): add destination review for preview pipeline creation (#51633)
## Problem The pipeline wizard in #49243 needs a review of destination details before creation. ## Solution Add `PipelineDestinationReview` after Data in preview-enabled creation. It uses the megabranch’s Destination and Connection sections, destination logo, read-only fields and field descriptions. Values update as fields change. Credentials are omitted. Custom DuckLake catalog URLs and ClickHouse endpoints are masked as whole fields, with an eye toggle; changing a URL masks it again. Preview off and editing keep the existing layout. Validation and creation behaviour stay the same; no wizard routing is added. Publication, advanced settings and cost review will follow in later slices. | This PR | Reference: Final Wizard | | --- | --- | | <img width="1254" height="1308" alt="CleanShot 2026-10-14 at 11 01 05@2x" src="https://github.com/user-attachments/assets/e792ed7f-d4f4-4557-b338-8a120c8663b5" /> | <img width="1486" height="2364" alt="CleanShot 2026-10-14 at 10 50 30@2x" src="https://github.com/user-attachments/assets/982b7d23-9449-4841-b002-9e30fbbabfe9" /> | ## Review instructions 1. Open the [Pipelines preview](https://studio-staging-git-dnywh-featpipeline-destinati-25606b-supabase.vercel.app/dashboard/project/_/database/pipelines), select a test project with Pipelines enabled and go to **Database → Pipelines**. Enable **Pipeline creation wizard** in Feature Previews, then click **Add pipeline**. Confirm the review follows **Data**, with **Destination** and **Connection** sections. 2. With BigQuery selected, enter a pipeline name, project ID and dataset ID. Confirm the review updates with those values in read-only fields, includes field descriptions and the destination logo/region, and omits the service-account key. Check desktop and phone widths. 3. If available, select DuckLake with a custom catalog. Enter a catalog URL and data path. Confirm the whole URL is hidden in review, use the eye toggle to reveal/hide it, then change the URL and confirm it is hidden again. For Supabase DuckLake, confirm the bucket is shown instead. Snowflake shows account/database/schema without its private key; ClickHouse shows database/engine and a masked endpoint without its password. 4. Cancel and discard changes; no pipeline creation is needed. Turn the preview off and reopen **Add pipeline**: confirm there is no review section. With the preview on, edit an existing pipeline and confirm there is no review section there either. |
||
|
|
f56efc3a79 |
blog: How we made the Supabase Select 2026 badge (#51422)
## Problem The Supabase Select 2026 badge needs a write-up: how it came together, and what attendees and people watching from home are already building with it. ## Solution - New post: `apps/www/_blog/2026-10-07-how-we-made-the-supabase-select-2026-badge.mdx` (the date is a placeholder until we set the publish date) - Images in `apps/www/public/images/blog/how-we-made-the-supabase-select-2026-badge/`, resized and compressed - Adds Sam Meech-Ward to `apps/www/lib/authors.json` ## Review instructions 1. Open the Vercel preview at `/blog/how-we-made-the-supabase-select-2026-badge`. 2. Read through the post and check the images and links. --------- Co-authored-by: Jon Meyers <13792200+dijonmusters@users.noreply.github.com> |
||
|
|
135d8f00c3 |
fix(studio): match composite primary keys as tuples when deleting rows (#51575)
## 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? Fixes #51574 Deleting several selected rows from a table with a composite primary key builds one `IN` list per key column: ```sql delete from public.user_roles where user_id in (1,2) and role_id in ('admin','viewer'); ``` That matches the cartesian product of the selected values, so rows the user never selected are deleted too. In the example above, selecting `(1, 'admin')` and `(2, 'viewer')` also deletes `(1, 'viewer')` and `(2, 'admin')`. ## What is the new behavior? When there is more than one primary-key column, the delete uses the tuple `IN` filter that pg-meta already supports: ```sql delete from public.user_roles where (user_id, role_id) in ((1, 'admin'), (2, 'viewer')); ``` Single-column primary keys keep the same SQL as before. The batched operation queue uses the same helper for its delete operations, so it is covered as well. Added unit tests for both the single and composite cases. ## Additional context This is silent data loss on join tables, which are the most common place for composite keys and for multi-row deletes. |
||
|
|
cfdc81e1fe |
test(studio): raise timeout for NewScopedTokenSheet tests (#51755)
## Summary
- The `NewScopedTokenSheet` tests were flaky on master. The 5s default
timeout was hit intermittently, most visibly in the "falls back to
Custom when a row diverges from the preset" test, plus some sibling
tests.
- Observed in unit-test runs on master. Reproduced locally by running
the file under heavy CPU load, where tests took 4.5-5s versus ~1s on an
idle machine.
- Fix: file-level `vi.setConfig({ testTimeout: 15_000 })`. This only
affects this file because vitest isolates test files.
## Testing
- Ran the file 5 times under the same CPU load. All 21 tests passed each
time.
|
||
|
|
cba8bc0b30 |
fix(studio): clarify system role grouping and deletion actions (#51526)
## Problem The Database Roles page groups `postgres` and the reserved `supabase_privileged_role` alongside custom roles, while labeling the other section as "Roles managed by Supabase." The `postgres` actions menu also offers an enabled Delete action. Fixes #51525. ## Solution - Rename the sections to "Supabase service roles" and "Project database roles," and explain that the latter includes the `postgres` administrator and custom roles. - Include `supabase_privileged_role` among the protected service roles. - Disable Delete for the existing `SYSTEM_ROLES` list, using `DropdownMenuItemTooltip` to explain the restriction. Keep the `postgres` permission editor available. - Add component regressions for grouping, system-role menus, permission editing, and custom-role deletion confirmation. ## Validation - Studio unit suite: 732 files passed; 8,343 tests passed and one expected failure. - `pnpm --filter studio typecheck` passed. - `SKIP_ASSET_UPLOAD=1 pnpm build --filter=studio` passed. - ESLint for changed files, the Studio lint ratchet, monorepo Prettier, and Studio knip passed. - Playwright smoke verification of the production Studio build with synthetic API responses: grouping, disabled Delete and tooltip, keyboard interaction, permission editing/cancellation, read-only service roles, search, and custom-role deletion confirmation/cancellation. ## Review instructions 1. Open Database → Roles. Check the two section names and the administrator description. If present, `supabase_privileged_role` belongs to the protected service section. 2. Open the `postgres` actions menu. Delete is disabled, and hovering it explains why. 3. Expand `postgres`. Its existing editable permission switches remain enabled for a user who can edit roles. 4. Open a custom role's actions menu. Delete still opens the confirmation dialog; cancel the dialog. 5. Run `pnpm --filter studio exec vitest run tests/components/Database/Roles.test.tsx`. ## 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 applicable; this changes Studio UI and tests. |