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 | |
|---|---|---|---|---|
|
|
f60929ca7a |
feat(examples): Improve the example OAuth client app (#53166)
- Added optional organization and project parameters to support testing of preselection in the consent screen - Added some styling so we no longer see a raw unstyled button: <img width="396" height="370" alt="Screenshot 2026-11-09 at 10 09 22 AM" src="https://github.com/user-attachments/assets/89c35c61-fa4c-4c37-933f-077717ef2235" /> |
||
|
|
373633361b |
fix(studio): allow collapsed sidebar to scroll vertically without a scrollbar (#53536)
## What kind of change does this PR introduce? Bug fix. ## What is the current behavior? When the sidebar is collapsed to icons, `SidebarContent` sets `overflow-hidden`, which also disables vertical scrolling. On short viewports or at higher zoom levels, the bottom navigation items (including Project Settings) can't be reached. Fixes #53403 ## What is the new behavior? In collapsed mode, `SidebarContent` scrolls vertically, never horizontally, and the scrollbar is hidden (using the existing `no-scrollbar` utility) so it doesn't push the icons around in the narrow rail. The footer with the sidebar control stays pinned. ## Additional context `SidebarContent` is a shared primitive, so other collapsible-to-icon sidebars get the same behavior. Tested manually in the browser. |
||
|
|
45f4a115fa |
feat(studio): Refactor oauth app consent screen (#53357)
## Description Part of the work for OAuth apps with the scoped permissions. This PR: - refactors the authorize OAuth app consent screen to make it more consistant with how we handle load requests - remove the copy constants in favor of direct JSX like we do everywhere - ensure the data hooks have optional parameters with runtime check to be usable even when all needed data isn't loaded yet > [!NOTE] > At this stage, the UI still only use mock data ## Review instructions If all tests pass, we're good. |
||
|
|
f920456c3f |
feat: Improve kb search to be on pair with docs search v2 (#53454)
## Problem though they use the same package and were conceived to be 1-1, search v2 in Docs and Kb search have some differences: - Docs new search function is more complex to prevent no results, improvements kb search hasn't seen. For example, when you look for "passwor", incomplete term, Docs return results around the password term, but kb doesn't **(see screenshot below)**. - On kb side, we have a `content=true` parameter to fetch markdown content from results to serve some agentic tools, but Docs search never received that upgrade. Fair to say, in docs we are not covering all routes in markdown at the moment so it's not 100% reliable, but whenever we reach that, we can switch to use this search endpoint for MCP tooling. <img width="1512" height="867" alt="Screenshot 2026-11-16 at 13 06 08" src="https://github.com/user-attachments/assets/99baa772-d4b1-4d73-bfa7-7110d5635f0a" /> ## Solution - Add a migration file on kb search table to match docs search SQL function. - Add `content=true` parameter to docs search <!-- ## 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 - To test kb new search function, you would have checkout this branch, to spin locally kb search migration and search, other way we need to wait for merging and testing. It's important Supabase integration returns _green_ here to make sure migrations run safely. - For docs search new parameter. Open the preview for docs in this branch: 1. Open the search modal, and open your browser's dev tools, go to the network tab 1. Do a search, grab the URL and open it in a new tab 1. Add `content=true` and `limit=3` as query prameters 1. You should get back three results with a content property containing the markdown content of each route (see example below) <img width="1273" height="793" alt="Screenshot 2026-11-16 at 13 12 32" src="https://github.com/user-attachments/assets/d1af4663-e17e-438e-99ac-4e63f51460a9" /> ## 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) |
||
|
|
dde52ce6e8 |
feat(studio): update oauth publishable apps to include new options (#53355)
## Description Part of the work for OAuth apps with the scoped permissions. This PR updates the publishable apps UI to actually submit the new options > [!NOTE] > The backend may reject the API call if your organization isn't enrolled in scoped oauth apps. That does not prevent to check the payload is correct ## Review instructions - Open _Organizations settings/OAuth Apps_ - Click the _Publish OAuth app_ button - Check that both options in the _Authorization_ section require a confirmation with a checkbox - Before submitting, open your devtool - Submit the app - Check that the API route `https://api.supabase.green/platform/organizations/[org_slug]/oauth/apps` was called with the options you selected: - if _Use the permissions of the person who connects_ was checked: `grant_kind: "member_bound"`, otherwise `grant_kind: "organization_bound"` - If _Ask for specific projects_ was checked: `project_scoping_mode: true` otherwise `project_scoping_mode: false` |
||
|
|
a4c9fc145e |
fix(docs): sidebar wrapped rows (#53508)
## Problem - in the new docs navigation (`docs-ia-mvp-v1=option-1`), a label that wraps in an expandable sidebar row is centered, for example `Architecture, limits and pricing` on the realtime pages in a narrow window - a section row has a fixed height so a two-line label such as `REST, GraphQL and Realtime APIs` has no space above or below it ## Solution - fixes the alignment of wrapped labels in expandable rows, because a `button` centers its text by default - changes the section rows so it grows when its label wraps - adds a two-line limit to the section row labels, so a longer label ends with an ellipsis - changes the expandable rows in the page tree from 36px to 32px, so they match the link rows | before | after | | --------------------------------------------------------------------------- | -------------------------------------------------------------------------- | | <img width="267" height="248" alt="image" src="https://github.com/user-attachments/assets/09f27102-8d4d-471b-bde2-83adec5d6623" /> | <img width="267" height="248" alt="image" src="https://github.com/user-attachments/assets/cb0259ba-86ff-484d-844b-b6fce597d6e1" /> | ## Preview links | Site | Live | Preview | Search for | | ---- | ------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------- | | Docs | [/docs/guides/realtime?docs-ia-mvp-v1=option-1](https://supabase.com/docs/guides/realtime?docs-ia-mvp-v1=option-1) | [/docs/guides/realtime?docs-ia-mvp-v1=option-1](https://docs-git-fix-docs-sidebar-wrapped-rows-supabase.vercel.app/docs/guides/realtime?docs-ia-mvp-v1=option-1) | `Architecture, limits and pricing` | ## Review instructions 1. open [/docs/guides/realtime?docs-ia-mvp-v1=option-1](https://docs-git-fix-docs-sidebar-wrapped-rows-supabase.vercel.app/docs/guides/realtime?docs-ia-mvp-v1=option-1) 2. make the window narrower until `Architecture, limits and pricing` wraps in the sidebar 3. make sure that the label is left-aligned and that its chevron is on the first line 4. click the back button at the top of the sidebar to open the `Build` list 5. make sure that the `REST, GraphQL and Realtime APIs` row is taller than the other rows, and that its icon and chevron are on the first line 6. make sure that each one-line row is 32px tall and that its icon is level with its label 7. open the menu at a phone width, and make sure that its rows did not change ## 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) |
||
|
|
e20bf8829c |
chore(studio,docs,www) - update [YOUR-PASSWORD] to be [YOUR-DATABASE-PASSWORD] for semantics + subsequent search terms (#53531)
## Problem Flavor of #41370 , but we can see that at least some traffic for this search query is searching using phrases like `supabase password reset` and `supabase password` and then accidentally find themselves on the `/docs/guides/auth/passwords` page. You can see this through user flow mappings in PostHog + also in search query traffic in Google Search Console. <img width="1261" height="669" alt="image" src="https://github.com/user-attachments/assets/70af109c-dbc8-42c2-887a-63133f3f82d5" /> <img width="1128" height="669" alt="image" src="https://github.com/user-attachments/assets/52358d87-55a8-4491-ad26-a0d390ebe55b" /> ## Solution Renames the placeholder across docs / studio / www to `[YOUR-DATABASE-PASSWORD]` and adds an admonition to the current `/docs/guides/auth/passwords` to direct folks to the correct place. Might also be a UX fix in the dash.... but poking into it feel like we already have a lot of affordances there already (`Reset database password` button on the direct connection panel + quick search action for `Reset database password`). ## Preview links ### Studio `https://studio-staging-obj7agk56-supabase.vercel.app/dashboard/project/$PROJECT?showConnect=true&connectTab=direct` <img width="1128" height="801" alt="image" src="https://github.com/user-attachments/assets/420c8582-97bd-45ff-914e-ea9bb25aed91" /> ### Docs https://docs-git-kody-devrel-866-database-password-placeholder-supabase.vercel.app/docs/guides/auth/passwords <img width="838" height="463" alt="image" src="https://github.com/user-attachments/assets/c4bb0242-6ff7-4de7-90c7-386818649209" /> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
cf556ebd2a |
fix(studio): wait for permissions before showing no-permission on auth logs (#53527)
## Problem The auth logs route rendered the full-page `NoPermission` state whenever `useAsyncCheckPermissionsV2` returned `can: false`. The hook returns `can: false` until the permissions query succeeds. Users who can read logs therefore saw a short "No permission" flash before the logs loaded. ## Solution `apps/studio/routes/project/$ref/logs/auth-logs.tsx` now reads `isSuccess` from `useAsyncCheckPermissionsV2`: - While permissions load, the route renders nothing. - Once they load, a user without `ANALYTICS_LOGS_READ` gets the full-page `NoPermission` state. - Otherwise the route renders `LogsPreviewer` as before. This is the same `isSuccess && !can` gating that other routes use, such as `database/extensions.tsx`. No other route under `routes/project/$ref/logs/` uses this pattern. ## How to verify - As a user with log access, open `/project/<ref>/logs/auth-logs`. Hard-reload the page. The "No permission" state never appears, and the auth logs view loads. - As a user without analytics log read access, open `/project/<ref>/logs/auth-logs`. The page shows the full-page "No permission" state for authentication logs. ## Checks run - `pnpm turbo run typecheck --filter='...[origin/master]'`: pass - `pnpm turbo run lint --filter='[origin/master]'`: pass, no errors. It ran out of memory once at the default heap and passed with `NODE_OPTIONS=--max-old-space-size=8192`. - Prettier check on the changed file: pass - No unit tests cover this route. [FE-5121](https://linear.app/supabase/issue/FE-5121/auth-logs-page-flashes-no-permission-while-permissions-load) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
9aed3bcb6e |
fix(studio): load more query performance rows when the grid isn't scrollable (#53457)
## Problem On the Query Performance page, more rows only load when the grid fires a scroll event. The first page is 20 rows at 44px each, so on a tall viewport the rows don't overflow the grid. The user can't scroll, and the remaining rows never load. Zooming in works around it. The same dead end happens whenever a client-side filter leaves too few loaded rows to fill the grid. Fixes part of FE-5092. The `calls >= N` filter returning no results is a separate cause and will follow in its own PR. ## Solution `useInfiniteScroll` now takes an optional `containerRef` (the `DataGrid` ref) and `rowCount`. When the ref is passed, the hook also requests the next page whenever the grid's content doesn't overflow its container and there is another page, and it re-checks when the container resizes. Existing callers that don't pass it behave as before. The three `react-data-grid` consumers of the hook share the same dead end, so all three now pass the ref: Query Performance, Cron Jobs and Cron Job runs. For Query Performance, the hook call moved from `WithStatements` into `QueryPerformanceGrid`, which owns the grid ref. ## Review instructions 1. Open Observability → Query Performance on a project with more than 20 statements. 2. Make the browser window tall (or zoom out) so 20 rows don't fill the grid. 3. Confirm more rows load automatically until the grid scrolls, and that scrolling to the bottom still loads further pages. 4. Resize the window taller and confirm more rows load. 5. Repeat on Integrations → Cron (the jobs list and a job's previous runs) if the project has enough jobs or runs to need more than one page. ## 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) |
||
|
|
8cda1fc977 |
fix(studio): apply query performance calls and total time filters in SQL (#53459)
## Problem On the Query Performance page, the calls filter only applied to rows already loaded in the grid. The page loads 20 rows at a time, so a filter like `calls >= 200` showed "No queries detected" whenever none of the loaded rows matched, even if matching queries existed further down. The filter bar writes a `callsFilter` URL param, but the page only passed a separate `minCalls` param to the SQL, which nothing set. The total time filter had a related gap: only `>` and `>=` reached the SQL, and the other operators were ignored. Fixes part of FE-5092. The lazy-load fix is in #53457. ## Solution - `generateQueryPerformanceSql` takes `callsFilter` and `totalTimeFilter` and builds the `WHERE` clause for all six comparison operators. The operator comes from a fixed lookup and the value goes through `literal()`. Filters with a non-finite value or an unknown operator are dropped. - The page passes both filters to the query, and the unused `minCalls` param is removed. - The grid no longer filters search, roles or calls in memory, since the SQL already does. - The query search is now a literal, case-insensitive substring match. It was a regex (`~*`), so characters like `[` or `(` produced a SQL error while typing. This matches what the grid's old in-memory search did. Behavior changes to be aware of: - Regex search no longer works. Searching for `a.*b` now looks for that exact text. - Old `?minCalls=` links no longer have any effect. The UI never produced them. ## Review instructions 1. Open Observability → Query Performance on a project with more than 20 statements. 2. Add a Calls filter of `>= 200` (or a value higher than anything in the first 20 rows). Confirm matching queries appear. 3. Try the other operators on Calls and on Total time, including `!=`. 4. Search for `[` and `pg_sleep(` and confirm the grid shows matches (or an empty state) instead of a SQL error. 5. Clear the filters and confirm the full list returns. ## 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) |
||
|
|
943f02f413 |
fix(studio): make organization search case-insensitive (#53526)
## Problem The search on the organizations page lowercased each organization's name and slug but compared them with the raw input. Any search term with an uppercase letter matched nothing, and leading or trailing spaces broke matches too. ## Solution Normalize the input once (`search.trim().toLowerCase()`) and use it for the filter and for the empty-state check. A whitespace-only search now counts as no filter, and the no-results message shows the trimmed term. ## Review instructions 1. Sign in to the preview with an account that has at least one organization and open `/dashboard/organizations`. 2. Type an organization's name in a different case (for example all uppercase). The organization still shows. 3. Type part of an organization's slug in uppercase. The organization still shows. 4. Add spaces before and after a matching term. The organization still shows. 5. Type only spaces. Every organization shows, and the no-results state does not appear. 6. Type a term that matches no organization. The no-results state appears. Checks run: `pnpm turbo run typecheck --filter='...[origin/master]'` (pass), `eslint` on the changed file (pass), Prettier check (pass). `pnpm turbo run lint` ran out of memory twice in the `studio#lint:type-checks` step. ## 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-5119](https://linear.app/supabase/issue/FE-5119/organization-search-on-the-organizations-page-is-case-sensitive) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
6d2cf769a5 |
fix(studio): replace history entry in project billing usage redirect (#53525)
## Problem `/project/[ref]/settings/billing/usage` only redirects: to infrastructure settings for the `#cpu`, `#ram` and `#disk_io` hashes, and to the org usage page otherwise. The redirect runs on the client because it reads the URL hash. It used `navigate` with the default push behaviour, so the redirect page stayed in history. Pressing Back landed on the redirect page, which sent the user forward again, and the user could not go back. ## Solution Pass `replace: true` to both `navigate` calls in `apps/studio/routes/project/$ref/settings/billing/usage.tsx`, so the redirect replaces its own history entry. ## How to verify 1. From any project page, open `/project/<ref>/settings/billing/usage#cpu`. You land on `/project/<ref>/settings/infrastructure#cpu`. Pressing Back returns to the project page you came from, not to the infrastructure page again. 2. From any project page, open `/project/<ref>/settings/billing/usage` with no hash. You land on `/org/<slug>/usage?projectRef=<ref>`. Pressing Back returns to the project page you came from. ## Checks - `pnpm turbo run typecheck --filter='...[origin/master]'`: passed. - `eslint` on the changed file: passed. Prettier `--check`: passed. - `pnpm turbo run lint --filter='[origin/master]'` ran out of memory twice in the sandbox (`studio#lint:type-checks`). [FE-5120](https://linear.app/supabase/issue/FE-5120/project-billing-usage-redirect-breaks-the-back-button) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
91a6bd3bfb |
chore(docs): add Alex Venter to humans.txt (#53521)
## Problem `apps/docs/public/humans.txt` is missing a team member. ## Solution Adds `Alex Venter` to the team list, in alphabetical order between `Alex Ives` and `Alexander Alexandrov`. No other changes. ## Review instructions 1. Open `/docs/humans.txt` on the docs preview. 2. Check that `Alex Venter` appears between `Alex Ives` and `Alexander Alexandrov`. Verified with `git diff` (one added line). The file is plain text, so the typecheck, lint, and prettier checks do not apply to it. ## Checklist - [x] I have read [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) - [ ] If I wrote a new docs topic or edited an existing topic, I used the `/write-the-docs` or `/edit-the-docs` skill, which applies the docs [style guide](https://github.com/supabase/supabase/tree/master/apps/docs/style-guide) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
a4b871d473 |
chore(www) - create customers.md index and link in llms.txt (#53461)
## Problem Missing `customers.md` entry (which also meant that a lot of these stories were missing from `llms.txt` as well). ## Solution Updates generation logic to create `customers.md` + adds reference to `llms.txt`. ## Preview links - [`llms.txt`](https://zone-www-dot-com-git-customers-md-index-supabase.vercel.app/llms.txt) - [`customers.md`](https://zone-www-dot-com-git-customers-md-index-supabase.vercel.app/customers.md) |
||
|
|
2445edf11f |
chore(www) - SEO tweaks (verbiage + h1 tweaks on products pages) (#53374)
## Problem - Current `/product` pages could use a bit of SEO optimization for terms - Current product pages include marketing copy within the H1 - Few other tweaks in docs. ## Solution Moves marketing subtitles out of the `/database` / `/compute` / etc h1s. Updates a few keywords based on seo data within pages + docs ## Preview links | Before | After | | --- | --- | | [/database](https://supabase.com/database) | [/database](https://zone-www-dot-com-git-kody-devrel-861-seo-term-t-9418b2-supabase.vercel.app/database) | --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
dfb74e4018 |
content(kb) - nextjs auth listicle (#53468)
## Content Listicle for nextjs auth providers. ## Preview links https://kb-git-kody-devrel-851-nextjs-auth-listicle-supabase.vercel.app/kb/guides/best-nextjs-authentication-providers |
||
|
|
fb6bfd86ea |
chore(deps): bump next to 16.4.6 (#53509)
## Problem `pnpm audit` reports a moderate advisory for `next` 16.4.3, which the lockfile resolves today. Versions `>=16.4.5` are patched. ## Solution Ran `scripts/fix-audit-vulnerability.ts next`. It added a temporary override to resolve `next` to `^16.4.5`, reinstalled, removed the override, reinstalled again, and confirmed that the audit passes without the override. Every workspace now resolves `next@16.4.6`. Only `pnpm-lock.yaml` changes. No `package.json` edits and no permanent overrides in `pnpm-workspace.yaml`. ## Review instructions 1. `pnpm install --frozen-lockfile` succeeds. 2. `pnpm why next --recursive` lists only `next@16.4.6`. 3. `pnpm audit` reports no advisory for `next`. 4. `pnpm turbo run typecheck --filter='...[origin/master]'` passes (25/25 tasks, run with `--concurrency=1`). 5. The Studio, docs and www previews build and load. Note: `pnpm turbo run lint --filter='[origin/master]'` ran out of memory twice in `studio#lint:type-checks` (JavaScript heap out of memory) in the build sandbox. The other lint tasks passed. CI should run it. ## 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) [FE-5089](https://linear.app/supabase/issue/FE-5089/bump-a-single-vulnerable-dependency) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
19f1d93316 |
chore: update cli config schemas (#53464)
Updates the published JSON Schemas from the supabase/cli release workflow. Generated by `scripts/publish-schemas.ts` in supabase/cli from `apps/cli/schemas`. Regenerate them in supabase/cli rather than editing this folder. Published versions below the current one are frozen and never rewritten. Auto-merge is enabled: the PR squash-merges once a reviewer approves it. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> |
||
|
|
cf37022b6b | fix(self-hosted): sandbox Storage, REST and Functions responses at the API gateway (#53466) | ||
|
|
9e8e36fda1 |
Improve R2NP confirm flow (#53446)
## Context
Just tidying up the UI for the Restore to new project flow, some issues
- The previous step before confirming showed notes on what to expect,
but the language isn't smooth
- Updating to show the selected backup, organization and compute size
(as tooltips)
- Have verified on preview RE the selected backup for both logic + PITR
backup
- Remove the Additional Monthly Cost section as this step since this is
repeated in the next step when inputting the project name and password
| Before | After |
| --------- | ------------ |
| <img width="400"
src="https://github.com/user-attachments/assets/0c5ca5d1-a20e-4cb3-9eef-e80e9096469a"
/> | <img width="400"
src="https://github.com/user-attachments/assets/9ee11e6b-68de-4241-ac63-f7127fcd105d"
/> |
- The new project created will have its disk size increased by 1.5x, but
this triggers an "Exceeded usage" warning for the new project if spend
cap is enabled on the organization, since disk size cannot be increased
past 8GB if so
- Show the compute size that the new project will have as a tooltip
- Updated the copy here + added an admonition to explain this if the org
has spend cap enabled
| Before | After |
| --------- | ------------ |
| <img width="400"
src="https://github.com/user-attachments/assets/004fd934-2128-4beb-b151-265fb9b92de6"
/> | <img width="400"
src="https://github.com/user-attachments/assets/35be6636-9b78-49ad-bfc1-02e2f6ce425a"
/> |
|
||
|
|
59df3513bd |
[FE-3106] (part 15) – docs(studio): retire the tanstack migration guardrails (#53224)
Retires the migration guardrails now that `pages/**` is gone (FE-3106). Last part (15) of the stack. **Depends on:** #53223 **Changed:** - `apps/studio/AGENTS.md` – replaces the "TanStack Start migration" rules (never delete a page, mirror page edits) with a short routing section - `apps/studio/README.md`, `routes/project/$ref/editor.tsx` – stale Next references **Removed:** - `apps/studio/TANSTACK_MIGRATION.md` - the `apps/studio/pages/**` `path_instructions` rule in `.coderabbit.yaml` Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Docs-only; nothing to exercise beyond reading `apps/studio/AGENTS.md` --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com> |
||
|
|
bbb0af65cb |
[FE-3106] (part 14) – refactor(studio): drop the dual-runtime shims and aliases (#53223)
Drops the remaining Next-era shims and aliases that only existed for the dual runtime (FE-3106). Part 14 of the stack. **Depends on:** #53222 **Changed:** - ~45 files – import Sentry from `@sentry/react` directly instead of the aliased `@sentry/nextjs` - `hooks/ui/usePreventNavigationOnUnsavedChanges.ts` – is now the TanStack `useBlocker` implementation (previously swapped in by a Vite alias) - `components/interfaces/App/RouteValidationWrapper.tsx` – `next/router` → `useNavigate` + the leaf route's `fullPath` (`/project/$ref/sql/$id`) for the exempt-route and last-visited checks - `hooks/misc/withAuth.tsx` – no `getLayout` forwarding - `TemplateEditor.test.tsx` – renders inside a router for the unsaved-changes blocker **Removed:** - `compat/sentry-nextjs.ts` and its Vite alias, the `usePreventNavigationOnUnsavedChanges` alias and Next hook, `types/next.ts` (`NextPageWithLayout`), the `@sentry/nextjs` dependency The `compat/next/*` shims for `link`, `router`, `head`, `image`, `navigation`, `dynamic` and `script` stay: about 300 components outside `routes/**` still import them. Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Trigger an error (e.g. a failing query) – it reaches Sentry as before - Edit an email template or edge function and navigate away – the unsaved-changes prompt appears - Open an org you don't belong to – toast and redirect home; open a SQL snippet, leave and come back – last snippet is restored --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
cf223ae74a |
[FE-3106] (part 13) – chore(studio): remove next entry files and config (#53222)
Removes the Next-only entry files and config now that every page lives in `routes/**` (FE-3106). `routes/__root.tsx` already mirrors `pages/_app.tsx` (dayjs plugins, providers, telemetry, error boundary, favicons). Part 13 of the stack. **Depends on:** #53221 **Changed:** - `components/interfaces/App/{NotFoundPage,ServerErrorPage}.tsx` – the 404/500 pages, rendered by `__root.tsx`, now with native `Link`/`useNavigate` and `<img>` - `routes/api/{status-page,scoped-access-token-permissions}.ts` – App Router handlers from `app/api/**` moved in (`NextResponse.json` → `Response.json`); `buildAPIPermissionScopeMap` moves to `lib/api/` - `package.json`, `tsconfig.json` – no `next typegen` step or `.next/types` include - `packages/ui-patterns/.../InstructionBlocks.tsx` – asset map typed `StaticImageData | string`: under Vite a png import is a URL string, which Next's global image types used to hide - `vite.config.ts`, `knip.jsonc`, `turbo.jsonc` and comments across studio – Next build references removed **Removed:** - `pages/{_app,_document,404,500}.tsx`, `pages/_error.jsx`, `pages/README.md`, `app/**`, `next.config.ts`, `proxy.ts`, `instrumentation{,-client}.ts`, `sentry.{server,edge}.config.ts`, `fonts/index.ts` (next/font), `BootTimeoutFallback`, `postcss.config.cjs`, the `next/server` shim - `@next/bundle-analyzer`, `raw-loader`, `postcss`, `@tailwindcss/postcss` dev dependencies Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Open an unknown URL – the 404 page renders with working "Head back" - `/api/status-page` and `/api/scoped-access-token-permissions` on platform – same JSON and `Cache-Control` - Fonts (Inter, Manrope, Source Code Pro) still load --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
801e4ad285 |
[FE-3106] (part 12) – refactor(studio): replace the org and project catch-all pages (#53221)
Gives the `/org/_/…` and `/project/_/…` catch-alls proper TanStack routes and deletes `pages/org/_/[[...routeSlug]].tsx` and `pages/project/_/[[...routeSlug]].tsx` (FE-3106). They show an org or project picker whose links forward the trailing path and the query string (and, for projects, the hash) to the real org or project. Part 12 of the stack. **Depends on:** #53220 **Changed:** - `components/interfaces/Organization/SelectOrganizationPage.tsx`, `components/interfaces/Home/ProjectList/SelectProjectPage.tsx` – the picker bodies. The trailing path and query string come from `useLocation()` (repeated query keys survive): the splat routes nest under the `/org/_` and `/project/_` routes, which render the picker with no `<Outlet>`, so the picker can't rely on its own route's `_splat` - `routes/{org,project}.[_].tsx`, `routes/{org,project}.[_].$.tsx` – render the pickers - `tests/routes/org.[_].$.test.tsx` – covers path and query forwarding **Removed:** - both catch-all pages, and `parseCatchAllRoute` from `compat/next/router.ts` Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - `/project/_/database/tables?schema=auth#x` – pick a project, lands on `/project/<ref>/database/tables?schema=auth#x` - `/org/_/billing?panel=x` – pick an org, lands on `/org/<slug>/billing?panel=x` - `/org/_` and `/project/_` – pickers link to the org or project home --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
f8cbf2ae56 |
[FE-3106] (part 11) – refactor(studio): move sql, editor, explorer and integrations (#53220)
Moves the SQL editor, table editor, explorer and project integrations page bodies into their route files and deletes the pages (FE-3106). Part 11 of the stack. **Depends on:** #53219 **Changed:** - `routes/project/$ref/{sql,editor,explorer,integrations}/**` – 15 page bodies inlined. Every `router.push/replace` became the equivalent `navigate` with the same path, `search` and `replace`; the last-opened-table redirect splits `buildTableEditorUrl`'s absolute URL with `splitInternalUrl` so it stays a client-side navigation - `components/interfaces/SQLEditor/SnippetNotFound.tsx` – the invalid-snippet state moves out of the route because `tabs.handleTabClose` still takes a Next-shaped router - `tests/routes/project/$ref/explorer/index.test.tsx` – moved and rendered with `renderRoute` **Removed:** - 15 page files Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - SQL editor: open `/sql` (redirects to the last snippet or `new`), open/close snippets and tabs, an invalid snippet id shows "Unable to find snippet" - Table editor: open `/editor` (redirects to the last table), create a table – lands on it with `?schema=` - Explorer and Integrations pages – same layout; integration sub-pages redirect as before --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
00bd19f06c |
[FE-3106] (part 10) – refactor(studio): move settings, advisors and issues pages (#53219)
Moves the `/settings/*`, `/advisors/*` and `/issues/*` page bodies into their route files and deletes the pages (FE-3106). Part 10 of the stack. **Depends on:** #53218 **Changed:** - `routes/project/$ref/settings/**` – 16 page bodies inlined. `settings/api` redirects with `<Navigate>`; billing usage, dashboard and replica pages use typed `navigate`/`Link` - `routes/project/$ref/{advisors,issues}/**` – 7 page bodies inlined - Settings tests moved from `tests/pages/**` to `tests/routes/**` and rendered with `renderRoute` - `routes/project/$ref/advisors{.tsx,/rules.tsx,/security.tsx,/performance.tsx,/health.tsx}` – carry master's #52993 (Advisors → Issues behind `issuesInbox`: `IssuesCategoryRedirect`, `LegacyAdvisorsLayout`, `parseLinterLevel`, named `LinterFilters`/`LintPageTabs`), ported from the deleted pages and checked against master's pages + route adapters; `LegacyAdvisorsPages.platform.test.tsx` now renders the routes (`tests/routes/project/$ref/advisors/legacy-advisors.platform.test.tsx`) **Removed:** - 23 page files, and `AdvisorRulesLayout` (only the deleted rules pages used it; `routes/project/$ref/advisors/rules.tsx` already inlines it) Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Project Settings (General, Compute, Infrastructure, Add-ons, API keys, JWT, Log drains, Webhooks, Integrations) – same layout and sidebar - `/project/<ref>/settings/api` – redirects as before - Advisors (Security, Performance, Rules) and Issues – same layout --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
d31c7d1603 |
[FE-5104] fix(studio): validate site url and redirect urls (#53492)
The Auth URL Configuration page saved Site URLs and redirect URLs containing spaces or backslashes. `SiteUrl` only checked that the value was non-empty. `urlRegex()` in `Auth.constants.ts` wasn't anchored, so any valid prefix passed (`https://foo bar.com`, `http://localhost:3000\`). This isn't a TanStack regression: both gaps go back to before the migration (#44803, #30138), and the Next and TanStack routes render the same `SiteUrl`/`AddNewURLModal` components. **Changed:** - `urlRegex()` is anchored and rejects whitespace and backslashes. This also tightens its other callers (provider forms, SMTP host), which now reject trailing junk after a valid prefix. The localhost branch also accepts `?`/`#` right after the host, so scheme-less values such as `localhost:3000?x=1` that pass today still pass. - New `getUrlCharacterError` and `getSiteUrlError` helpers give specific inline errors ("can't contain spaces/backslashes/wildcards", "Please provide a valid URL, such as https://example.com"). - `SiteUrl` still trims, then rejects interior whitespace, backslashes, wildcards and non-absolute URLs. `getSiteUrlError` also rejects the `javascript:`, `data:`, `file:` and `vbscript:` protocols and requires `scheme://`. Without that, a scheme-less `localhost:3000` would parse with `localhost:` as its scheme. Custom app schemes such as `myapp://callback` still work. `onSubmitSiteUrl` is now typed instead of `any`. - The Azure, GitLab, Keycloak, WorkOS and SAML URL fields in `AuthProvidersFormValidation.tsx` now `.trim()` before checking `urlRegex()`, so a trailing space no longer fails the now-anchored regex. - `AddNewURLModal` shows the specific character error before falling back to "Please provide a valid URL". **Added:** - Unit tests for `urlRegex()`, `getUrlCharacterError` and `getSiteUrlError`, including unsafe protocols and scheme-less `host:port`. - `AuthProvidersFormValidation.test.ts`: each provider URL field trims surrounding whitespace and rejects interior spaces. - Component tests for `SiteUrl` and `AddNewURLModal` covering spaces, backslashes, wildcards and invalid URLs, plus saving every supported redirect URL form. The new rejection tests fail without the fix. - `AddNewURLModal.test.tsx` now uses MSW (`customRender` + `addAPIMock`) instead of `vi.mock('@/data/...')`. Addresses [FE-5104](https://linear.app/supabase/issue/FE-5104/dashboard-allows-spaces-in-the-site-url). ## To test - [ ] Auth > URL Configuration, set Site URL to `https://my app.example.com` and save – "Site URL can't contain spaces", nothing saved - [ ] Site URL `http://localhost:3000\` – "Site URL can't contain backslashes" - [ ] Site URL `https://*.example.com` – "Site URL can't contain wildcards" - [ ] Site URL `example.com` or `localhost:3000` – "Please provide a valid URL, such as https://example.com" - [ ] Site URL `javascript:alert(1)` – "Site URL can't use the javascript: protocol" - [ ] Site URL `myapp://callback` – saves - [ ] Site URL ` http://localhost:3000 ` – saves as `http://localhost:3000` - [ ] Add URL, enter `https://my app.example.com` – "URL can't contain spaces"; `myapp://callback\` – "URL can't contain backslashes" - [ ] Sign In / Providers > Keycloak, enter a Realm URL with a trailing space and save – no "Must be a valid URL" error; saved without the space - [ ] Add URL, paste `https://*.example.com/** http://localhost:3000/* com.example.app://callback chrome-extension://abcdefghijklmnop` – splits into 4 rows and saves all 4 Ran typecheck, lint ratchet, knip, Prettier, and the Auth vitest suites. --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
c6a3a23dfb |
feat(studio): track free project limit blocks on downgrade and transfer (#53460)
Studio blocks a downgrade to the Free Plan and a project transfer when a member would exceed their free project limit, and neither block is tracked. This adds one event for each so we can count how often people hit them. No UI change. **Changed:** - **Downgrade blocked**: `studio_billing_downgrade_blocked_modal_opened` fires when confirming a downgrade opens the "members have exceeded their free project limits" modal. It sits in `CancellationFlow`, so it covers both the Cancel subscription button and the plan side panel. - **Transfer blocked**: `project_transfer_preview_failed` fires when the transfer preview for the selected target organization comes back with members over the limit, once per preview. A refetch that returns the same data does not fire it again. **Note:** the transfer event fires from an effect on the preview data. The notice appears when that data arrives, so there is no click handler to attach it to. ## To test Needs an organization on a paid plan with a running project, where an owner or admin already has the maximum number of free projects in other organizations. Tested on the PR preview: - [ ] Go to the org billing page, click "Cancel subscription" and confirm the downgrade, expect the members-exceed-limit modal and one telemetry request with action `studio_billing_downgrade_blocked_modal_opened` carrying `currentPlan` and `membersExceedingLimitCount` - [ ] Open the plan side panel, pick the Free Plan and confirm, expect the same modal and one more `studio_billing_downgrade_blocked_modal_opened` request - [ ] In project settings > General, click "Transfer project" and select a Free Plan target organization, expect the "Project cannot be transferred" notice listing members and one telemetry request with action `project_transfer_preview_failed` carrying `sourcePlan`, `targetPlan` and `membersExceedingLimitCount` - [ ] Edge case: with the notice showing, switch to another browser tab and back, expect no additional `project_transfer_preview_failed` request ## Linear - fixes GROWTH-1510 |
||
|
|
96e4543ea9 |
[FE-3106] (part 9) – refactor(studio): move logs and observability page bodies (#53218)
Moves the `/logs/*` and `/observability/*` page bodies into their route files and deletes the pages (FE-3106). Part 9 of the stack. **Depends on:** #53217 **Changed:** - `routes/project/$ref/logs/**` – 20 page bodies inlined. `logs/index` keeps its `withAuth` wrapper; `replication-logs` redirects with `<Navigate search hash>`; the Logs Explorer save navigates with `search: { queryId }` (never a query inside `to`) - `routes/project/$ref/observability/**` – 12 page bodies inlined; chart highlight actions navigate with `search` params - `components/interfaces/Observability/DatabaseReport.hooks.ts` – the database report's URL hooks move out of the page (with their test) - `components/ui/Charts/ComposedChartHandler.tsx` – imports `UpdateDateRange` from `ChartHighlightActions` instead of a page **Removed:** - 32 page files Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Logs Explorer: run a multi-line query, save it – the URL keeps newlines and the saved query reopens - Each log source (Postgres, Auth, Edge, Storage, Realtime, …) – same layout and title - Observability reports – charts render; highlighting a range links to the right logs page Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
2695cf117a |
[FE-3106] (part 8) – refactor(studio): move storage, functions and branches pages (#53217)
Moves the `/storage`, `/realtime`, `/compute`, `/functions` and `/branches` page bodies into their route files and deletes the pages (FE-3106). Part 8 of the stack. **Depends on:** #53216 **Changed:** - `routes/project/$ref/{storage,realtime,compute,functions,branches}/**` – 26 page bodies inlined. Wrappers the routes imported from pages (`BranchesPageWrapper`, `MergeRequestsPageWrapper`, …) are now private to their route files. Bucket redirects, function create/deploy navigation and merge-request links use typed `navigate`/`Link`; function logs/invocations use `useLocation().href` - Edge function overview, logs-navigation, vectors, compute and branches tests render the routes with `renderRoute` - `routes/project/$ref/storage/files/buckets/$bucketId.tsx` – also carries master's #52777 (Purge CDN cache action and single `action` query param for the bucket modals), ported from the deleted page so it isn't reverted **Removed:** - 26 page files Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Storage: open a bucket, its policies link and S3 settings – same layout; deleting a bucket returns to the list - Edge Functions: create a function, open Overview/Code/Logs/Invocations/Details – same layout - Branches and merge requests – lists and "Review" links work --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
5f282681ef |
[FE-3106] (part 7) – refactor(studio): move project auth page bodies into routes (#53216)
Moves all `/project/$ref/auth/*` page bodies into their route files and deletes `pages/project/[ref]/auth/**` (FE-3106). Part 7 of the stack. **Depends on:** #53215 **Changed:** - `routes/project/$ref/auth/**` – 18 page bodies inlined. `overview` redirects with a typed `navigate` when the flag is off and now also re-runs once flags finish loading (before, a late flag load could skip the redirect); `templates/$templateId` reads params from `Route.useParams()` and uses `Link`. `authLayoutTitle` and the `skipAuthLayout` leaves match the old `getLayout`s **Removed:** - 18 page files Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Click through Authentication (Users, Providers, Sessions, Rate Limits, Emails, SMTP, URL Configuration, Hooks, MFA, Attack Protection, Third-party, OAuth) – same layout and titles - Open an email template and use "Back" – returns to the templates list --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
7418124337 |
[FE-3106] (part 6) – refactor(studio): move project home and database page bodies (#53215)
Moves the project home, `/merge`, `/api` and all `/database/*` page bodies into their route files and deletes the pages (FE-3106). Part 6 of the stack. **Depends on:** #53214 **Changed:** - `routes/project/$ref/{index,merge,api/index}.tsx`, `routes/project/$ref/database/**` – 26 page bodies inlined; redirects use `<Navigate>`/`useNavigate` with typed params and `search`; `next/link` → `Link` - `database/pipelines/new` – same-origin header links navigate client-side via `splitInternalUrl`, external ones via `href`, matching the old shim - `PipelineCreationPage.test.tsx` – renders the route with `renderRoute` **Removed:** - 26 page files, and `DatabaseTriggersLayout`/`PipelinesLayout`, which only the deleted pages' `getLayout` used (the route shells already inline them) Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Click through Database (Tables, Functions, Triggers, Indexes, Roles, Policies, Backups, Pipelines, Publications) – same layout, titles and sidebar - `/project/<ref>/database/triggers` – redirects to `triggers/data` - `/project/<ref>/api` – redirects to the Data API docs, keeping the query - Create a pipeline and leave the wizard – unsaved-changes guard and navigation behave as before --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
af613c0217 |
[FE-3106] (part 5) – refactor(studio): move org page bodies into route files (#53214)
Moves the org page bodies (`/org` and everything under `/org/$slug/*`) into their route files and deletes `pages/org/**` apart from the catch-all, which part 12 handles (FE-3106). Part 5 of the stack. **Depends on:** #53213 **Changed:** - `routes/_app/org/index.tsx` – redirect to the last visited org or `/organizations` uses `useNavigate` - `routes/_app/org/$slug/**` – 16 page bodies inlined; `webhooks/$endpointId` reads the id from `Route.useParams()`; `next/link` → `Link`. Every `orgLayoutTitle` matches the old `getLayout` title **Removed:** - 16 files under `pages/org/**` Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Visit each org settings tab (General, Team, Integrations, Billing, Usage, SSO, Security, Audit, Webhooks, Apps) – same layout, title and sidebar highlight - `/org` – redirects to the last visited org - Open a webhook endpoint – details load; switching endpoints resets the page --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
33ae2caa0d |
[FE-3106] (part 4) – refactor(studio): move sign-in and standalone page bodies (#53213)
Moves the sign-in and standalone page bodies (`/sign-in`, `/sign-up`, `/sign-in-sso`, `/sign-in-partner`, `/sign-in-mfa`, `/sign-in-recovery-code`, `/forgot-password`, `/forgot-password-mfa`, `/reset-password`, `/cli/login`, `/partners/stripe/projects/login`, `/authorize`, `/redeem`, `/logout`, `/maintenance`, `/verify-email`, `/support/csat`, `/mcp/secrets`) into their route files and deletes the pages (FE-3106). Part 4 of the stack. **Depends on:** #53212 **Changed:** - `routes/_auth/**` and the standalone routes – page bodies inlined; `next/router`/`next/link`/`next/head` → native TanStack (`navigate({ to, search })`, `search: true` to carry the query, `href` for runtime return URLs) and inline `<title>`. Layout chains match the old `getLayout`s - `components/interfaces/CliLogin/CliLoginScreen.tsx` – the CLI login screen moves out of the page so its test can import it without the route file exporting it - `tests/routes/{authorize,_auth/**}.test.tsx` – moved from `tests/pages/**` and rendered with `renderRoute` **Removed:** - 18 page files Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Sign out, open `/sign-in` and `/sign-up` – same layout and title; switching between them keeps `returnTo` - Sign in with MFA – `/sign-in-mfa` returns to the original page - `/cli/login?session_id=…` and `/authorize?…` – flows complete as before - `/logout` – redirects to `/sign-in` --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
d2eb58a0e7 |
[FE-3106] (part 3) – refactor(studio): move account and top-level page bodies (#53212)
Moves the account and top-level app page bodies (`/account/*`, `/organizations`, `/new`, `/new/$slug`, `/join`, `/claim-project`, `/aws-marketplace-onboarding`, `/stripe-atlas-application`, `/support/new`, `/support/link`, `/integrations/github|vercel/*`) from `pages/**` into their TanStack route files and deletes the pages. Part of the final pass of the TanStack migration (FE-3106). Part 3 of the stack, and the first page-move PR. **Depends on:** #53202 **Changed:** - `routes/_app/account/**`, `routes/_app/{organizations,new/index,support/*}.tsx`, `routes/{new/$slug,join,claim-project,aws-marketplace-onboarding,stripe-atlas-application}.tsx`, `routes/integrations/**` – page bodies inlined. `next/router`/`next/link`/`next/head` → `useNavigate`, `Link`, `<Navigate>` and inline `<title>`. `getLayout` dropped; every old `getLayout` was checked against the route tree and matches - `routes/aws-marketplace-onboarding.tsx` – reads `buyer_id` through `validateSearch` + `Route.useSearch()` - `tests/lib/route-render.tsx` – new `renderRoute(Route, { routeId, url })` helper that mounts a file route in a memory router (with the app's search serializers) so route components can be tested; used by the moved tests - `tests/lib/route-mock.ts` – the `next/router` mock now derives its dynamic-route patterns from `routes/**` instead of globbing `pages/**`, so tests keep parsing params as pages disappear - `tests/routes/**` – page tests moved from `tests/pages/**` and rendered through the route - `.github/CODEOWNERS` – `pages/new/index.tsx` owner moved to `routes/_app/new/index.tsx` **Removed:** - 19 files under `pages/account/**`, `pages/new/**`, `pages/support/{new,link}.tsx`, `pages/integrations/**` and the top-level pages listed above Addresses [FE-3106](https://linear.app/supabase/issue/FE-3106/move-page-bodies-into-route-files-and-delete-pages). ## To test - Open `/account/me`, `/account/security`, `/account/tokens`, `/account/audit` – same Account layout, header title and sidebar as before - Open an old email-change link (`/account/me#message=...`) – lands on `/account/security` with the hash - `/account/tokens/scoped` – redirects to `/account/tokens` - `/organizations` and `/new/<org>` – render with the same layout; "New organization" links work - Vercel install/marketplace flows – navigation keeps `?…` params --------- Co-authored-by: Alaister Young <10985857+alaister@users.noreply.github.com> |
||
|
|
6baa343815 |
chore(www): bump MCP server card to 0.17.0 (#53491)
## Problem The Checkly check "Supabase MCP server card" is failing. `mcp-server-supabase` v0.17.0 was released Nov 13, but the card at `/.well-known/mcp/server-card.json` still says 0.16.1. The check fails once the card is 2 or more days behind a release. Tracked in GROWTH-1515. ## Solution - Set `version` in `apps/www/public/.well-known/mcp/server-card.json` to `0.17.0`. ## Review instructions 1. Open the [preview card](https://zone-www-dot-com-git-sean-growth-1515-mcp-serve-c8ef1a-supabase.vercel.app/.well-known/mcp/server-card.json) and confirm `"version": "0.17.0"` (checked: it serves 0.17.0; prod serves 0.16.1). ## 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 (N/A, no docs change) |
||
|
|
412df7746e |
feat: revamped free plan limit modals / downgrade improvements (#53257)
Whenever customers run into their 2 Free Plan project limit, we were previously just listed the affected members: <img width="1044" height="566" alt="image" src="https://github.com/user-attachments/assets/d1c1327d-2532-4d8e-8af2-425da9ce1ee5" /> While this lists the affected members, it is pretty unclear which organizations are affected or which projects contribute to this and what the best course of action is. This PR revamps all components that are displayed in this situation (new project launch, downgrade to Free, project unpause) to show the affected organizations + projects primarily and give more actionable tips: <img width="1014" height="638" alt="Screenshot 2026-11-11 at 3 57 45 PM (1)" src="https://github.com/user-attachments/assets/ae38f71d-bbde-4181-a623-24bef778afee" /> <img width="768" height="152" alt="image" src="https://github.com/user-attachments/assets/b3b0efd7-678b-4ac0-9602-4cc5d735a9aa" /> --- Additionally, this contains small improvements to the downgrade flow: - Rename button to "Downgrade Now" as opposed to "Confirm" to make it more clear that this is immediate - Explicitly mention downgrades are immediate and there is still another invoice for unbilled usage - Larger modal width for improved readability |
||
|
|
a0a17e17e8 |
fix(design-system): improve responsiveness of copywriting components (#46034)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Bug fix ## What is the current behavior? On mobile devices, the component previews in the Design System documentation site (`/apps/design-system`) overflow horizontally and clip off the screen. This is caused by rigid `p-10` padding on the preview container and hardcoded widths (`w-[400px]`, `w-[300px]`) and inflexible flex layouts (`flex-row gap-16`) within the example components. ## What is the new behavior? The component previews are now fully responsive and render correctly on mobile viewports: - Updated the main preview container padding to be responsive (`p-4 sm:p-10`) in `component-preview.tsx` to maximize available space on mobile. - Replaced fixed widths with fluid max-widths (`w-full max-w-[400px]`) in various copywriting component examples. - Updated flex layouts that previously forced single rows to wrap (`flex-wrap`) and scale down gaps on smaller screens (`gap-8 sm:gap-16`). - Added `shrink-0` to icons in alerts to prevent them from squishing when text wraps on narrow screens. Affected components: - `component-preview.tsx` - `copy-button-verbs.tsx` - `copy-confirmations.tsx` - `copy-error-messages.tsx` - `copy-form-labels.tsx` - `copy-loading-states.tsx` - `copy-success-messages.tsx` - `copy-tooltips.tsx` ## Screenshots ### Mobile (Layout Bug - Before) <!-- Add your broken mobile layout screenshot here --> <img width="383" height="673" alt="Image" src="https://github.com/user-attachments/assets/faeba844-c137-4ab2-aa2c-2299e5ae5bf0" /> <img width="377" height="667" alt="Image" src="https://github.com/user-attachments/assets/e995289c-8c4c-4ba2-8fac-f36bfe869cd7" /> <img width="376" height="671" alt="Image" src="https://github.com/user-attachments/assets/b08afcfc-cc03-4087-9bdc-6082ed4a0c0a" /> ### Mobile (Responsive - After) <!-- Add your fixed mobile layout screenshot here --> <img width="375" height="672" alt="Image" src="https://github.com/user-attachments/assets/54f68165-1e42-4f96-b9b8-cc6928909cbf" /> <img width="378" height="673" alt="Image" src="https://github.com/user-attachments/assets/816e7103-3184-4593-9847-896e3e4736ff" /> <img width="372" height="665" alt="Image" src="https://github.com/user-attachments/assets/97ba8f70-5340-4d15-92ee-1a032ee7d935" /> ## Additional context This addresses the layout bugs on the Design System Copywriting documentation page. Fixes #46033 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Improved responsiveness across the design system with updated layout and spacing utilities. * Replaced several fixed-width examples with flexible full-width containers constrained by max-widths for consistent sizing. * Adjusted preview padding to use responsive values for better mobile presentation. * Enabled flex wrapping and refined gap sizes for multi-row layouts. * Prevented icons from shrinking in flex rows to preserve alignment and visual consistency. <!-- review_stack_entry_start --> [](https://app.coderabbit.ai/change-stack/supabase/supabase/pull/46034?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|
|
4fb5d19d35 |
fix(design-system): color palette overflow fix (#53473)
## Problem Currently on a mobile device the color palette overflows and the layout of the site overflows as well: <img width="520" height="733" alt="Screenshot 2026-11-16 at 19 53 44" src="https://github.com/user-attachments/assets/1eb10beb-adb2-44a3-b320-8c47a0fa6759" /> ## Fix The palette now scrolls with the names being fixed: https://github.com/user-attachments/assets/bc8faeee-fffc-41bc-ac76-bf9b51d21808 |
||
|
|
07574deea7 |
chore(studio): refine log detail panel (#52750)
<img width="823" height="614" alt="image" src="https://github.com/user-attachments/assets/1c1ac47f-07e2-4bbe-a91e-5690e849e519" /> ## Problem The log detail panel felt cramped. The header split across two lines, contrast between the header, tabs and properties was weak, and long values overflowed their column. Edge function logs also had no path in the unified logs query, so their title fell back to the raw event message, which repeated the status and cut off the function name. The panel also moved under the user. Clicking a Timeline step jumped to Overview, so stepping through a request meant switching back each time, and an "Enriching log..." row pushed the details down while they loaded. ## Solution - **Header:** one line with the type icon, status badge, method and path. The log type name moves to the icon's tooltip. Long paths clip from the start so the most specific segment stays visible. - **Type and spacing:** 15px title, 12px property labels and values, 40px section and "Logged" rows, and more room around the tabs. The panel uses the card background. - **Long values:** wrap inside their column instead of overlapping the label. - **Edge function paths:** the ClickHouse query now reads `request.pathname` for `function_edge_logs`, matching the BigQuery query. - **Timeline:** clicking a step keeps the Timeline tab open, while the header, actions and other tabs follow the clicked log. A single hidden step is shown instead of "+1 more", and the first step shows its absolute time in place of the "Request started" row. - **Loading:** the header's type icon becomes a spinner of the same size while the log's details load, replacing the "Enriching log..." row. - **User tab:** the "No signed-in user" state uses the same centered empty state as the Timeline tab. Side effects to check: - Edge function rows now fill the Path column, so function-scoped tables can show that column. Path filters and facets include these rows, and Timeline steps show method and path. - Audit Logs and the Auth Users panel share these components. Audit Logs picks up the taller section rows, and Auth Users fields drop to 12px. ## How to test On `/project/<ref>/logs`: 1. Select an API Gateway log. The header is one line: icon, status badge, `METHOD /path`. The icon spins while details load, and nothing below it shifts when it stops. 2. Open **Timeline** and click a few steps. The tab stays on Timeline while the header and highlight follow each click, and Overview then shows the clicked log. The first step shows a time instead of `+0 ms`. 3. Select an edge function log. The title shows `METHOD /functions/v1/<name>` and the Path column is filled. Filtering by part of that path matches these rows. 4. Select a Postgres log. The title shows the message, and its **User** tab shows a centered empty state like Timeline's "No related logs". 5. Select a log with a long URL in a narrow panel. Values wrap inside their column and the title clips from the start. This has only been checked in Chromium. 6. Open an entry in Audit Logs and a user in Auth > Users, and check the spacing and type. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
d17e66f202 |
fix(studio): unified logs sidebar styling (#53470)
## Problem Unified Logs sidebar title and a few other bits fell out of sync after a recent change. ## Solution The Unified Logs filter sidebar hand-rolled its own header instead of using the shared `ProductMenuBar` header, so it drifted from every other section. This brings it back in line. - **Title**: `<p className="text-lg">` → `<h4 className="text-sm">`, matching `ProductMenuBar`. - **Header**: `px-4` → `px-6`, `gap-3` → `gap-2`, and `h-[48px]` → `min-h-(--header-height)`. - **Filter area**: `p-2` → `px-4 py-1.5`, so filter labels share the same left edge as the title. - **"Capture your logs" card**: dropped `mx-2` so it spans the container gutter. - **Reset button**: `variant="text"`, tooltip moved to `side="bottom"`. - **Card surfaces**: removed the ad-hoc `bg-muted/10 border-border/50` override so cards use the default border and inherit the sidebar surface. Note: `FeaturePreviewSidebarPanel` is shared, so the Advisors sidebar card loses the same tint — intentional, it brings all usages in line. | Before | After | |--------|--------| | <img width="293" height="745" alt="Screenshot 2026-11-16 at 19 11 05" src="https://github.com/user-attachments/assets/dc1ec664-382a-4e3b-a85b-40d37a8b479f" /> | <img width="265" height="739" alt="Screenshot 2026-11-16 at 19 10 43" src="https://github.com/user-attachments/assets/315fece5-3b45-4826-8e5c-5f6f9a1c258b" /> | ## Review instructions 1. Open Unified Logs (`/project/_/logs`) with the unified logs preview enabled. 2. Compare the sidebar header ("Logs" + Beta badge) against another section's sidebar header, e.g. Observability (`/project/_/advisors/rules` → Observability menu). The title size, weight and left padding should now match. 3. Confirm the filter labels ("Time Range", etc.) line up with the "Logs" title on the same left edge, and that the "Capture your logs" card spans the same width as the filter rows above it. 4. Apply a filter so the Reset button appears. It should render as a text button (no raised/filled background) and its tooltip should open below it. 5. Check the "Capture your logs" and "Go back to old logs" cards have no tinted background — just a border against the sidebar surface. 6. Check the Advisors sidebar (`/project/_/advisors`) card picks up the same treatment. |
||
|
|
805dfd71d1 |
chore(deps): bump hono to 4.13.18 (#53465)
## Problem `pnpm audit` reports a moderate-severity advisory for `hono@4.13.14`, patched in `>=4.13.16`. `hono` is a transitive dependency (via `@hono/node-server`, used by `@modelcontextprotocol/sdk` and `@modelcontextprotocol/node`) of `studio`, `library` and `@supabase/vue-blocks`. ## Solution Ran `scripts/fix-audit-vulnerability.ts hono`, which temporarily overrides the version, reinstalls, removes the override, and checks the audit again. The result changes only `pnpm-lock.yaml`: `hono` resolves to `4.13.18` (one version across the workspace). There are no permanent overrides and no `package.json` changes. ## Review instructions 1. `pnpm install --frozen-lockfile` succeeds with no changes. 2. `pnpm why hono --recursive` shows a single version, `hono@4.13.18`. 3. `pnpm --silent tsx scripts/fix-audit-vulnerability.ts hono --json` returns `"status": "not_vulnerable"`. 4. `pnpm --filter studio typecheck` passes. No UI changes. ## 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) [FE-5103](https://linear.app/supabase/issue/FE-5103/bump-a-single-vulnerable-dependency) Co-authored-by: supabase-vercel-tedd[bot] <336548405+supabase-vercel-tedd[bot]@users.noreply.github.com> |
||
|
|
2a9b02a99a | feat(docs): Improve Pipelines docs and UI (#53450) | ||
|
|
39cf54f3c4 |
docs: add cross-links to related guides and references (#53384)
## What Adds internal cross-links where a page mentions a product, feature, or concept that has its own canonical page. This PR covers docs guides under `apps/docs/content/guides`, excluding the shared partials (separate PR). ## How links were chosen - One canonical target per keyword, preferring docs guides over marketing or blog pages for docs content. - Only plain prose mentions: nothing inside headings, code, frontmatter, existing links, or UI labels. - One link per sentence, and no second link to the same target on a page. ## Testing - Prettier passes on all changed files. - Not yet run: docs build and internal link test, KB build. Draft until those are checked. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
80a8b3a7d2 |
docs: add cross-links in shared partials + fix broken links flagged by e2e (#53383)
## What Adds internal cross-links where a page mentions a product, feature, or concept that has its own canonical page. This PR covers the two shared docs partials, so each link appears once in source and propagates to every page that includes the partial (the social-login setup pages and the quickstarts). ## How links were chosen - One canonical target per keyword, preferring docs guides over marketing or blog pages for docs content. - Only plain prose mentions: nothing inside headings, code, frontmatter, existing links, or UI labels. - One link per sentence, and no second link to the same target on a page. ## Testing - Prettier passes on all changed files. - Not yet run: docs build and internal link test, KB build. Draft until those are checked. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
04a7b1ac64 | fix(studio): reject cross-origin writes on self-hosted (#53452) | ||
|
|
158df40e67 |
chore: Improve KB README (#53458)
## Problem KB README file still holds basic template content form Astro starter. ## Solution Update README with information on the project. <!-- ## 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. Checkout the README 2. Make sure it makes no reference to Astro starter project, and describes the basic on kb structure. _Preview README here: https://github.com/supabase/supabase/blob/da9f9080e7b7ba4bcda45f743c0d78f4d65b6a6c/apps/kb/README.md_ ## 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) |
||
|
|
bd138001cc |
chore: Add slack alert workflows for docs team (#53366)
## Problem We have accumulated several additions to workflows in GitHub Actions, but we are not notified when they failed. ## Solution This PR adds two files to notify Docs-related and KB-related failures in our Slack team alerts channel. <!-- ## 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 ///// ## 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: Ali Waseem <waseema393@gmail.com> |
||
|
|
81a9673b8f |
docs(kb): add cross-links to related docs guides (#53386)
## What Adds internal cross-links where a page mentions a product, feature, or concept that has its own canonical page. This PR covers knowledge base articles in `apps/kb`. Links are root-relative, matching the docs convention. ## How links were chosen - One canonical target per keyword, preferring docs guides over marketing or blog pages for docs content. - Only plain prose mentions: nothing inside headings, code, frontmatter, existing links, or UI labels. - One link per sentence, and no second link to the same target on a page. ## Testing - Prettier passes on all changed files. - Not yet run: docs build and internal link test, KB build. Draft until those are checked. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
|
|
5168b7ffb9 |
docs(www): add cross-links in blog, customer, and event content (#53385)
## What Adds internal cross-links where a page mentions a product, feature, or concept that has its own canonical page. This PR covers marketing content in `apps/www`: blog posts, customer stories, events, and one module page. ## How links were chosen - One canonical target per keyword, preferring docs guides over marketing or blog pages for docs content. - Only plain prose mentions: nothing inside headings, code, frontmatter, existing links, or UI labels. - One link per sentence, and no second link to the same target on a page. ## Testing - Prettier passes on all changed files. - Not yet run: docs build and internal link test, KB build. Draft until those are checked. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com> |