Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: remove double confirmation dialog on remote branch deletion#46

Merged
matt2e merged 1 commit intomainfrom
double-confirmation-dialog
Feb 11, 2026
Merged

fix: remove double confirmation dialog on remote branch deletion#46
matt2e merged 1 commit intomainfrom
double-confirmation-dialog

Conversation

@wesbillman
Copy link
Collaborator

Summary

Remove the redundant confirmation dialog from RemoteBranchCard.svelte that was triggering before the parent ProjectHome.svelte confirmation. Remote branch deletion now follows the same pattern as local branches: the card calls onDelete() directly, and ProjectHome handles the single confirmation dialog.

Changes

  • RemoteBranchCard.svelte: Removed the inline confirmDelete dialog. The delete action now calls onDelete?.() directly, matching the local branch pattern.
  • ProjectHome.svelte: Made the shared confirmation dialog branch-type-aware:
    • Local branches: "Delete branch and its worktree? This cannot be undone."
    • Remote branches: "Delete branch and stop its workspace? The workspace may be reused later, but session history will be lost."

Why

Previously, deleting a remote branch would show two confirmation dialogs in sequence — one from RemoteBranchCard and another from ProjectHome. This was confusing and inconsistent with the local branch deletion flow, which only showed a single confirmation.

Remove the redundant confirmation dialog from RemoteBranchCard.svelte
that was triggering before the parent ProjectHome.svelte confirmation.
Remote branch deletion now follows the same pattern as local branches:
the card calls onDelete() directly, and ProjectHome handles the single
confirmation dialog.

The ProjectHome confirmation is now branch-type-aware:
- Local branches: mentions worktree deletion (cannot be undone)
- Remote branches: mentions stopping the workspace (may be reused)
@matt2e matt2e merged commit 57ee050 into main Feb 11, 2026
2 checks passed
@matt2e matt2e deleted the double-confirmation-dialog branch February 11, 2026 22:05
loganj added a commit that referenced this pull request Feb 26, 2026
…st_infrastructure_and_smoke_tests

test: add Playwright e2e test infrastructure and review workflow test
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.

2 participants