Skip to content

ui: drop the create form's unused Boot mode and show create progress - #1249

Merged
ac-pplx merged 1 commit into
mainfrom
ac/admin-ui-create-form-cleanup
Nov 2, 2026
Merged

ac-pplx merged 1 commit into
mainfrom
ac/admin-ui-create-form-cleanup

Conversation

@ac-pplx

@ac-pplx ac-pplx commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Summary

This change removes a create-form control that did nothing, and stops a slow create from being submitted twice.

  • Boot mode removed. The sandbox create form offered a "Boot mode" select (Cold boot, Snapshot, Pool) that never reached the API. handleCreate dropped the value, and the create request (POST /api/v1/sandboxes, or the admin create for another org) has no such field. Choosing "Pool" or "Snapshot" changed nothing. Warm-pool boot mode on the Templates page is a different, real setting and is unchanged.
  • Create shows progress. The Create button had no in-flight state, so a second click during a slow request submitted another create under a new idempotency key. The button now shows progress and ignores repeat submits until the request settles.

The disabled gVisor, Cloud Hypervisor and Hyper-V runtime options are left alone on purpose. The execution spec defines some of those runtime kinds, and whether to show them is a product decision.

Stack

Independent of the other open console PRs. It edits the create form in ui/src/app/dashboard/sandboxes/page.tsx, which #1244 and #1248 also edit elsewhere; whichever merges later may need a small rebase.

Validation

  • npm ci, npm test (50 pass) and npm run build in ui/.
  • A Playwright loop against a local Kind stack with synthetic data, run on main (production build) and on this branch (the Kind space-ui image). The create flow holds the create request for 1.5 s with Playwright route interception, then checks that the button shows progress and that the form has no Boot mode field. It then runs the full lifecycle on the created sandbox, ending in delete.
  • No new console errors, page errors or failed requests compared with main.

Visual confirmation

Before After
before after

Severity and risk

Severity: low.

Risk: low. The removed control had no effect. Roll back by reverting the commit.

AI assistance: Claude Code wrote the code and this description, and ran the validation; a maintainer reviews it.

The sandbox create form offered a Boot mode select (cold boot, snapshot,
pool) that never reached the API: the handler dropped the field and the
create request has no such option, so choosing "Pool" or "Snapshot"
changed nothing. It is removed.

The Create button had no in-flight state, so a second click during a
slow request submitted a second create under a new idempotency key. It
now shows progress and ignores repeat submits until the request settles.
@github-actions github-actions Bot added the triage:pending Waiting for a maintainer to triage label Oct 31, 2026
@github-actions

Copy link
Copy Markdown

Thanks for opening this pull request! A SPACE maintainer will take a look.

CONTRIBUTING.md explains how we review outside contributions.

zibi-pplx
zibi-pplx previously approved these changes Nov 1, 2026
@zibi-pplx
zibi-pplx dismissed their stale review November 1, 2026 22:30

Withdrawing this approval for now. Any feedback above still stands.

@ac-pplx
ac-pplx added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 4067029 Nov 2, 2026
25 checks passed
@ac-pplx
ac-pplx deleted the ac/admin-ui-create-form-cleanup branch November 2, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage:pending Waiting for a maintainer to triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants