Skip to content

feat(desktop): add confirmation dialogs for workspace rebuild and reset#627

Merged
skevetter merged 1 commit into
mainfrom
feeble-penguin
Jul 8, 2026
Merged

feat(desktop): add confirmation dialogs for workspace rebuild and reset#627
skevetter merged 1 commit into
mainfrom
feeble-penguin

Conversation

@skevetter

Copy link
Copy Markdown
Contributor

Summary

The Rebuild and Reset buttons on the workspace details page fired immediately with no explanation of their effects. Reset is destructive — the CLI up --reset flag removes the cloned source code along with the container — yet it had no warning, unlike the safer Delete and Rename actions which already confirm.

This adds ConfirmDialog prompts for both actions, matching the existing convention, so users understand what each does before proceeding:

  • Rebuild (up --recreate): non-destructive-styled dialog explaining it recreates the container from the devcontainer config, keeps source code, and loses only manual in-container changes.
  • Reset (up --reset): destructive-styled dialog making clear the container and cloned source code are removed, so uncommitted/unpushed changes are permanently lost.

Help text is grounded in the actual CLI flag semantics in cmd/workspace/up/up_flags.go.

Rebuild and Reset fired immediately with no explanation of their
effects. Reset is destructive (removes the cloned source along with the
container) yet had no warning, unlike the safer Delete and Rename
actions which already confirm.

Add ConfirmDialog prompts for both, matching the existing convention,
with descriptions grounded in the CLI flag semantics (up --recreate vs
up --reset).
@netlify

netlify Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 0f96cf7
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/6a4e6500a6203d0008569d54

@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f35fda3d-80da-4694-9c13-b3a9aefd834b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@netlify

netlify Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploy Preview for images-devsy-sh canceled.

Name Link
🔨 Latest commit 0f96cf7
🔍 Latest deploy log https://app.netlify.com/projects/images-devsy-sh/deploys/6a4e65007c118d000856f6d6

@github-actions github-actions Bot added the size/s label Jul 8, 2026
@skevetter
skevetter marked this pull request as ready for review July 8, 2026 15:12
@skevetter
skevetter merged commit b053e27 into main Jul 8, 2026
27 checks passed
@skevetter
skevetter deleted the feeble-penguin branch July 8, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant