feat: undo system for destructive actions #93
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
track:api
track:auto
track:core
track:deploy
track:infra
track:ui
v0.1.0
v0.1.1
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/delta#93
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Destructive actions like
dd(delete) and status changes (pp/ww/bb) are permanent with no way to reverse them. The y/N confirmation prompt was removed for speed, so undo is the safety net.Solution
Client-side delayed execution: destructive actions optimistically update the UI but hold the server action in a timeout (~5s). A minimal undo indicator allows cancelling before the action commits. This avoids schema changes (no soft-delete column needed).
Scope:
dddelete,xcomplete, and status operators.Landed — undo stack with u keybinding