Skip to content

feat: unify kill confirm dialog and add pause button to sandbox controls#278

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1774368187-sandbox-controls
Open

feat: unify kill confirm dialog and add pause button to sandbox controls#278
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1774368187-sandbox-controls

Conversation

@devin-ai-integration
Copy link

Summary

Two changes based on dashboard feedback:

  1. Kill button confirm dialog unified: Replaced AlertPopover (small popover anchored to button) with AlertDialog (centered modal) to match the confirmation pattern used by other destructive actions (delete API key, delete template, etc.).

  2. Pause button added: New "Pause" button in sandbox detail controls, placed alongside the existing Kill button. Calls POST /sandboxes/{sandboxID}/pause via a new server action. Only enabled when the sandbox is in running state.

Review & Testing Checklist for Human

  • Pause button UX: The AlertDialog confirm button renders with variant="error" (red) by default. Pause is a non-destructive action (sandbox can be resumed) — consider whether this should use a different button variant or skip the confirmation dialog entirely.
  • No resume button included: This PR adds pause but not resume. Verify whether a resume button should also be added for paused sandboxes, or if that's a separate follow-up.
  • Test the kill dialog visually: Confirm the new centered AlertDialog modal looks correct and matches other delete confirmation dialogs in the dashboard.
  • Test pause flow end-to-end: Start a sandbox, click Pause, confirm in the dialog, and verify the sandbox transitions to paused state and the UI updates correctly.

Notes

  • The AlertPopover component is no longer used anywhere after this change — it could be cleaned up in a follow-up if desired.
  • Lint could not be verified locally (biome not installed in dev environment); CI should catch any formatting issues.

Link to Devin session: https://app.devin.ai/sessions/314098a637d54189bbae52a319cb216b
Requested by: @mlejva

- Replace AlertPopover with AlertDialog for kill sandbox confirmation
  to match the centered modal style used by other destructive actions
- Add pause sandbox server action using POST /sandboxes/{sandboxID}/pause
- Add PauseButton component with confirmation dialog
- Add PauseButton to sandbox detail controls alongside KillButton

Co-Authored-By: vasek <vasek.mlejnsky@gmail.com>
@devin-ai-integration
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@vercel
Copy link

vercel bot commented Mar 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
web Ready Ready Preview, Comment Mar 24, 2026 4:07pm
web-juliett Ready Ready Preview, Comment Mar 24, 2026 4:07pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant