What the person is doing
The product supports reversible editing, ordering, formatting, drawing, document, layout, or configuration actions.
Foundation · lesson 4 of 23 · Error Prevention And Recovery
Underlying principle: Recovery begins before the error. Clear consequences, suitable constraints, preserved work, and a visible correction path reduce the cost of a mistake.
Maintain a redo stack after undo, expose Redo only when a valid undone operation exists, replay the latest undone operation against the same target, and clear or branch that stack when new edits invalidate the future history.
Recovery begins before the error. Clear consequences, suitable constraints, preserved work, and a visible correction path reduce the cost of a mistake.
The product supports reversible editing, ordering, formatting, drawing, document, layout, or configuration actions.
Maintain a redo stack after undo, expose Redo only when a valid undone operation exists, replay the latest undone operation against the same target, and clear or branch that stack when new edits invalidate the future history.
Undo-available state after a reversible edit.
What operation enters the redo stack when the user undoes this action?
Redo is unavailable until an undo places an operation on the redo stack.
The product supports reversible editing, ordering, formatting, drawing, document, layout, or configuration actions.
Open the working example, try its controls, and compare the behavior against the decision guidance.
The product supports reversible editing, ordering, formatting, drawing, document, layout, or configuration actions.
Maintain a redo stack after undo, expose Redo only when a valid undone operation exists, replay the latest undone operation against the same target, and clear or branch that stack when new edits invalidate the future history.
Undo-available state after a reversible edit.
Redo silently replays against the wrong selected object.
Expose Redo as a named button, menu item, or command row when editing commands are visible.
Apple - checked
Apple frames undo and redo as expected reversal mechanisms that support recovery and safe exploration.
Microsoft - checked
VS Code exposes undo and redo as command identifiers with platform keyboard shortcuts.
Microsoft - checked
Microsoft documents redo as redoing typing that was undone with undo.
Source trail checked: