<!-- CURSOR_AGENT_PR_BODY_BEGIN --> `PipelineCreationFlow.test.tsx` started timing out on `master` ([run](https://github.com/supabase/supabase/actions/runs/39227187528), [run](https://github.com/supabase/supabase/actions/runs/39231750598)) – neither commit touched it. The heavier tests drive the full wizard through several steps and already took 2.5–3.7s on a fast runner, so a slow runner pushes them past vitest's 5s default. Most of the time went to unscoped `getByRole` lookups: a worker profile put about half the samples under role queries, and the self time was jsdom `getComputedStyle` (style and color resolution) on that large tree. Failing `waitFor` / `findBy` polls only start dumping the whole tree once a query misses, which is the path that tipped these tests over. `infrastructure.test.tsx`'s disk/autoscaling test timed out once for the same family of cost – per-keystroke `userEvent` typing on the full page. Retries don't help here – a timed-out attempt keeps running while the retry starts, which is where the "Continue not found" / empty `<body>` errors in those logs come from. **Changed:** - `PipelineCreationFlow.test.tsx` – step waits go through a `waitForStep` helper and other waits poll with `queryBy*`, so failing polls no longer build role/DOM dumps - `PipelineCreationFlow.test.tsx` – `fillConnection` uses label queries and step-specific queries are scoped with `within` - `PipelineCreationFlow.test.tsx` – split `preserves connection and data values…` into `preserves connection values across destination changes` and `preserves data values across steps and reaches Review`, with the same assertions - `infrastructure.test.tsx` – `submits disk and autoscaling changes…` types with `userEvent.setup({ delay: null })` so keystrokes are not separated by a macrotask No assertions were removed and no test timeouts were raised. | test | before (median / 1-core worst) | after (median / 1-core worst) | | --- | --- | --- | | requires connection fields and reveals invalid advanced settings | 1092 / 1554 | 1121 / 1522 | | recovers from request and critical failures and reviews warnings before continuing | 1812 / 2056 | 1263 / 1497 | | invalidates connection verification after edits and ignores stale responses | 1045 / 1109 | 509 / 563 | | uses browser Back and Forward to revisit steps without losing values | 1199 / 1368 | 582 / 703 | | starts a fresh session at Destination (×4) | 55–87 / 54–113 | 51–84 / 77–108 | | preserves connection and data values across steps and destination changes | 2270 / 2391 | split | | preserves connection values across destination changes | – | 929 / 1081 | | preserves data values across steps and reaches Review | – | 1058 / 1141 | | blocks incomplete data, retries metadata failures, and reveals invalid advanced settings | 1934 / 2097 | 1514 / 1621 | | blocks browser Forward to Review after data changes | 1151 / 1268 | 799 / 874 | | confirms destination-only changes and treats a reverted selection as pristine | 385 / 410 | 381 / 386 | | confirms dirty dismissal and allows keeping the form | 843 / 908 | 707 / 736 | | closes a pristine form and blocks progression without destinations | 46 / 46 | 43 / 48 | | submits disk and autoscaling changes to both infrastructure APIs | 1355 / 1805 | 1219 / 1684 | Median of 5 unconstrained runs, worst of 3 runs pinned to one core (`taskset -c 0`). Vitest 5.0.0. This touches the same file as #51900 – the helper changes carry over to its new tests once it merges. ## To test - [x] `pnpm --filter studio exec vitest run components/interfaces/Database/Replication/CreatePipeline` – all pass - [x] `pnpm --filter studio exec vitest run "tests/pages/project/[ref]/settings/infrastructure.test.tsx"` – all pass - [x] Same files pinned to one CPU core (`taskset -c 0`) – no test near the 5s timeout - [x] `test (1)` on this PR – green <!-- CURSOR_AGENT_PR_BODY_END --> <div><a href="https://cursor.com/agents/bc-b1f88499-15f7-5aff-b190-841d7371ba48?cursor_ref=pr_footer&cursor_cta=open_in_web"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-web-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-web-light.png"><img alt="Open in Web" width="114" height="28" src="https://cursor.com/assets/images/open-in-web-dark.png"></picture></a> <a href="https://cursor.com/background-agent?bcId=bc-b1f88499-15f7-5aff-b190-841d7371ba48&cursor_ref=pr_footer&cursor_cta=open_in_cursor"><picture><source media="(prefers-color-scheme: dark)" srcset="https://cursor.com/assets/images/open-in-cursor-dark.png"><source media="(prefers-color-scheme: light)" srcset="https://cursor.com/assets/images/open-in-cursor-light.png"><img alt="Open in Cursor" width="131" height="28" src="https://cursor.com/assets/images/open-in-cursor-dark.png"></picture></a> </div> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Supabase Studio
A dashboard for managing your self-hosted Supabase project, and used on our hosted platform. Built with:
What's included
Studio is designed to work with existing deployments - either the local hosted, docker setup, or our CLI. It is not intended for managing the deployment and administration of projects - that's out of scope.
As such, the features exposed on Studio for existing deployments are limited to those which manage your database:
- Table & SQL editors
- Saved queries are unavailable
- Database management
- Policies, roles, extensions, replication
- API documentation
Managing Project Settings
Project settings are managed outside of the Dashboard. If you use docker compose, you should manage the settings in your docker-compose file. If you're deploying Supabase to your own cloud, you should store your secrets and env vars in a vault or secrets manager.
How to contribute?
For Assistant work, start with the Supabase Assistant code guide for the architecture, file map, tools, and validation workflow.
- Branch from
masterand name your branches with the following structure{type}/{branch_name}- Type:
chore | fix | feature - The branch name is arbitrary — just make sure it summarizes the work.
- Type:
- When you send a PR to
master, it will automatically tag members of the frontend team for review. - Review the main contributing guide to help test your feature before sending a PR.
- The Dashboard is under active development. You should run
git pullfrequently to make sure you're up to date.
Developer Quickstart
Note
Supabase internal use: To develop on Studio locally with the backend services, see the instructions in the internal
infrastructurerepo.
# You'll need to be on Node v22
# in /studio
## For external contributors
pnpm install # install dependencies
pnpm run dev # start dev server
## For internal contributors
## First clone the private supabase/platform repo and follow instructions for setting up mise
mise studio # Run from supabase/platform alongside `mise infra`
## For all
pnpm run test # run tests
pnpm run test -- --watch # run tests in watch mode
Running within a self-hosted environment
Follow the self-hosting guide to get started.
cd ..
cd docker
docker compose -f docker-compose.yml -f ./dev/docker-compose.dev.yml up
Once you've got that set up, update .env in the studio folder with the corresponding values.
POSTGRES_PASSWORD=
SUPABASE_ANON_KEY=
SUPABASE_SERVICE_KEY=
Then run the following commands to install dependencies and start the dashboard.
npm install
npm run dev
If you would like to configure different defaults for "Default Organization" and "Default Project", you will need to update the .env in the studio folder with the corresponding values.
DEFAULT_ORGANIZATION_NAME=
DEFAULT_PROJECT_NAME=