## Context
Just porting over POST project transfer from platform to v2
The other GET project transfer preview cannot be ported yet as the `v2`
endpoint drops the `members_exceeding_free_project_limit` property which
the UI depends on
## To test
- [ ] Verify that project transfers still work on the preview
## Context
Just porting over AWS private link API from `platform` to `v2` -
verified that private link management still works locally
## To test
- [ ] Verify that you can create, read, and delete AWS private links in
project settings -> integrations
## Problem
Postgres PANIC logs are omitted when filtering Unified Logs to errors.
The ClickHouse query classifies them as success, and the BigQuery query
leaves their level unset, while service-health counts their numeric
severity as an error.
## Fix
Classify PANIC as an error in both Unified Logs query backends.
Related to O11Y-2219. This fixes the identified classification gap; it
does not establish the cause of the customer's original count
discrepancy.
## How to test
Open Unified Logs for a project with a Postgres PANIC event and select
the error level. The event should remain visible and be labelled as an
error with either query backend.
Local validation: all 85 existing query/filter tests pass. Full Studio
typecheck, formatting, and focused lint passed before the test-only
removal; production code is unchanged. No tests were added. Browser
verification with an actual PANIC event has not been performed.
## Problem
The Add restriction dialog (database settings > network restrictions)
only accepts one address range at a time, so adding several ranges means
repeating the dialog and a separate save for each. The `apply` endpoint
already accepts the full list, so this is a frontend limitation.
Linear: FE-3667
## Solution
The dialog now stages ranges before saving:
- The IP address and CIDR block size fields stay as they were. A new
"Add to list" button (or Enter) validates the entry, moves it to a "N
ranges to add" list, and clears the fields. Each range keeps its own
block size.
- Each staged range has a remove button.
- Duplicates (against existing restrictions and the staged list) now
show as inline errors instead of a toast.
- Save sends every staged range in a single apply request, appended to
the existing restrictions. An entry that was typed but not yet added is
included if it's valid. The allow-all and disallow-all case still
replaces the existing restriction.
- Cancel, Escape, and the backdrop ask for confirmation when there are
staged ranges or a typed entry.
- `AddRestrictionModal` is now a named export, and the draft reset uses
the form's `values` option instead of an effect.
I considered `SingleValueFieldArray` and `KeyValueFieldArray`, but each
range has two related values and the fields need labels and a narrow
size column, so a staged list fit better.
Copy changes: the title is now "Add IPv4 restrictions" (or IPv6), the
description mentions adding several ranges, the Save label is singular
or plural by count, and the success toast is "Restriction added" or
"Restrictions added".
<img width="556" height="514" alt="Screenshot 2026-10-20 at 16 41 13"
src="https://github.com/user-attachments/assets/b7952f9c-0deb-416b-8823-0de9f18a7650"
/>
<img width="550" height="646" alt="Screenshot 2026-10-21 at 11 32 25"
src="https://github.com/user-attachments/assets/3814117b-5447-4a28-b950-b8a96af54a75"
/>
## Review instructions
1. Open a project's database settings and go to Network Restrictions,
then choose Add restriction for IPv4.
2. Enter an address and a block size, then click "Add to list". The
entry moves to the list and the fields clear.
3. Add a second range with a different block size. Try a duplicate or a
private address and check the inline errors.
4. Type a third valid address without adding it, then click Save. All
three ranges should save in one request.
5. Stage a range and click Cancel. It should ask before discarding.
6. Repeat with IPv6, and with an allow-all or disallow-all restriction
in place.
Tests: `pnpm exec vitest run
components/interfaces/Settings/Database/NetworkRestrictions` from
`apps/studio`.
## Problem
After upgrading `www` to Next.js 16, Sentry reports `The router state
header was sent but could not be parsed` (WWW-63) on RSC requests such
as `/blog?_rsc=…`. Next 15 clients (the `docs` zone, which is still on
Next 15 and served under `/docs`, plus tabs opened before the deploy)
send a `Next-Router-State-Tree` header whose fifth element is a boolean,
while Next 16 requires a number, so the renderer throws and returns a
500.
## Solution
`proxy.ts` now detects the Next 15-shaped router state header and
returns a cheap `400` (`no-store`) before it reaches the renderer, for
paths www serves itself. Paths rewritten to other zones (`/docs`,
`/dashboard`, `/kb`, …) are exempt, because the docs zone is Next 15 and
its own client navigations must pass through untouched. The Next 15
router falls back to a full page load on any non-RSC response, which is
the same outcome users get today after the 500, minus the error noise
and wasted renders. Unit tests cover the v15 shape, the v16 shape, a
missing header and a malformed header. The proper long-term fix is
upgrading `apps/docs` to Next 16, after which this guard can be removed.
## Review instructions
1. Run `pnpm --filter=www test proxy.test.ts` and confirm the new
`Next.js 15 router state tree` tests pass.
2. After deploy, confirm WWW-63 stops receiving new events.
## Checklist
Check all before review:
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
## Context
API added a new option "auto" for the available regions endpoint, so the
changes in this PR is just for dashboard to render that in the region
selector for project creation if that option is available in the
response
<img width="452" height="306" alt="image"
src="https://github.com/user-attachments/assets/60a39bbb-b9f0-4677-a267-cd8b975371b1"
/>
- "Auto" option is prioritized and selected by default if its present in
the response
- Otherwise it'll fall back as per normal to the recommended general
region
- Recommended badges for other options are hidden if auto region is
present and recommended
- Unrelated but realised there was a gap if there's no general region
recommended where the region selection will be undefined by default
then. Opting to default to the first available general region in this
case
## To test
"Auto" option for region selection will be available on free
organizations, so we can test on the preview with free organizations
- [ ] Verify that project creation works as expected while auto option
is selected for free plan
- [ ] Verify that project creation works as expected for non-free plan
Proxies `supabase.com/migrate/instantdb` to the InstantDB migration
app's Vercel deployment, so the tool lives on a Supabase-owned URL
instead of `instantdb-to-supabase.vercel.app`.
**Added:**
- Rewrites for `/migrate/instantdb` and `/migrate/instantdb/:path*` in
`apps/www/lib/rewrites.js`
- A `next.config.test.ts` assertion covering both rules
Unlike `/evals`, the destination keeps the `/migrate/instantdb` prefix.
The migration app is a Next.js app that'll run with `basePath:
'/migrate/instantdb'`, so it only answers under that prefix (its
`/_next` assets and `/api` routes included, which would otherwise
collide with www's).
**Depends on:** the migration app shipping with `basePath:
'/migrate/instantdb'`. Until then this route 404s. The app's
`/migrate/instantdb` path currently returns 404 because it serves from
the root.
## To test
- `cd apps/www && pnpm vitest run next.config.test.ts` passes
- Once the app is deployed with the basePath, on the www preview:
`/migrate/instantdb` loads the migration app, with no 404s for `/_next`
assets or `/api` calls in the network tab
- Existing rewrites (`/dashboard`, `/evals`, `/kb`) still work
Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com>
## Problem
Migrating Studio's permission checks from the old RLS json logic to
openfga backed permissions.
### New hooks and helpers
- `usePermissionsQueryV2` fetches the new profile openfga permisisons
- `useAsyncCheckPermissionsV2` the replacement for the old check hook;
takes an FGA permission string (or a list)
- `FGA_PERMISSIONS` permission constants derived from
`@supabase/shared-types`. At the moment, the hook also accepts plain
strings for permissions not yet published in the package
- `useAsyncCheckUserContentPermissions` new hook for permission checks
on user content (SQL snippets, reports, log snippets). This wraps
``useAsyncCheckPermissionsV2` and adds existing content level rules on
top of the fga permission check
### Notes
- ~~Need api to support new permissions: project_operations_write,
billing_read/write, audit_logs_read~~ [DONE]
- ~~Still need to support: organization_config_read/write, auth hooks
and users permissions~~ [DONE]
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Charis Lam <26616127+charislam@users.noreply.github.com>
## Problem
The blog post "How a new branch gets its config, migrations, and
functions" needs a new title and new og/thumbnail images.
## Solution
- Title: `Faster config, migrations and functions on branches`
- Added `og-v2.png` and `thumb-v2.png` (1200x630) and pointed
`imgSocial` / `imgThumb` at them. New file names bypass image and
link-preview caches that would otherwise keep serving the old images.
- The file name and URL slug are unchanged, so the existing link keeps
working. The old `og.png` and `thumb.png` are left in place.
## Preview links
| Site | Live | Preview | Search for |
| ---- | ---- | ------- | ---------- |
| WWW |
[/blog/how-a-new-branch-gets-its-config-migrations-and-functions](https://supabase.com/blog/how-a-new-branch-gets-its-config-migrations-and-functions)
| Copy the base URL from the Vercel bot comment | Faster config,
migrations and functions on branches |
## Review instructions
1. Open the live and preview links side-by-side.
2. Confirm the title on the post and blog index reads `Faster config,
migrations and functions on branches`.
3. Confirm the thumbnail on the blog index and the og image (view
source, `og:image`) are the new images.
## Checklist
- [x] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Wendie Cheung <wendie@Wendies-MBP.localdomain>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
## Problem
The marketing site (`apps/www`) is still on Next.js 15. Resolves
FE-4673.
## Solution
Upgrades `apps/www` to Next.js 16.3.6 (`next` now uses the workspace
catalog; `@next/mdx` and `@next/bundle-analyzer` are bumped to match).
Fixes for breaking changes: `middleware.ts` renamed to `proxy.ts`,
removed the `eslint` key from `next.config.mjs`, moved Sentry options
under `webpack`, and added `images.localPatterns` and
`images.qualities`. `dev` and `build:next` now run with `--webpack`,
because the MDX remark plugins have non-serializable options and
`esmExternals: 'loose'` is ignored by Turbopack.
## Review instructions
1. Run `pnpm --filter=www typecheck` and `pnpm --filter=www test`.
2. Run `pnpm dev:www` and open `/pricing` and `/blog/vector-buckets`;
both should render, including images.
3. Check the Vercel preview build. Locally, `next build` needed
`NODE_OPTIONS=--max-old-space-size=8192`, so confirm memory is
sufficient. `proxy.ts` now runs on the Node.js runtime instead of edge.
## Checklist
Check all before review:
- [ ] I have read
[CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md)
- [ ] If I wrote a new docs topic or edited an existing topic, I used
the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs
[style
guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
## What
Adds an opt-out for the "Unsaved changes" dialog shown when closing SQL
editor tabs in manual-save mode. Resolves FE-4170.
- New **Confirm on discard** toggle in the SQL editor's More actions
menu (both toolbar layouts).
- New **Don't ask again** checkbox in the dialog itself. It turns the
same setting off when the user confirms the discard.
- `DiscardChangesConfirmationDialog` gains a `children` slot. The
description now renders as a `div` so block-level children are valid
HTML.
- `TabCloseConfirmation` gains an optional `optOut`, so any tab type can
offer a "don't ask again" checkbox. Only SQL tabs use it. The Explorer
tabs are unchanged.
- The Intellisense and Confirm on discard items now use
`DropdownMenuCheckboxItem`, so both settings announce their checked
state to screen readers. The check indicator is still shown on the right
via a local class override.
<img width="353" height="229" alt="Screenshot 2026-10-20 at 16 10 14"
src="https://github.com/user-attachments/assets/c6f67934-51ba-48dd-8aee-f279ae7eb486"
/>
<img width="432" height="207" alt="Screenshot 2026-10-20 at 16 10 02"
src="https://github.com/user-attachments/assets/d064dcb1-1097-4ac3-bbf0-6a47506820c1"
/>
## Behavior notes
- The setting is stored in `localStorage`
(`sql-editor-confirm-unsaved-changes`). It is device-local and global,
not per project. It defaults to on.
- With the prompt off, closing a tab still **discards** its unsaved
edits. It only skips the confirmation.
- It only applies in manual-save mode. In auto-save mode there is
nothing to discard, so the toggle is hidden.
- The browser's native `beforeunload` prompt, shown when closing or
reloading the browser tab with unsaved work, is unaffected. Browsers
don't allow customizing it.
## Testing
- New unit tests for the SQL tab close handler: it confirms by default,
skips the dialog when the setting is off, and the opt-out writes the
setting.
- `lint:ratchet` and `knip` pass.
- Manually checked the menu at both widths and the dialog.
Clarified the behavior of the new trigger for DELETE operations on
Storage schema tables, emphasizing that normal operations remain
unaffected.
Removed statements from blog post to avoid LLM from picking up
operations to bypass delete operation restriction.
## Problem
Customers are using the setting with direct DELETE FROM storage.objects
queries, which can create orphaned objects.
The post currently describes setting the variable to true for direct SQL
deletes, despite warning that these deletes are a common cause of
orphaned objects.
## Solution
Removed statements from blog post to avoid LLM from picking up
operations to bypass delete operation restriction.
## Context
Just porting over log drains API from `platform` to `v2` - verified that
log drains management still works locally
## To test
- [ ] Staging preview: Verify that you can create, read, and delete -
there's no way to update log drains atm
- [ ] Local / Self-hosted: Verify that you can create, read, and delete
Adds `matt_johnston` (already in `apps/www/lib/authors.json`) to the
`author` frontmatter of the Supabase Middleware launch post, after the
existing authors.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Wendie Cheung <wendie@Wendies-MBP.localdomain>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Issue found during my dogfooding project :)
## Problem
The docs on default privileges in `public` don't match what Postgres
grants or what the revoke statements do:
- **Default privileges:** Securing your API and the Row Level Security
guide say new tables grant `SELECT`, `INSERT`, `UPDATE`, and `DELETE`.
New tables grant every table privilege, which also includes `TRUNCATE`,
`REFERENCES`, `TRIGGER`, and, on Postgres 17, `MAINTAIN`.
- **Revoking them:** the statements in Revoke default privileges match
what the Dashboard runs. They remove the privileges the Data API uses,
and leave the other four on new tables and `UPDATE` on new sequences.
- **Functions:** `alter default privileges ... in schema public revoke
execute on functions from public` has no effect. Postgres grants
`EXECUTE` to `PUBLIC` through a global default, and a revoke limited to
one schema can't remove it ([Postgres
docs](https://www.postgresql.org/docs/current/sql-alterdefaultprivileges.html)).
New functions stay callable by `anon` and `authenticated` through the
Data API. Securing your API, Working with branches, and Database
functions each say they don't.
- **Dashboard label:** Working with branches refers to a **Default
privileges for new entities** setting. The Data API settings label it
**Automatically expose new tables**.
Resolves
[DOCS-1457](https://linear.app/supabase/issue/DOCS-1457/default-privilege-docs-miss-truncate-references-trigger-and-maintain).
## Solution
The pages describe what Postgres grants and what the Dashboard setting
leaves behind. The revoke procedure removes every default privilege on
new objects.
- **Securing your API:** Default privileges shows the defaults in a
table, and lists what turning off **Automatically expose new tables** in
the Data API settings leaves behind. Revoke default privileges revokes
every privilege on new tables, sequences, and functions, including the
`execute` grant to `PUBLIC`. A caution explains that this revoke also
restricts functions in other schemas, such as helper functions that RLS
policies call. A new Check your default privileges section has a query,
run in the SQL Editor or with `psql`, that lists what each Data API role
receives on new objects.
- **Row Level Security:** the grants table lists every privilege, which
matches its introduction.
- **Working with branches:** uses the current setting label, and says
what the revoke migration leaves, with `maintain` marked as Postgres 17
only.
- **Database functions:** revokes `EXECUTE` from `PUBLIC` without `in
schema`, and notes that the change applies to functions in every schema.
Each changed snippet was run in page order on a hosted project on
Postgres 17.11, inside a transaction that rolled back.
## Product issue
The Dashboard's **Automatically expose new tables** setting runs the
same function revoke
(`packages/pg-meta/src/sql/studio/database/privileges.ts`), so turning
it off leaves new functions callable.
[DAT-192](https://linear.app/supabase/issue/DAT-192) tracks it.
cc @supabase/data-api @avallete
## Preview links
- [Securing your
API](https://docs-git-alexisa-docs-1457-supabase.vercel.app/docs/guides/api/securing-your-api)
- [Row Level
Security](https://docs-git-alexisa-docs-1457-supabase.vercel.app/docs/guides/database/postgres/row-level-security)
- [Working with
branches](https://docs-git-alexisa-docs-1457-supabase.vercel.app/docs/guides/deployment/branching/working-with-branches)
- [Database
functions](https://docs-git-alexisa-docs-1457-supabase.vercel.app/docs/guides/database/functions)
## Additional context
- The Working with branches sentence about new functions on branches
follows from the Postgres default. It wasn't tested on a branch.
- Securing your API and the Row Level Security guide still describe
defaults "on existing projects". That wording changes when the new
default reaches every project, so this PR leaves it.
## Problem
Given we already have `user-agent: *`, we really don't need those other
declarations in the file.
(this also cleans up the `Content-Signals` block, which technically
should exist one per UA block)
## Solution
Removes specific user agent lines
## Preview links
https://zone-www-dot-com-git-kodster28-patch-1-supabase.vercel.app/robots.txt
## Problem
Six assistant tools are still defined inline with `tool({...})`, unlike
the others that moved to the tool contract pattern.
## Solution
Migrate them to a contract file plus a `.server.ts` implementation,
registered in `TOOL_CONTRACTS`, removed from `TOOL_CATEGORY_MAP`, and
kept in the allowlist. The `*-tools.ts` modules remain as thin wrappers.
`ToolContext` gains an optional `baseUrl`, used by
`get_active_incidents`.
- `list_policies`, `list_reports`, `get_report`: `minOptInLevel:
'schema'`, output unchanged for the model at every level.
- `get_active_incidents`, `escalate_to_human`,
`resolve_support_conversation`: `minOptInLevel: null` (always
available), same as before.
- `needsApproval: false` for all.
Stored-shape changes for replayed outputs:
- Replayed outputs are now validated against the output schema and
dropped if invalid (previously unchecked).
- Zod strips unknown keys, so fields outside the schema no longer
replay.
- Enum-like fields use plain `z.string()` so new values don't break
replay.
Not migrated yet: `update_opt_in_level` (input schema is built per
request from the org's level), remote MCP tools, and self-hosted
fallback tools.
Closes DOCS-1490
## Problem
Pages that ask readers to run SQL mostly point only to the SQL Editor,
and the wording differs from page to page. An agent can't use the
Dashboard, so a Dashboard-only instruction leaves it with no way to
finish the task.
## Solution
- **Terminal option rule:** for any change a reader makes in the
Dashboard, the page also gives a terminal path, such as `psql`, the
Supabase CLI, or the Management API.
- **Standard run snippet:** every "run the following SQL" step uses one
copy-paste snippet, placed before the SQL block, that names both the SQL
Editor and `psql`.
One file, 14 lines added. Both rules go under **Procedures** in
`02-elements.md`, which the write, edit, and review docs skills already
check.
**Not changed:** existing pages. supabase/supabase#51974 converts them,
stacked on this PR.
## Manual testing
1. In **Files changed**, open the rich diff of
`apps/docs/style-guide/02-elements.md`. The two new rules appear under
**Procedures**, before **Code blocks**.
2. Click the **tabs** link in the first rule. It goes to the **Tabs**
section.
## 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?
- Adds the blog post "Operate with confidence: check production with
your coding agent" at
`apps/www/_blog/2026-10-20-operate-with-confidence-check-production-with-your-coding-agent.mdx`
- Adds the OG image, thumbnail, and four inline images under
`apps/www/public/images/blog/operate-with-confidence-check-production-with-your-coding-agent/`
## What is the current behavior?
N/A
## What is the new behavior?
- New post at
`/blog/operate-with-confidence-check-production-with-your-coding-agent`,
dated 2026-10-20
- Covers Agent prompts (Health, Security, Performance, Resources), the
steps to set up a scheduled check, `query_logs`, the updated `supabase`
agent skill, Health Check Advisors, and Database Connections
- Authors: `steven_eubank`, `saxon_fletcher`, `jordi`
## Additional context
Follow-up to the Supabase Select post
`2026-10-02-select-2026-operate-with-confidence.mdx`.
`apps/www/public/rss.xml` is not included because it is gitignored and
generated at build time.
---------
Co-authored-by: Ana <ana1337x@users.noreply.github.com>
## 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?
Cleanup: remove a fully rolled-out Studio feature flag. Resolves
CLI-2759. Supersedes #50260 and #47931 (rebuilt on current master).
## What is the new behavior?
Scoped introspection is the only path.
- Studio: delete `data/scoped-introspection.ts` and
`PG_META_SCOPED_INTROSPECTION_FLAG`; stop threading `scoped` through
table editor, rows/counts, privileges, enumerated types, table
definition, retrieve, prefetcher, `EntityListItem`, `SidePanelEditor`,
`EditHookPanel`, `DefaultLayout`.
- pg-meta: drop `scoped?: boolean` from public builders and delete the
frozen unscoped SQL. `tables.list` keeps its full-catalog `TABLES_SQL`
(never flag-gated).
## Test plan
- [x] pg-meta + Studio typecheck
- [x] pg-meta suite against Docker DB (521/521)
- [x] Studio vitest for touched areas
- [x] Open Table Editor, row counts, privileges, and enumerated types on
a project (dogfooded on the preview deploy)
- [ ] After merge, retire `pgMetaScopedIntrospection` in the flag
dashboard
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
## 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?
- Adds three feature entries to `apps/www/data/features.tsx`: Health
Check Advisors, Database Connections, and Agent Skills
- Adds one line each to the existing Security & Performance Advisor,
Reports & Metrics, and Logs & Analytics entries
- Updates one bullet and the stage on the existing MCP Server entry
## What is the current behavior?
supabase.com/features has no pages for Health Check Advisors, Database
Connections, or Agent Skills, and the MCP Server page shows Public Alpha
and does not name `query_logs`.
## What is the new behavior?
- New page `/features/health-check-advisors` (General Availability, not
available on self-hosted), placed after Security & Performance Advisor
- New page `/features/database-connections` (General Availability,
available on self-hosted), placed after Reports & Metrics
- New page `/features/agent-skills` (General Availability, available on
self-hosted), placed after Queues and before MCP Server
- Security & Performance Advisor: item 5 is now "Run on demand", and new
item 6 links to Health Check Advisors
- Reports & Metrics: new item 7 links to Database Connections
- Logs & Analytics: new item 9 covers `query_logs` and links to the
Query logs with SQL docs
- MCP Server: the logs bullet now names `query_logs` and `get_advisors`,
and the stage is General Availability
## Additional context
Copy matches the Features Page rows in Notion. Agent Skills sits before
MCP Server so it does not touch the lines #51819 changes; that PR's diff
still applies cleanly on top of this branch.
---------
Co-authored-by: Ana <ana1337x@users.noreply.github.com>
## Problem
In the Edge Function Edit secret sheet, a long secret value (for example
a multi-line private key) made the Value textarea grow without a limit.
On smaller screens this pushed the Cancel and Save buttons out of view,
so the secret couldn't be saved.
Fixes
[FE-4680](https://linear.app/supabase/issue/FE-4680/cannot-save-long-edge-function-secrets-on-smaller-screens).
## Solution
- Replace the hand-rolled auto-resize `Textarea` with the shared
`ExpandingTextArea`, the same component the Add new secrets form uses.
It grows with its content up to 320px, then scrolls inside itself.
- Make the sheet body the scroll area (`grow min-h-0 overflow-y-auto`),
so the footer with Cancel and Save stays visible on short windows.
- Move the show/hide (eye) toggle to `right-3 top-2` to match the add
form, and add right padding so it stays clear of the textarea's
scrollbar.
- Add a test that pastes a long multi-line value and checks that Save
becomes enabled.
## Review instructions
1. Open Edge Functions > Secrets and click Edit on any secret.
2. Paste a very long multi-line value into the Value field.
3. Confirm the field stops growing at about 320px and scrolls
internally.
4. Shrink the browser window height and confirm Cancel and Save remain
visible and Save is enabled.
5. Confirm the eye toggle doesn't overlap the textarea's scrollbar.
Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com>
## Problem
The Snowflake guide does not reflect the partial-update support and
automatic companion views introduced in
[supabase/etl#1110](https://github.com/supabase/etl/pull/1110). It also
omits the `CREATE VIEW` permission, which existing pipelines need before
upgrading to avoid startup failures.
## Solution
- Add `CREATE VIEW` to setup and upgrade instructions, including
ownership and consumer grants.
- Explain automatically maintained companion views, partial updates,
NULL semantics, and query options.
- Document existing-table upgrades, supported keys, schema changes,
history requirements, and resync.
## Review instructions
1. Open the Snowflake destination guide in the docs preview.
2. Check that setup and upgrade instructions clearly require `CREATE
VIEW` before starting the updated pipeline.
3. Review the companion-view examples and the distinction between
queries for complete and partial history.
## 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)
## Problem
Compute log rows are filtered on `log_attributes['source']`, the
deprecated twin of the top-level `subservice` the log writer now
publishes. FUNC-894 deletes the twin from the writer, which would leave
the per-instance log tabs and the Unified Logs `compute` type matching
nothing — silently, since a missing attribute key returns no rows rather
than an error.
## Fix
Read the stream from `log_attributes['subservice']` instead. Both keys
carry the same value on every row today, so this is a same-behaviour
switch that lets the twin be removed.
It stays a `log_attributes` lookup rather than a bare `subservice`
column: the unified logs mapping does not classify these rows, so
`source` is empty on a compute row and every key the backend publishes
lands in the attribute map. A bare `subservice` predicate fails the
whole query with `Field "subservice" does not exist`.
- `COMPUTE_LOG_SUBSERVICES` replaces `WORKER_LOG_SOURCES`; the values
keep their pre-rename `worker_*` spelling, which is still what the
backend publishes
- `STREAM_KEY` in `compute-instance-logs-query.ts` and the Unified Logs
condition used by the log-type, status, method, pathname, metadata and
level expressions both move to the new key
- row fixtures in the three utils test files carry `subservice` instead
of `source`, so they match the wire shape that survives FUNC-894
Supersedes #50219, which targets a `subservice` column and a `source =
'worker_logs'` mapping that do not exist yet; that shape becomes the
follow-up if the mapping ships.
Relates to [FE-4358](https://linear.app/supabase/issue/FE-4358).
## How to test
- Open a compute instance's Invocations, Logs, and Activity tabs — each
shows only its own stream, and message filtering still narrows within
it.
- In Unified Logs, include and then exclude the Compute log type; rows,
counts, and charts move together, and compute rows keep their metadata
while status, method, and pathname stay null.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **Bug Fixes**
- Compute logs are now identified and filtered using subservice metadata
in unified logs and compute instance logs.
- Compute log classification and display now handle compute-specific
fields and severity consistently.
- Guest and ingress compute streams now use subservice metadata for more
consistent results across supported log views.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## What
Adds component tests for `PlatformWebhooksPage` (follow-up to FE-3749),
covering: rendering the endpoint list, the empty state, create (and
request body shape), update, delete, regenerate-secret, send-test-event,
retry, and the rate-limit error path.
## Why
FE-3749's own scope explicitly calls out tests as a stacked follow-up
rather than blocking the original ship (already Done).
## Testing
All 9 tests pass locally, typecheck and lint clean.
## Note
Replaces #51614, which got accidentally closed (its branch was deleted
and recreated to fix fixture drift from #51800, which GitHub treats as
unrecoverable for reopening). Same branch name, now rebased onto current
master and updated for the delivery attribute shape changes from #51800
(error_code/error_message/event required, response_headers no longer
nullable).
This PR updates Management API docs automatically.
This regenerates:
- Management API specs and sections
- Personal Access Tokens permission-to-endpoint table
- Personal Access Tokens MCP tool permissions table
Sources include the live Management API specs, MCP permission map,
and Studio's shared permission catalog.
Co-authored-by: antlio <14966155+antlio@users.noreply.github.com>
## Problem
In organization Team settings, admins could only assign one project at a
time to a team member with project-scoped access, both when sending an
invite and when managing an existing member's access. The platform API
(role_scoped_projects) already accepts an array of project refs, so this
was purely a UI constraint. Teams customers with larger orgs hit this
repeatedly, since granting access to several projects meant repeating
the picker one project at a time.
## Solution
Added a new shared component, elect, and used it in bothces that
previously used thonProjectSelector:
- Invite members: the project field changed from a scalar projectRef to
projectRefs: string[]; the invite payload now sends every selected
project. anage access: the one-at-a-is replaced by theulti-select, wired
into the list (add/remove updates thatlist; the per-row role dropdowns
and remove buttons are unchanged).
The multi-select reuses the existing debounced-search + infinite-scroll
project daer (same as the old single-ve the same), combined with the
generic ui-patterns/multi-select primitives for the checkable list and
removable trigger badges. It supports:
- Type-to-search against the paginated project list eselecting a project
eitherits badge on the trigger
- Projects the current user isn't permitted to remove (a role-removal
permission check) show as selected-but-locked, with an explanatory
tooltip
existing "All projects" toflows — the multi-select onlyrenders when that
toggle is off, and toggling it on/off behaves exactly as before.
Also fixed an unrelated pre-existing cosmetic bug noticed while testing:
the Managess sheet used bg-surface-2) instead of the sheetprimitive's
default opaque background, making it visibly see-through compared to
every other sheet in the app.
## Review instructions
1. Open Invite members, turn os if needed, toggle "Grant this role on
all projects" off, and confirm you can search and select several
projects, with each shown as a removable badge.
2. Send the invite and confirm applied to the new member'saccess.
3. Open Manage access on an existing member with project-scoped access —
confirm tcurrent projects are pre-se more projects via themulti-select,
remove one via its badge and another via the row's "X", and save.Confirm
the saved access ma
4. Toggle "Apply roles to all projects" on and off in Manage access and
confirm thexisting toggle behavior is
5. Confirm the Manage access sheet background is now fully opaque,
matching other sheets in the app.
6. pnpm --filter studio typecher studio test for the touchedfiles all
pass.
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
I limited project deletion exit surveys to Pro and Team organizations.
Other plans use the compact deletion dialog, with the permanent-deletion
message consolidated into its warning and typed project-name
confirmation retained.
## To test
Tested on the updated Studio PR preview:
- [x] Open project deletion for a Free org, expect the
permanent-deletion text and documentation link together inside the
warning, no separate deletion paragraph, and no survey fields.
- [x] Open project deletion for a Pro org, expect the existing warning,
reason selector, and feedback field.
- [x] In Free and Pro dialogs, enter an incorrect project name and press
Enter, expect “Value entered does not match”. Enter the exact name,
expect the error to clear, then close without submitting.
Not exercised:
- [ ] Open project deletion for a Team org, expect the survey fields.
- [ ] Open project deletion for Enterprise and Platform orgs, expect
compact confirmation without survey fields. These plans are unavailable
in the staging account.
## Linear
- fixes FE-4634