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 | |
|---|---|---|---|---|
|
|
756d782304 |
docs(kb): explain why troubleshooting articles don't accept pull requests (#53455)
## Problem The kb README says troubleshooting content is fetched from a private repository, but it doesn't say why, or what a contributor can do instead of opening a pull request against those articles. ## Solution Adds a "Contributing to troubleshooting articles" subsection under "Federated troubleshooting content" in `apps/kb/README.md`. It explains: - troubleshooting articles can't be changed with a pull request to this repository - the source is private because unpublished guides are often drafted from support cases and can contain customer data before review - how to suggest a fix: comment on the article's GitHub Discussion (the "Go to the GitHub discussion" link on each article) or open an issue that links the article - pull requests for other `/kb` content, such as `src/content/guides/`, are welcome No code changes. ## Review instructions 1. Open `apps/kb/README.md` in the PR's "Files changed" view. 2. Check that the new "Contributing to troubleshooting articles" subsection explains the restriction, the reason (customer data in unpublished guides), and the two ways to suggest a fix. 3. Check that the "open an issue" link points to `https://github.com/supabase/supabase/issues/new/choose`. Checked with: `prettier --check apps/kb/README.md` and `pnpm turbo run typecheck lint --filter='[origin/master]'`. Both pass, and lint reports only existing warnings. ## 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: README only.) [DOCS-1673](https://linear.app/supabase/issue/DOCS-1673/clarify-troubleshooting-article-contribution-restrictions-in-the-kb) --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
f7f27aac78 |
fix(studio): escape json and jsonb values in SQL copy and export (#53372)
## What Fixes invalid or corrupted SQL from "Copy rows as SQL" and "Export table as SQL" for json/jsonb columns (FE-4860, closes #49196). ## Why The SQL formatter built json literals by rewriting `JSON.stringify` output with regexes. That corrupted values containing double quotes or backslashes, and produced invalid SQL for jsonb columns holding plain strings or other non-object values. ## How - `formatTableRowsToSQL` now serializes the parsed value and only escapes single quotes. - Grid rows carry json columns as text (the grid query casts them to `::text`), so a new `parseGridJsonColumns` helper parses untruncated json cells before formatting. It is used by "Copy rows as SQL" and the selected-rows export. Truncated cells are left alone so they are still fetched in full. - The SQL export keeps json columns unstringified (`preserveJsonValues`), so a jsonb string like `"hello"` stays distinguishable from JSON text. CSV and JSON exports are unchanged. No `::text` cast was added to the export query: the API already returns json values parsed. ## Testing - Unit tests for values with `"`, `\`, `'`, plain-string jsonb, arrays, numbers, booleans and null, plus `parseGridJsonColumns`. - Ran the formatter output against a local Postgres: both the parsed (fetch-all) and grid-text (copy / selected rows) shapes loaded and round-tripped identically for jsonb and json columns. The old formatter's output failed with `invalid input syntax for type json` on the same data. - Not exercised end to end in the Studio UI, and the truncated-cell path is covered by unit tests only. ## Not in scope The JSON export still stringifies objects before `JSON.stringify`, so json columns come out as nested strings. That is separate pre-existing behavior. |
||
|
|
311e2c721c |
fix(studio): suggest cli download when function code exceeds max size limit (#53421)
<!-- claude-slack-attribution --> _Requested by **Kalleby Santos** · [Slack thread](https://supabase.slack.com/archives/C02KMRX22NR/p1794750855761849?thread_ts=1794750855.761849&cid=C02KMRX22NR)_ ## Problem **Before:** When an Edge Function's source is too large to load in Studio, the function's Code tab shows "Failed to load function code" with the same steps as any other load failure: update the CLI, then redeploy with `supabase functions deploy` or use the Management API. Redeploying does not help here, because the problem is the size of the code, not a bad deployment. **After:** When the function body request fails because the code exceeds the maximum size (HTTP 507), the same error screen tells the reader to update the CLI and then download the function with `supabase functions download <function-slug>`. All other load errors keep the existing redeploy and Management API steps. ## Solution Adds `isFunctionBodyMaxSizeError` (true when the error code is 507) next to the function body query, and the Code page uses it to pick which step 2 to show. Studio already preserves the HTTP status as `error.code`, so no changes to error classification are needed. This ports Kalleby's fork commit [498a1b1](https://github.com/kallebysantos/supabase/commit/498a1b1b386accea4fa57a85a3a2328b79a3b34c) onto current master. Differences from the original: it types the helper against Studio's current error shape instead of `ResponseError`, fixes the "Donwload" typo, and adds a small unit test for the helper. Co-authored-by: Kalleby Santos <kalleby_santos@hotmail.com> ## Review instructions 1. Open a function's Code tab where the function body request returns 507 (for example by mocking the response) and confirm step 2 reads "Download your function using: `supabase functions download <slug>`" with no Management API step. 2. Trigger any other body load error and confirm the redeploy and Management API steps are unchanged. ## 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 changes) --- _Generated by [Claude Code](https://claude.ai/code/session_01JZqbAVr5Epmzu7mKWMj9jD)_ --------- Co-authored-by: Kalleby Santos <kalleby_santos@hotmail.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> Co-authored-by: Joshen Lim <joshenlimek@gmail.com> |
||
|
|
a66aa7417a |
fix(studio): sidebar collapsible (#53425)
## Problem - in "Expanded" mode the nav icons sit 2px right of the logo center - on page reload the sidebar starts collapsed and then plays the open animation when previously opened ## Solution - removes the extra padding kept for "Expanded" mode so the icons stay on the logo center - changes the sidebar to read the stored mode on the first render, so it opens with no animation or layout jump - fixes a sidebar that stays open after the user picks "Expand on hover" in the account preferences | before | after | | --------------------------------------------------------------------------- | -------------------------------------------------------------------------- | | <video src="https://github.com/user-attachments/assets/36100073-6265-41b0-ab9a-1189d298b3bc" /> | <video src="https://github.com/user-attachments/assets/0d0a1f5f-fbd7-4bca-baae-3ac511f028c5" /> | ## Preview links | Site | Live | Preview | Search for | | ------ | ------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- | ---------------- | | Studio | [/dashboard/project/\_](https://supabase.com/dashboard/project/_) | [/dashboard/project/\_](https://studio-git-antlio-fix-studio-sidebar-shift-supabase.vercel.app/dashboard/project/_) | Expand on hover | | Studio | [/dashboard/account/me](https://supabase.com/dashboard/account/me) | [/dashboard/account/me](https://studio-git-antlio-fix-studio-sidebar-shift-supabase.vercel.app/dashboard/account/me) | Sidebar behavior | ## Review instructions 1. open [/dashboard/project/\_](https://studio-git-antlio-fix-studio-sidebar-shift-supabase.vercel.app/dashboard/project/_) and select a project 2. open the sidebar control at the bottom of the sidebar and select "Collapsed" 3. select "Expanded" in the sidebar control, and make sure that the icons do not move to the side 4. reload the page, and make sure that the sidebar shows open at once with no animation ## 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) |
||
|
|
6196382e8e |
chore(deps): bump astro to 7.4.10 (#53406)
## Problem `pnpm audit` reports moderate advisories for `astro` (vulnerable range `<=7.4.6`; the lockfile resolved `7.4.2`). `astro` is used by `apps/kb` directly and through `@astrojs/mdx`. ## Solution Updated `astro` in `pnpm-lock.yaml` from `7.4.2` to `7.4.10` using `scripts/fix-audit-vulnerability.ts astro`. The script resolved the fix with a temporary override, then removed it; the patched version stays resolved without any permanent override. Only `pnpm-lock.yaml` changes (the extra lockfile lines are transitive dependencies of the new `astro` version). No `package.json` or `pnpm-workspace.yaml` changes. ## Review instructions 1. `pnpm install --frozen-lockfile` succeeds. 2. `pnpm why astro --recursive` shows a single `astro@7.4.10`. 3. `pnpm audit` reports no advisories for `astro`. 4. `cd apps/kb && pnpm exec astro build` completes (73 pages built locally). 5. On the kb preview, `/kb` pages render as before. ## 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) [FE-5085](https://linear.app/supabase/issue/FE-5085/bump-a-single-vulnerable-dependency) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
4ed3627d72 |
Joshenlim/fe 3891 improve handling of partition tables in (#53268)
## Context The Table Editor doesn't really handle partitioned tables well given the following issues: - Partitioned tables are rendered as a flat list in the Table Editor side menu, so the menu could get very long and noisy - this was the primary motivation for this PR - Child partitioned tables are not indicated with a proper icon, they're treated as regular tables in the Table Editor which is incorrect ## Changes involved - Table Editor side menu now only lists parent partitioned tables, omits all child partitioned tables - Child partitioned tables can be viewed by clicking on the button tooltip here or drilling down via "View partitions" <img width="300" alt="image" src="https://github.com/user-attachments/assets/e3cfbe4b-21ff-47df-8fcd-81d0c9f68d94" /><br /> <img width="400" alt="image" src="https://github.com/user-attachments/assets/5d0747cb-fb52-4301-ad9e-c7be504f43c9" /> - Selecting that will then render a nested nav as such <img width="291" height="323" alt="image" src="https://github.com/user-attachments/assets/bff0a42b-4265-4317-8299-537d82544388" /> - Sub partitioned tables can be drilled into the same way, and the back CTA steps up one level <img width="485" height="306" alt="image" src="https://github.com/user-attachments/assets/66f6f6cb-8b7d-46c5-8ea3-4ee4fd57aa84" /> - Parent partition tables have the following actions (Previously was only copy name and schema) <img width="465" height="257" alt="image" src="https://github.com/user-attachments/assets/2aa90995-7c30-4bcf-a446-d01ab52c1ede" /> - Deleting a parent partition table will also delete the child partition table, and that's highlighted in the confirmation modal <img width="418" height="316" alt="image" src="https://github.com/user-attachments/assets/0d61984b-f85e-4c93-84d0-549d300838c9" /> - Child partition tables have the following actions (Edit + duplicate removed since they aren't supported via the UI) <img width="482" height="229" alt="image" src="https://github.com/user-attachments/assets/e028b13d-2e92-4491-b05c-7a6cb0a129d6" /> ## To test In general, just verify the viewing UX of partitioned tables to see if it all feels alright, can use the following SQL to quickly set up partitioned tables ```sql create schema if not exists tint; create table public.nest_demo (id int, hue int not null, primary key (id, hue)) partition by range (hue); create table public.nest_demo_blue partition of public.nest_demo for values from (200) to (300) partition by range (hue); create table public.nest_demo_blue_light partition of public.nest_demo_blue for values from (200) to (250); create table tint.nest_demo_blue_deep partition of public.nest_demo_blue for values from (250) to (300); create table public.nest_demo_other partition of public.nest_demo for values from (0) to (200); ``` |
||
|
|
ac31093799 |
chore(studio): update issues icon (#53444)
## Problem `issues` icon looked too generic. ## Solution Add custom icon. - with exclamation mark if issues > 0 - empty inbox icon if issues === 0 |
||
|
|
1ddfdfc7bb |
fix(studio): prevent Warehouse connection status extending page height (#53442)
## Problem The Warehouse overview can acquire extra document height, allowing the header and sidebars to move when scrolling past the content. The connection card’s absolutely positioned screen-reader status has no local containing block in the default card layout. | Before | | --- | | <img width="1187" height="1034" alt="Integrations warehouse-cuf-browser-20261028 ETL Staging Supabase" src="https://github.com/user-attachments/assets/6bf0279d-c644-4834-9a6d-f6b634037b72" /> | | _Note the entire bottom area has shifted up, including sidebar contents._ | ## Solution Position the connection card relatively in both layouts, keeping the live status announcement inside its card. This fixes the source without changing root layouts or scroll containment. ## Review instructions 1. Open **Integrations > Warehouse > Overview** on a configured project such as [this one](https://supabase.green/dashboard/project/yirnfrgkxmnqgexikhfc/integrations/warehouse/overview). 2. Scroll past the bottom. Only the content pane should scroll; the header and sidebars should stay in place. 3. Check connection details still work in the Connect sheet. |
||
|
|
7ee828f3f6 |
chore(studio): center Explorer query result states (#53437)
## What The Explorer results area showed its idle and no-rows states as a small line in the top-left corner, which was easy to miss, and showed nothing while a query ran. These states now sit in the center of the results area, with an icon above the label: - **Before a run:** "Run the query to see results" - **While running:** "Running query…" (new). When a re-run has previous rows, they stay on screen, dimmed, under the running state, so notebook cells don't collapse and grow back. - **No rows:** "Success. No rows returned" Assistant query cells also show the running state after you approve a query, since that run happens outside the editor. ## Testing Enable the `explorer` flag and open Explorer. 1. Open a new query tab and check that "Run the query to see results" is centered. 2. Run `select pg_sleep(2)`. "Running query…" shows while it runs, then the result appears. 3. Run `select 1 where false` and check that "Success. No rows returned" is centered. 4. Run `select * from pg_tables`, then re-run it. The rows stay visible, dimmed, under the running state. 5. In a notebook with several cells, click **Run notebook**. Cells keep their height while they run. 6. Ask the Assistant to run a query and approve it. The cell shows "Running query…" until the result arrives. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
e7093263eb |
kb: add sentry to the kb search (#53126)
## Problem The search in KB currently does not have Sentry ## Solution This PR adds Sentry to the KB search ## Review instructions - I tried to match the style in the docs while keeping everything simple, but does it look alright? - I haven't added the env variables into Vercel yet. I wanted to get this PR in front of eyes of others first. ## 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) |
||
|
|
5b6443862b |
feat(go): white background on aws-reinvent schedule page (#53438)
## What Adds an optional `theme: 'light'` setting for go pages. When set, the page switches the root theme to light (`data-theme="light"` on `<html>`, restored on unmount) and renders on a white background, so the white HubSpot meetings embed no longer contrasts with a dark page. Pages that don't set it are unchanged. The root element has to be switched because the semantic color tokens are derived at `:root`, so a wrapper class alone leaves text light-on-white. Turns it on for `/go/aws-reinvent/schedule`. Also loads HubSpot's embed script as a plain `<script>` tag right after the container (as in HubSpot's snippet) instead of `next/script`, which loads after page load. Files changed: - `packages/marketing/src/go/schemas.ts`: optional `theme` field on the page schema - `apps/www/components/Go/ForceLightTheme.tsx`: sets the light theme on `<html>` while mounted - `apps/www/components/Go/GoPageRenderer.tsx`: uses it when `theme` is `'light'` - `apps/www/_go/events/aws-reinvent-2026/schedule.tsx`: sets `theme: 'light'`, plain embed script tag ## Review instructions Open `/go/aws-reinvent/schedule`: the page should be white with readable text, and the HubSpot calendar should load below the Growth Leads cards. Open another go page and confirm it is unchanged. 🤖 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> |
||
|
|
51bd16d9ca |
Joshenlim/fe 5064 update database triggers to use new nav (#53356)
## Context Update database triggers to use the new page components + add deprecation notices to legacy components There's no visual change here --------- Co-authored-by: Danny White <3104761+dnywh@users.noreply.github.com> |
||
|
|
f4d8252427 |
Improve postgres upgrade warning for pipelines (#53359)
## Context For upgrading a project's Postgres version, the eligibility check returns blockers if a project has active pipelines running. However, the notices are currently confusing and not actionable from a user's POV for these reasons: - The warnings mention the slot name in the title, but as a user i've no idea what slot names these are referring to - There's no CTA as a user to action on to unblock myself - There's multiple warnings due to each replication slot that the pipelines take up, although they all point to the same reason that pipelines just needs to be stopped before upgrading - Example here if i have 3 active pipelines: I get 10 warnings here <img width="500" alt="image" src="https://github.com/user-attachments/assets/c4d99cd4-df3b-4e8e-90cd-896c0f2fa52b" /> Am opting to consolidate all Pipelines related upgrade warnings into just one row as such, by grouping them if the upgrade eligibility error type is `active_replication_slot` and the slot name begins with `supabase_etl_`. Added a "Manage" CTA as well that brings users to the Pipelines page <img width="799" height="234" alt="image" src="https://github.com/user-attachments/assets/50a0c64a-6afe-44e2-9bf8-a21e8ecfc47a" /> Also small nit but this PR fixes the weird list decorator in the rows too <img width="165" height="81" alt="image" src="https://github.com/user-attachments/assets/8c0a0ff6-225f-48d1-a25f-8ffa9e65533c" /> |
||
|
|
8e2fd7c578 |
feat(go): use HubSpot embed and add Growth Leads section on aws-reinvent schedule (#53431)
## What Two changes to `/go/aws-reinvent/schedule`: 1. Replaces the custom scheduler with HubSpot's native meetings embed for `wendie-cheung/aws-reinvent-2026`, so the calendar shows exactly what HubSpot shows for the link. 2. Adds a "Meet our Growth Leads" section above the scheduler: cards with headshots for Nate Asp (VP of Sales), Brad Gyger (VP of Success), and Kris Talajic (Growth Lead). The headshots already exist under `/images/blog/avatars/`. One file changed: `apps/www/_go/events/aws-reinvent-2026/schedule.tsx`. ## Review instructions Open `/go/aws-reinvent/schedule` and confirm the Growth Leads section shows all three headshots above the scheduler, and the HubSpot calendar loads below it. 🤖 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> |
||
|
|
000320e914 |
fix(studio): keep form text consistent across breakpoints (#53429)
## Problem Small and medium form controls and related text grow from 14px to 16px below a viewport breakpoint, making them larger than surrounding dashboard text. ## Solution Keep these sizes at 14px across breakpoints in shared controls and form layouts, plus Studio search fields and assistant textareas. Explicit large and extra-large variants keep their existing sizes. The shared sizing change also applies to buttons. ```diff - text-base md:text-sm + text-sm ``` This accepts iOS Safari’s automatic zoom when focusing smaller editable fields. User zoom remains available. Validation: Prettier, scoped Studio ESLint, and whitespace checks pass. Browser checks and a full build have not been run. ## Review instructions 1. Open a project’s **Settings > General**. Resize across 768px and check that field text, labels, helper text, and buttons keep the same font size. 2. Open the organisation/project selector and resize across 640px. Its search text should stay at 14px. 3. Open the assistant and check that its textarea text stays the same size across 768px. 4. On an iPhone, focus an editable field and check that the accepted focus zoom behaviour remains usable. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) |
||
|
|
ad69889569 |
feat(studio): show Google client IDs one per line when read-only (#53321)
## Problem In the Google sign-in provider settings, the Client IDs field is a single-line input. When several comma-separated IDs are configured, the value overflows the input, so it is hard to tell whether an ID is already present. Linear: FE-4476 ## Solution Show the IDs one per line when the field is not being edited, and the original comma-separated string while it is focused. - Not focused: the field is read-only and shows one ID per line, in the stored order. - Focused: the field is editable and shows the exact stored string. - The stored value, the validation, and the API payload are unchanged. Typing does no conversion. - If the field is read-only or disabled, it stays in the one-per-line view. It adds a small `CommaSeparatedListInput` component and a new `comma-separated-list` field type, used only for the Google Client IDs field. ## Review instructions 1. Open a project and go to Authentication > Sign In / Providers > Google. 2. Enable Google sign-in and enter several client IDs separated by commas, then save. 3. Reload the page and reopen Google. Check that the IDs show one per line, in the order you saved. 4. Click into the field and check that it shows the original comma-separated string. 5. With Google enabled, add a trailing comma or a space and click Save. Check that the validation error appears and no request is sent. |
||
|
|
33c8ab1dbf |
feat(docs): keep a forced Option 1 for the browser session (#53381)
Part of DOCS-1474 ## Problem Someone dogfooding the new navigation opens `?docs-ia-mvp-v1=option-1`, clicks a link, and sees today's navigation again. The override lives only in the URL. Links do not carry the query string, so the first click drops it. Everyone who uses the override link is affected, including people outside the PostHog rollout. ## Solution - **Save the override:** a forced variant is saved in `sessionStorage` and read on later pages. Closing the tab clears it. - **Read it before paint:** the head script reads the saved override, so a full reload does not flash today's navigation. - **Keep exposure clean:** a saved override records no PostHog exposure, the same as a URL override. - **Switch back:** `?docs-ia-mvp-v1=control` replaces the saved value. **Priority:** the URL wins over the saved override. The saved override wins over the PostHog value. **Not changed:** the `/docs/ia/option-1/…` rewrite that the evals use, and how PostHog assigns visitors. **Tests:** `vitest run features/IaNav` passes, 7 files and 32 tests. Three of the four new tests failed before the change. The fourth, a URL `control` over a saved `option-1`, passed before and guards the priority. **Unverified:** typecheck, ESLint, and the steps below. `tsc` reports no errors in `IaNav`, but this worktree has no generated GraphQL types. ESLint did not run. ## Manual testing 1. Open the deploy preview at `/docs?docs-ia-mvp-v1=option-1`. The top nav shows "Run and manage". 2. Click any guide link. The nav still shows "Run and manage". 3. Reload the page. The nav shows "Run and manage" with no flash of today's navigation. 4. Open `/docs?docs-ia-mvp-v1=control`, then click any guide link. The nav shows today's navigation and keeps it. --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> |
||
|
|
acde41a2e2 |
feat(studio): add magic link and email OTP toggle to email provider settings (#53308)
## What changed Adds an "Enable magic links and email OTP" toggle to the Email provider settings in Auth. It maps to the new `EXTERNAL_EMAIL_MAGIC_LINK_DISABLED` auth config field, inverted in the UI the same way `SMS_AUTOCONFIRM` is (via `doubleNegativeKeys`). ## Notes - `packages/api-types` does not include the new field yet; the form reads config values untyped, so this works before the types are regenerated. - Typecheck shows no errors under `Auth/`. Not yet verified in the UI against a backend that returns the field; no tests added. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
df03d7349f |
feat(studio): saved views follow up (#53375)
## Problem The saved views feature in Unified Logs had a few rough edges: - The "no saved views" state in the dropdown was a plain disabled menu item with no context on how to get started. - The "save as view" suggestion banner title had an exclamation mark that didn't match the rest of the app's tone. - The Save View dialog's filter/options summary was a flat list of grouped text rows, which didn't visually connect to the pill-style filters users had just built on the filter bar. ## Solution - Added a proper empty state to the saved views dropdown (icon, title, description) using the shared `EmptyStatePresentational` pattern, sized down to fit the compact dropdown. - Dropped the exclamation mark from the "You've configured N filters" suggestion banner title. - Reworked the Save View dialog's filter and options summary to render as pills matching the filter bar's visual style, instead of grouped text rows — one pill per filter condition, plus matching pills for view options, with slightly larger spacing between the two sections. ## Review instructions 1. Open Unified Logs, apply 3+ filters, and open the saved views dropdown with no views saved — confirm the new empty state. 2. Configure filters until the save suggestion banner appears — confirm the title has no exclamation mark. 3. Click "Save view" and confirm filters/options render as pills matching the filter bar's style. _You need to enable the flag `logsSavedViews` locally_. |
||
|
|
d7308d776c |
ci(kb): run the shadcn lint ratchet on kb (#51584)
## Problem kb has no eslint config and no `lint` script, so the shadcn tailwind rules that already check www, docs, design-system, ui-library and learn never run on it ## Solution - moved the `supabase/shadcn` block out of `eslint-config-supabase/next.js` into its own `eslint-config-supabase/shadcn.js` + `next.js` imports it, so the rules and settings stay in one file - added `apps/kb/eslint.config.cjs` + `lint` and `lint:ratchet` scripts - `.astro` files get linted too, not just `.ts`/`.tsx` - added kb to `lint-ratchet.yml` and `lint-ratchet-decrease.yml` <!-- ## 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. run `pnpm --filter ./apps/kb run lint` and check for 5 warnings, all in `.astro` files 2. run `pnpm --filter ./apps/kb run lint:ratchet` and check it prints `Stable: No regressions for selected rules.` 3. add `className="p-[13px] bg-[#fff] foo-bar"` to any kb `.tsx` component and rerun step 3. it should fail with 3 new warnings ## 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) |
||
|
|
4c9304d385 | chore(deps): bump @hono/node-server to 2.1.6 (#53378) | ||
|
|
03e2726f32 |
docs: add Musa Jundi to humans.txt (#53240)
## Problem Add Musa Jundi to the Supabase team list. ## Solution Insert name into sorted list in `apps/docs/public/humans.txt`. ## Review instructions Provide a clear numbered procedure that the PR reviewer can walk through. 1. Check that my full name, Musa Jundi, is added in alphabetical order in `humans.txt`. ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) |
||
|
|
ddabeac30c |
feat(studio): enable EU Assistant tracing (#53332)
Enables Braintrust tracing and feedback for Assistant chats on EU-region projects. This was the final holdout that makes it so that tracing is applied consistently across all projects. Adds `projectRegion` metadata to root traces so the project’s region is recorded with each chat (consistent with the existing [isHighComplianceProject metadata](https://github.com/supabase/supabase/blob/917dcb388939b8c54ea13c1e31b3c7285fb2ca65/apps/studio/lib/ai/generate-assistant-response.ts#L188)). Verified in staging with a [successful Assistant trace recording `projectRegion: eu-central-1`](https://www.braintrust.dev/app/supabase.io/p/Assistant/logs?r=1b4a05d7a6c1414e62f532094aa39dc1&sid=4fdc76b08a4c5a43). <img width="2656" height="1560" alt="CleanShot 2026-11-12 at 1 12 30 PM@2x" src="https://github.com/user-attachments/assets/4e81033a-c754-46db-845d-586d1d71e035" /> Closes AI-1197 |
||
|
|
22ea45a3ba |
feat: getting started v2 (#52511)
## Problem * the getting started page is a stack of content listings: an overview, use cases, framework quickstarts and tutorials * a new reader must find a path in that list, and the page gives no commands or agent prompt for their setup ## Solution * adds a stepper to the getting started page, so a reader gets the steps and an agent prompt for their setup * adds the `docs-getting-started-v2` posthog flag, so the stepper and the current page can run as an a/b test * adds events for stepper choices, link clicks and prompt copies, so the test can compare the two pages * adds a markdown export of the stepper, so the `.md` page lists every path for agents * moves the iso shapes from kb into `ui-patterns`, so the docs feature cards use the same shapes as the kb heroes * changes the edge functions shape to a flat puzzle piece, because the old shape had too many parts <!-- linear:table-colwidths:397,397 --> <table> <thead> <tr> <th>state</th> <th>preview</th> </tr> </thead> <tbody> <tr> <td>after</td> <td> https://github.com/user-attachments/assets/7127d817-4240-4d08-a1c9-6ada1b1b2563 </td> </tr> </tbody> </table> ## Review instructions 1. open [/docs/guides/getting-started?docs-getting-started-v2=stepper](<https://docs-git-docs-getting-started-explorations-supabase.vercel.app/docs/guides/getting-started?docs-getting-started-v2=stepper>) and make sure that the stepper shows with agent selected 2. select next.js and the auth card, then make sure that the setup prompt names next.js and has a step for auth 3. open [/docs/guides/getting-started?docs-getting-started-v2=stepper&start=cli&fw=nextjs](<https://docs-git-docs-getting-started-explorations-supabase.vercel.app/docs/guides/getting-started?docs-getting-started-v2=stepper&start=cli&fw=nextjs>) and make sure that connect your app shows the install command and the quickstart button ## 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>) |
||
|
|
e59bf8de78 |
fix(ui-patterns): stop clipping focus ring in card section (#53369)
I fixed the focus ring on the last field of a `CollapsibleCardSection` being cut off along its bottom edge. The section clipped vertical overflow all the time, although it only needs to while it opens or closes, and the focus ring extends 4px past the field. <img width="732" height="627" alt="Screenshot 2026-11-13 at 11 27 27 PM" src="https://github.com/user-attachments/assets/abb6b7fc-8a9c-414c-baa0-7c08b035c493" /> <img width="708" height="647" alt="Screenshot 2026-11-13 at 11 29 40 PM" src="https://github.com/user-attachments/assets/4752012c-5761-4f6d-903a-8aec9eeaedc4" /> **Changed:** - **Focus ring shows in full**: the section now clips vertical overflow only during its open and close animation. I added two animation variants that layer the clipping on top of the existing collapsible animations, so nothing is clipped at rest. - **Bottom padding removed**: I dropped the 1px of bottom padding that kept borders from being clipped, so each section is 1px shorter while open. **Note:** The existing `collapsible-down` and `collapsible-up` animations are unchanged, so every other collapsible behaves as before. ## To test Setup: sign in and set the `onboardingSurveyPlacement` flag to `org_form` with the dev toolbar. Tested on the PR preview, in Chrome only: - [x] Open `/new` and move keyboard focus to the last question of the "Help improve Supabase" section: expect the green focus ring around that field to show on all four sides, bottom edge included. Observed: the ring is continuous on all four sides of "Do you know how to code?"; the section's computed `overflow-y` is `visible` and its bottom padding is 0. - [x] On `/new`, click the "Help improve Supabase" heading to close the section, then click it again: expect the questions to slide closed and open without spilling over the Cancel and Create organization buttons mid-animation. Observed: paused partway through closing, the questions are cut off at the section boundary and nothing overlaps the buttons; `overflow-y` reads `clip` while either animation runs and `visible` once the section is open again. - [x] Open the Collapsible Card Section page in the design system, open the section in the demo and Tab to its last field: expect the focus ring to show on all four sides. Observed: the ring shows on all four sides of the demo's input. The demo has spacing below that input, so it does not exercise the bottom edge. |
||
|
|
c8748c7c26 |
chore: pin Node.js to v24 across the repository (#53287)
## Problem `engines.node` used open-ended ranges (`>=22.23.4` at the root, `>=22.12.0` in `apps/kb`). Vercel resolves an open-ended range to the newest Node.js major, so it overrides the project's configured version and warns that future majors will be picked automatically. The other apps declared no engine at all, and `.nvmrc` (used by local dev and CI) still pointed at Node 22. ## Solution Pin Node.js 24 everywhere the repo declares a Node version: - `.nvmrc`: `22.23.4` -> `24.22.3` (latest v24 LTS). CI workflows read `node-version-file: .nvmrc`, so they follow. - Root `package.json` and `apps/kb/package.json`: `engines.node` -> `24.x`. - Every other app (`design-system`, `docs`, `learn`, `lite-studio`, `studio`, `ui-library`, `www`): add `engines.node: "24.x"`. Vercel reads the Node.js version from `engines.node` in the project's `package.json`; `vercel.json` has no setting for it, so this is how each Vercel project gets an explicit version. - `.agents/skills/test-the-docs/sandbox/Dockerfile`: `node:22-bookworm-slim` -> `node:24-bookworm-slim`. - `AGENTS.md`: update the stated Node requirement. Notes: - `engineStrict: true` is set in `pnpm-workspace.yaml`, so `pnpm install` now requires Node 24 locally. - `.github/workflows/self-host-tests-smoke.yml` hardcodes `node-version: '22'` and is not changed here. - No builds or tests were run for this change. Checked that all changed `package.json` files parse and that Prettier passes on the changed files. ## Review instructions 1. Open the Vercel build logs for this PR's deployments (studio, docs, www, kb, and so on). 2. Confirm each build uses Node.js 24.x. 3. Confirm the logs no longer show the warning that the `engines` field overrides the project's Node.js version, or the warning about automatic upgrades to new major versions. 4. Confirm CI jobs that use `.nvmrc` set up Node 24.22.3. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) [FE-5004](https://linear.app/supabase/issue/FE-5004/bump-the-nodejs-version-across-the-repository) --------- Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> |
||
|
|
59faa5042d |
content(kb) - auth providers listicle (#53184)
## Context general auth providers listicle (more broad than `auth providers with supabase` or `passwordless auth providers`) ## Preview link https://kb-git-kody-devrel-809-auth-providers-listicle-supabase.vercel.app/kb/guides/best-authentication-providers |
||
|
|
4998b77ab2 |
feat(studio): ask whether org creators know how to code (#53317)
I added the "Do you know how to code?" question (Yes / No, optional) to the onboarding survey on the new organization form and in the follow-up dialog. The answer is sent as `can_code` in the same survey request as the other answers. I removed an earlier version of this question before the survey shipped because the platform didn't store it; the platform now accepts `can_code`. **Changed:** - **New question, always visible**: it shows on both surfaces without waiting on another answer, so it can be answered on its own. Only the `org_form` arm of the experiment shows the survey. - **Follow-up dialog shows every question at once**: "What are you building?" used to appear only after "Who is this org for?" was answered. "How many people?" still appears only for the Company org type. - **Follow-up card above other banners**: I raised its priority in the banner stack so it sits in front of the project-page cards for its five-minute window. - **Telemetry**: I added a `hasCanCode` boolean to `onboarding_survey_submit_button_clicked` and `onboarding_survey_submit_failed`. **Note:** Merge only after the platform change that accepts `can_code` is in production: before that, the API drops the key and still returns 204, so answers are lost with no error. The change is live once `can_code` is listed under `OnboardingSurveyBody` in the production platform OpenAPI spec. I widened `OnboardingSurveyBody` locally because `packages/api-types` can only be regenerated once the production spec has the field. ## To test Setup: sign in and set the `onboardingSurveyPlacement` flag to `org_form` with the dev toolbar. Tested on the PR preview: - [x] Open `/new`: expect "Do you know how to code?" below "What are you building?" with Yes then No, before any other question is answered. Answer both and create the org: expect one `POST /platform/organizations/onboarding-survey` whose body has `building` and `can_code`. Observed: both questions on the untouched form, options Yes then No; one request, 204, body has `"can_code":"yes"`. - [x] Create an org with only "Do you know how to code?" answered: expect one request whose body has `can_code` and no `building` key. Observed: one request, 204, `"can_code":"no"`, no `building` key, and no follow-up card on the new org's page. - [x] Create an org with the org type changed to Company, a size picked and "Do you know how to code?" answered, leaving "What are you building?" blank: expect one request with `kind`, `size` and `can_code`, and no follow-up card on the new org's page. Observed: one request, 204, `"kind":"COMPANY","size":"50","can_code":"yes"`; no follow-up card. - [x] Create an org with "What are you building?" answered and the new question left blank: expect the request body to have no `can_code` key, and the org to be created. Observed: one request, 204, no `can_code` key. - [x] Create an org without touching the survey, then open the new org's page: expect the "Help improve Supabase" card. Click Answer: expect all three questions in the dialog right away. Answer all three questions and send: expect one request with `kind`, `building` and `can_code`. Observed: no survey request at creation; the card shows on the org page; the dialog opens with all three questions blank; one request, 204, body has `"can_code":"yes"`. - [x] Set the flag to `control` and open `/new`: expect no survey questions. Observed: none of the survey questions render. - [x] Added check: `onboarding_survey_submit_button_clicked` carries `hasCanCode`. Observed: `true` when answered on both surfaces, `false` when left blank. ## Linear - fixes GROWTH-1487 |
||
|
|
f1d9d3a96a |
feat(studio): add saved views in unified logs (#53286)
Persist saved views through project-scoped content endpoints. Restore custom attribute filters and saved options, and validate content with focused Zod schemas. |
||
|
|
b046f12571 |
chore(api-types): update generated API types from production (#53364)
Regenerates the API types with `pnpm api:codegen:prod` and fixes the
Studio type errors the new types caused.
## Changes from the API
- **Branch merge now requires production write permission.** `POST
/v1/branches/{branch_id_or_ref}/merge` changed from accepting either
`branching_development_write` or `branching_production_write` to
requiring `branching_production_write`. Studio's FGA refinement for
merge no longer matched and failed typecheck.
- Removed the merge entry from `lib/fga-refinements.ts`.
- `merge.tsx` checks merge permission with `useGrant` instead of
`useBranchGrant`.
- `BranchMergeGrant` uses `GrantFor` instead of `GrantForVariants`.
- Removed merge from the "requires a variant" test in
`guarded-fetch.test.ts`.
- Users with only development branching permissions can no longer merge
in Studio. This matches what the API now enforces.
- **Replication pipelines have a required `cluster_id`.** Added it to
the pipeline fixtures in six test files.
- **`MemberWithFreeProjectLimit` has a required
`free_plan_organizations`.** Added it to the mock in
`tests/pages/new/[slug].test.tsx`. No app code reads it yet.
## Testing
- `pnpm typecheck` passes.
- Vitest passes for the affected Studio tests.
|
||
|
|
64fad1a785 |
chore(studio): bump @supabase/mcp-server-supabase to 0.17.0 (#53360)
## Problem Self-hosted Studio is on `@supabase/mcp-server-supabase` 0.16.0, and [0.17.0](https://github.com/supabase/mcp/releases/tag/mcp-server-supabase-v0.17.0) is out. ## Solution Bump the package from `^0.16.0` to `^0.17.0`. No code changes are needed: the breaking change in 0.17.0 is in the `elicitation` options, which self-hosted Studio doesn't set. This also picks up 0.16.1, which enables the notebook tools by default. The self-hosted platform is still typed without `notebooks`, so those tools stay out, and the existing test in `tests/routes/api/mcp/index.test.ts` covers that. ## Review instructions 1. Check that CI passes. 2. Run self-hosted Studio, connect an MCP client to `/api/mcp`, and see that `tools/list` returns the tools with no notebook tools. Closes [AI-1487](https://linear.app/supabase/issue/AI-1487) |
||
|
|
64eafa5058 |
Replace valtio store with URL state for organization billing panels (#53353)
## Context Realised that opening the organization billing subscription + spend cap panels do not actually append the `?panel` URL param, but those panels will be opened if you land on `/billing?panel=xxx` directly. There's a discrepancy between how this state is being handled - we've got a valtio store to handle the panel open state, and also URL handlers as well that look out for the `panel` query param in a `useEffect` which then updates the valtio store. Opting to streamline these by replacing the valtio store with a simple `useQueryState` instead. ## To test - [ ] Verify that clicking "Change subscription plan" or "Change spend cap" in org billing settings opens their respective panels with the right URL param appended, and closing them removes the URL param - [ ] Verify that landing directly on `/billing?panel=subscriptionPlan` or `/billing?panel=costControl` opens the respective panels too |
||
|
|
8f3f680d73 |
Use NoSearchResults for no search results in integrations (#53354)
## Context Just swaps out to use `NoSearchResult` for empty search state in project integrations for consistency ### Before <img width="1146" height="422" alt="image" src="https://github.com/user-attachments/assets/d66c1714-be55-4cbf-9de1-f5c8a2464649" /> ### After <img width="1145" height="333" alt="image" src="https://github.com/user-attachments/assets/761624f4-f827-41d7-bd53-d6bcb11df4f8" /> |
||
|
|
d374842f03 |
fix(studio): hide email identity unlink until Auth clears password (#53352)
## Problem Unlinking the email (password) identity from Account → Security removes the email identity in the UI, but Auth leaves `encrypted_password` in place. Users can still sign in with the old password, and **Add password** fails with “Current password required when setting new password.” This is an Auth lifecycle bug. Until Auth clears the hash on email unlink, Studio should not allow that unlink. ## Solution Keep `enableAccountPassword` on so OAuth-only users can still add a backup password (matches the changelog). Disable **Unlink** on the email identity with tooltip “Temporarily unavailable”, and guard the confirm handler. OAuth unlink is unchanged. Re-enable email unlink once Auth clears the password hash. No changelog change for now. ## Review instructions 1. Open the Studio preview → **Account → Security** → **Sign-in methods**. 2. On an account with both GitHub and Email linked: hover the Email unlink control and see **Temporarily unavailable**; GitHub unlink still works; **Change password** still works. 3. On an OAuth-only account: **Add password** still appears when the flag is on. ## 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) |
||
|
|
652c085dd0 |
chore(studio): remove legacy email confirmation redirect (#53250)
## Problem Preferences still forwards email-change confirmation messages to Security for links generated before CTRL-2060. The [platform change now targets Security directly](https://github.com/supabase/platform/pull/41579), so this temporary compatibility path can be retired after rollout and link expiry. ## Solution Remove the legacy redirect and its two tests. Keep normal Preferences anchor scrolling and the Security confirmation handler. Merge after CTRL-2060 is deployed to all relevant environments and old links have expired. The checked-in platform Auth configuration uses a 10-minute expiry; allow at least 24 hours after rollout. |
||
|
|
42b6571e7d |
Chore/housekeeping org pages (#53303)
## Context Some minor UI issues that I found while reviewing another PR - Fix `NoProjectsOnPaidOrgInfo` prematurely showing while project details is still loading <img width="1249" height="376" alt="image" src="https://github.com/user-attachments/assets/3f41f4a3-849f-4685-bcc4-6fed3b433042" /> - Fix padding alignment for Organization details form group <img width="1115" height="282" alt="image" src="https://github.com/user-attachments/assets/c0865614-208c-4335-87d3-176c4411b6a4" /> - Fix projects list on `/org/[slug]` showing stale projects while switching orgs - just removed `keepPreviousData` so that the card loaders shows up - Fix organization settings in sidebar menu not showing active state while on certain settings pages like audit-log-drains, webhooks, etc |
||
|
|
e2425b7214 |
docs(design-system): clarify related split-button actions (#52349)
## Problem The Button guidance explains split buttons but doesn't show how to group a visible action with other actions for the same item or section. ## Solution Document when to use each pattern: - **Split button:** the main button runs the most common variation of an action. The attached chevron opens alternatives, such as other export formats. - **Dropdown button:** the whole button opens a menu, such as a time-range picker. - **Button with more actions:** keep the main action visible and use a separate ellipsis menu for distinct actions. The examples show both a primary “Add pipeline” button and a default “Stop” button. Align the Admonition split-button example with the same guidance. ## Review instructions 1. Open the [Button guidance preview](https://design-system-git-dnywh-docs-related-split-buttons-supabase.vercel.app/design-system/docs/components/button#split-with-dropdown) and compare the attached export chevron with the single time-range dropdown. 2. Open each ellipsis in [Button with more actions](https://design-system-git-dnywh-docs-related-split-buttons-supabase.vercel.app/design-system/docs/components/button#button-with-more-actions). Check that the “Add pipeline” menu groups usage and settings separately from “Disable Pipelines”, and that the “Stop” menu separates restart from edit and delete. |
||
|
|
c5e45baff7 |
fix(ui-patterns): keep admonition action surfaces opaque (#52348)
## Problem Default buttons inside Admonition actions are translucent in the following circumstances: - Light mode: button hover - Dark mode: static button This means they show the alert surface (yellow, red, grey, etc) unintentionally. ## Solution Give each independent action its own FloatingPlate, with transparent gaps between buttons. Explicit groups share one plate; fragments are flattened. Full-width groups retain responsive sizing, while single buttons stay snug. | Before | After | | --- | --- | | <img width="1510" height="256" alt="CleanShot 2026-10-27 at 15 32 14@2x" src="https://github.com/user-attachments/assets/2c1c285e-ffb3-4b26-a186-ce39a9b597b3" /> | <img width="1508" height="248" alt="CleanShot 2026-10-27 at 15 32 30@2x" src="https://github.com/user-attachments/assets/1cb86562-2227-4792-a60d-69dc1a06234d" /> | ## Review instructions 1. Open [Admonition examples](https://design-system-git-dnywh-fix-admonition-floating-plate-supabase.vercel.app/design-system/docs/fragments/admonition) and find the examples with action buttons. 2. Light mode: hover the default action buttons. 3. Dark mode: just compare against the [production design system](https://supabase.com/design-system/docs/fragments/admonition), statically. Notice the buttons retain their standard fill. |
||
|
|
27602135da |
fix(docs): correct MFA recovery instructions (#53348)
## Problem The MFA guide contains a stray quote, code fence, and editorial note. Its replacement instructions also tell everyone to add an authenticator first, but Studio hides **Add MFA method** when two authenticators are registered. ## Solution Remove the stray text and explain the replacement order for accounts with one or two authenticators. Keep a working factor registered to avoid disabling MFA and deleting recovery codes. Validated with Prettier, Markdown generation, and inspection of the generated guide. ## Review instructions 1. Open `/docs/guides/platform/multi-factor-authentication#sign-in-with-a-recovery-code` in the docs preview. 2. Check that the replacement instructions cover one and two registered authenticators, with no stray quote, code fence, or editorial note. 3. Confirm the regeneration and disable-MFA sections remain separate sections. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) |
||
|
|
b6fdee5f54 |
Fix closing quote placement in case study pull quotes (#53314)
Fixes the closing quote mark showing up after the attribution (for example after "co-founder of Loot Donkey") on six case studies. The `prose` styles add the closing quote to the last `<p>` in a blockquote. These pages put the attribution in its own paragraph, so the mark landed after it. - apps/www/_customers/loot-donkey.mdx and beeapro.mdx: wrap the attribution in a `<div>` so the quote is the last paragraph - apps/www/_customers/assignar.mdx, videogen.mdx, polymet.mdx, and qa-tech.mdx: same fix, and move from markdown blockquotes to `<Quote>` - assignar.mdx: drop the literal quote marks around the text, since the styles already add them and they were doubled Quote text and attributions are otherwise unchanged, including the QA.tech link. Checked against a local build: every pull quote on all six pages is now a single paragraph followed by the attribution. 🤖 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> |
||
|
|
6ed144283a |
blog: remove inaccurate failover plan claim from read replicas post (#53349)
## 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/content fix: removes three sentences from the Automatic Failover section of the Introducing Read Replicas blog post (2023-12-15) ## What is the current behavior? The post says automatic failover is available on the Enterprise Plan and will extend to all paid plans, which was never accurate. ## What is the new behavior? - Removes the Enterprise Plan availability claim - Removes the plan to extend it to all paid plans - Removes the follow-on sentence ("a step in that direction") that depended on it ## Additional context N/A Co-authored-by: Ana <ana1337x@users.noreply.github.com> |
||
|
|
b009175ab0 |
fix(studio): keep report toolbars clear of wrapped content (#53302)
## Problem Funky layout. Observability report toolbars reserve a fixed height. When controls wrap on narrow screens, they can overlap report content. Refresh, date and Docs controls also have inconsistent alignment. ## Solution Keep the sticky toolbar in normal document flow so its actual height determines content spacing. Align refresh and date controls to the left and Docs to the right across Auth, Database, Edge Functions, Data API, Realtime and Storage reports. <!-- linear:table-colwidths:550,137 --> <table> <thead> <tr> <th>Before</th> <th>After</th> </tr> </thead> <tbody> <tr> <td><img src="https://github.com/user-attachments/assets/05c2d0cd-1893-4491-92e4-3b445ab47300 " alt="CleanShot 2026-11-12 at 17 44 20@2x" width="1652" data-linear-height="878" /></td> <td><img src="https://github.com/user-attachments/assets/f8873c55-2c5d-45fa-9d40-643002ef7ff8 " alt="CleanShot 2026-11-12 at 17 44 43@2x" width="1658" data-linear-height="850" /></td> </tr> <tr> <td><img src="https://github.com/user-attachments/assets/ac6467c0-9e08-4420-b55f-e1965bb25f3f " alt="CleanShot 2026-11-12 at 17 45 01@2x" width="1650" data-linear-height="252" /></td> <td><img src="https://github.com/user-attachments/assets/90e69f62-f811-4039-8c2b-64b3e1a3e679 " alt="CleanShot 2026-11-12 at 17 45 11@2x" width="1646" data-linear-height="250" /></td> </tr> <tr> <td><img src="https://github.com/user-attachments/assets/657ce909-b057-4e0c-aa1a-2e9427ddb72d " alt="CleanShot 2026-11-12 at 17 54 51@2x" width="1000" data-linear-height="222" /></td> <td><img src="https://github.com/user-attachments/assets/b7763a8c-8cd2-486b-a99a-fa7c75539bf0 " alt="CleanShot 2026-11-12 at 17 53 10@2x" width="992" data-linear-height="224" /></td> </tr> <tr> <td>*Note the awkward shadow on the left and right.*</td> <td></td> </tr> </tbody> </table> ## Review instructions 1. Open **Observability > Database**, then Auth, Edge Functions, Data API, Realtime and Storage. 2. Check refresh and date controls on the left and Docs on the right. 3. Narrow the viewport until controls wrap, then scroll. Check that the toolbar stays sticky and report content remains below it. |
||
|
|
7ef7d9f648 |
fix(studio): update Flask ConnectSheet env var to SUPABASE_PUBLISHABLE_KEY (#48826) (#48830)
## What kind of change does this PR introduce?
Bug fix
## What is the current behavior?
In the Connect Sheet modal for Flask
(`apps/studio/components/interfaces/ConnectSheet/content/flask/supabasepy/content.tsx`),
the example code snippet uses `SUPABASE_KEY` for `.env` and
`os.environ.get("SUPABASE_KEY")` in `app.py`. When users follow the
Flask Quickstart guide (which specifies `SUPABASE_PUBLISHABLE_KEY`),
running `app.py` raises `SupabaseException: supabase_key is required`.
## What is the new behavior?
Updated the `.env` code snippet to `SUPABASE_PUBLISHABLE_KEY` and
`app.py` to `os.environ.get("SUPABASE_PUBLISHABLE_KEY")` matching the
standard Quickstart convention.
## Additional context
Fixes #48826
Co-authored-by: hallidayo <22655069+Hallidayo@users.noreply.github.com>
Co-authored-by: Nik Richers <nrichers@gmail.com>
|
||
|
|
850c65070c |
fix(examples): correct Supabase client import in file upload example (#53335)
## Problem The `file-upload-storage` Edge Function imports `createClient` from `npm:supabase-js@2`. That unscoped package does not resolve, so Deno cannot load the example's dependencies: ```text error: Could not find npm package 'supabase-js' matching '2'. ``` ## Solution Import the official scoped v2 client, `npm:@supabase/supabase-js@2`, consistent with the other Edge Function examples. This changes one import and keeps the v2 major constraint. ## Review instructions 1. From `examples/edge-functions/supabase/functions/file-upload-storage`, run `deno cache --no-config index.ts`. 2. Confirm the complete dependency graph resolves with the corrected import. Validation completed in a disposable `denoland/deno:2.5.6` container: - Reproduced the original package-resolution failure with `deno cache --no-config npm:supabase-js@2`. - Successfully cached the actual corrected example and its dependency graph. - Imported `createClient`, constructed a client with placeholder settings, and verified its Storage upload method exists without making API calls. - Prettier 3.8.0 with the repository configuration and `git diff --check` passed. No real upload, deployed Edge Function test, full type check, or monorepo build was run. This PR only corrects dependency resolution. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md). - Docs authoring checklist: not applicable; no documentation topic was added or edited. AI assistance: this contribution was prepared with OpenAI Codex. |
||
|
|
af01ade151 |
Correct 'PyPi' to 'PyPI' in installation guide (#53263)
## Problem There was a typo in PyPIs name. PyPi was used instead of PyPI ## Solution PyPi was replaced with PyPI <!-- ## Preview links https://supabase.com/docs/reference/python/introduction Copy the preview base URL from the Vercel bot comment on this PR. Use the following table as an example template. | Site | Live | Preview | Search for | | -------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | ----------------------------- | | WWW | [/blog/your-post](https://supabase.com/blog/your-post) | [/blog/your-post](https://zone-www-dot-com-git-branch-name-supabase.vercel.app/blog/your-post) | unique phrase from the change | | Docs | [/docs/guides/your-page](https://supabase.com/docs/guides/your-page) | [/docs/guides/your-page](https://docs-git-branch-name-supabase.vercel.app/docs/guides/your-page) | unique phrase from the change | | Studio | [/dashboard](https://supabase.com/dashboard) | [/dashboard](https://studio-git-branch-name-supabase.vercel.app/dashboard) | unique phrase from the change | | Design system | [/design-system](https://supabase.com/design-system) | [/design-system](https://design-system-git-branch-name-supabase.vercel.app/design-system) | unique phrase from the change | | UI library | [/library](https://supabase.com/library) | [/library](https://ui-library-git-branch-name-supabase.vercel.app/library) | unique phrase from the change | | Knowledge base | [/kb/guides/your-page](https://supabase.com/kb/guides/your-page) | [/kb/guides/your-page](https://kb-git-branch-name-supabase.vercel.app/kb/guides/your-page) | unique phrase from the change | --> <!-- ## Additional context Optionally add any other context or screenshots. --> ## Review instructions Provide a clear numbered procedure that the PR reviewer can walk through. 1. Open the live and preview links side-by-side. 2. See that PyPI is correctly spelt ## Checklist Check all before review: - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) Co-authored-by: Nik Richers <nrichers@gmail.com> |
||
|
|
15bee88898 |
feat(kb): send search query text on kb_search_submitted (#53336)
Adds the trimmed search term as a query property on kb_search_submitted, matching docs search. Goes through the existing consent-gated kb telemetry path. Refs DOCS-1588. |
||
|
|
9d2455a86e |
docs: remove raw admonition tags from CLI config reference (#53339)
Fixes #53338 ## Problem The CLI config reference displays raw `<Admonition type="note">` and `</Admonition>` tags in the description of `local_smtp.enabled`. The page uses `ReactMarkdown`, which does not interpret MDX components. ## Solution Remove the Admonition tags from `apps/docs/spec/cli_v1_config.yaml`, keeping the explanatory text as a regular paragraph. ## Review instructions 1. Open `/docs/guides/local-development/cli/config#local_smtp.enabled` in the preview. 2. Verify that no Admonition tags appear in the description. 3. Verify that the note about migrating from `[inbucket]` to `[local_smtp]` is still present. ## Validation - YAML parsing and Prettier checks passed. - Verified the description renders without raw tags using ReactMarkdown. - Full docs build could not run locally because workspace dependencies were not installed (`turbo` not found). ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [x] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) --------- Co-authored-by: anthony lio <lionnet.ant@gmail.com> |
||
|
|
ed6d1b4c63 |
feat(studio): show error details in AlertError and attribute user faults in SQL errors (#53242)
## Problem `AlertError` gives users and support no way to correlate a failure with Sentry or platform logs. It also treats every failure the same: a bad table editor filter or an offline browser gets "try refreshing, contact support". On the reporting side, SQL errors were attributed by who wrote the whole statement. That made errors in the user's part of mixed SQL Studio's fault: policy expressions, function bodies, cron schedules, table editor filters and row edits. Marking them as user SQL instead would drop them from Sentry entirely. Part of FE-4772. ## Solution **`AlertError`** - Platform and Studio faults show the request ID, the Sentry event ID (labeled "before sampling", since the event may be sampled out) and a "Copy details" button. - The copied text never includes `formattedError`, metadata, the cause or SQL. - SQL errors copy the SQLSTATE, position and query name instead of the message. - User faults (`isUserError`) show their message with "Please try again. If the issue persists, try refreshing your browser." There is no support link, no IDs and no copy button. - Offline shows only "You may be temporarily offline. Check your internet connection and try again." - Defaults come from `getErrorPresentation`, and props the caller passes still win. The table editor passes a filter-specific description when filters are set. **SQL error classification** - `executeSql` takes an optional `isUserFaultSqlState` predicate for Studio SQL. When it matches, the error is a `StudioSqlError` with reason `user_input` and fault `user`, and is still redacted to SQLSTATE plus query name. - `isUserFaultForValues` (classes 22, 23 and P0, plus 42501 and 57014) is for typed values: table editor filters and row edits, cron name and schedule. - `isUserFaultForSql` (any SQLSTATE except server classes 08, 53, 57 other than 57014, 58 and XX) is for embedded user SQL: policies, functions, the custom access token hook. - `isUserFaultForStatsStatement` is for `pg_stat_statements` text (Query Insights `EXPLAIN`, index advisor). It treats 42P02 (`$1` placeholders) as Studio's fault. - `UserSqlError` is now only SQL the user wrote in full, and it is still never sent. - The policy, function and cron mutation hooks no longer take `sqlOrigin`. **Routing and types** - `ERROR_ROUTING` is one table keyed by tag, then by fault. Its type requires exactly the faults each class can produce. - User faults get `SAMPLE_USER_FAULT` (default 0.01, set with `NEXT_PUBLIC_SENTRY_SAMPLE_RATE_USER_FAULT`) to catch misclassification. - The error class decides privacy (`isNeverReportedError`), separately from the rate. - Sentry events get a `reason` tag. - Each class declares its `reasons`, so a mistyped reason fails typecheck. ## Review instructions 1. Open the table editor, add a filter with a wrong-typed value (text on an integer column). The alert shows the Postgres error, the filter hint, and no support link, IDs or copy button. 2. Make a query fail with a platform error (e.g. block a `/platform/` request in DevTools). The alert shows the request ID, the event ID and "Copy details". Paste the copied text and check it has no SQL or `formattedError`. 3. Go offline in DevTools and trigger a query. Only the offline message shows. 4. Create a policy with an invalid `USING` expression. The toast shows the Postgres error. In Sentry it is a `StudioSqlError` with reason `user_input`, sampled at the user-fault rate. 5. Review `lib/errors/error-routing.ts` and `data/error-classification.ts` for the routing table and the SQLSTATE predicates. |
||
|
|
115a2ffeef |
feat(studio): gate database functions, triggers, and webhooks on sql grants (#53269)
Resolves FE-4744. Part of the grants rollout; builds on the read/write SQL variants from #53185. ## What - **Data layer:** the database functions, triggers, database webhooks, and event triggers queries now take a `read` grant (exposed as `queryOptions` factories). All 8 create/update/delete mutations take a `write` grant and mark their SQL with `asWriteSql`. - **Guards:** the hand-written FGA checks in the functions, triggers, event triggers, and database webhooks lists, the functions page, the triggers layout/route, and the webhooks integration tab now derive from grants, with denied and error states. - **Other consumers** updated to pass grants: `CreateFunction`, `TriggerSheet`, `EditHookPanel`, `DeleteHookModal`, `ChooseFunctionForm`, `FunctionSelector`, `AutoEnableRLSNotice`, and SQL editor definition/autocomplete hooks. ## Behavior changes - **Webhooks integration tab:** was gated on `database_webhooks_config_read`; now gated on `database_read`, which is what the backend checks for the pg-meta query it uses. Both permissions are granted to the same built-in roles, so there is no change for built-in roles. A permissions-load failure now shows an error alert instead of the content. - **`AutoEnableRLSNotice`:** hidden unless the user has read access, since it can't tell whether the trigger already exists without it. ## Out of scope - User-authored SQL execution in `QueryEditor` / `useSqlEditorExecution` stays `unguarded.migrating` (FE-4750). ## Testing - New tests: query factories and write mutations (`data/database-sql-grants.test.ts`), webhooks tab granted/denied/error, functions list read/write granted/denied/error. - Typecheck, Prettier, lint ratchet, and Studio vitest suites for affected areas pass. |
||
|
|
d11ae1a1ed |
docs(functions): update logging page for new logs viewer, clarify bodies are not logged (#53315)
<!-- claude-slack-attribution --> _Requested by **Kalleby Santos** · [Slack thread](https://supabase.slack.com/archives/C0BB4MAJW58/p1794485219774189?thread_ts=1794485219.774189&cid=C0BB4MAJW58)_ ## Problem **Before:** The Edge Functions logging page said the **Invocations** view includes request and response "headers, body, status codes, and execution duration". Customers asked where to find body values, but bodies are not retained, and only some headers are kept. The page also described separate **Invocations** and **Logs** views with an outdated screenshot. **After:** The page says plainly that request and response bodies are not logged or retained, and that only a subset of headers is kept (with the list from the `function_edge_logs` schema). It now describes the current viewer: Edge Functions > a function > **Logs** tab, with one list of invocations and console logs/events, the filter bar (time range, log type, level, event message), **Live**, and the detail panel (**Overview**, **Raw JSON**, **Timeline**, **User**). Existing content (console methods, event types, limits, header logging tip) is unchanged. ## Solution Updates `apps/docs/content/guides/functions/logging.mdx` to remove the incorrect body claim and document the new logs viewer. **How:** UI names and behavior were checked against the Studio source (`apps/studio/components/interfaces/UnifiedLogs`, `Functions`, and the `functions/[functionSlug]/logs` page). The header list comes from the `function_edge_logs` schema in `packages/shared-data/log-constants.ts`. **Skipped:** No new screenshots, since I had no demo project with a deployed function to capture them from. I removed the outdated `function-logs.png` from this page because the text no longer matches it. The same image is still used in `error-handling.mdx` (Error monitoring section) and is still outdated there. I left the file and that page alone. **Unverified / for review:** - The request and response header lists are taken from the `function_edge_logs` schema in the repo. Please confirm they match what is actually retained on the logflare source. - The retention statement for bodies comes from the request, not from a code path in this repo. - The new viewer is the "Updated Logs interface" feature preview, which is on by default on the platform. I added a short note for users who turned it off (legacy **Invocations** and **Logs** tabs). I did not verify the legacy view in detail. - The **Timeline** tab and **Attributes** sections only render when the related logs backend and metadata features are enabled, so some users may not see them. ## Review instructions 1. Open the preview of `/docs/guides/functions/logging`. 2. Check that no sentence claims invocation logs include a request or response body. 3. Compare the "Explore logs in the Dashboard" section against a function's **Logs** tab in the Dashboard. 4. Confirm the header lists under "What invocation logs contain" are correct. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide). (Not run; I followed the style guide manually. Prettier check passed with equivalent standalone options.) --- _Generated by [Claude Code](https://claude.ai/code/session_01M8V2QRDBurL1TZmpGGgjDK)_ Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Kalleby Santos <105971119+kallebysantos@users.noreply.github.com> |