What the person is doing
A product shows Undo in a toast, snackbar, activity row, command bar, keyboard shortcut, history stack, or recovery panel after a completed action.
Quality check · lesson 22 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.
Treat undo as an implementation contract: capture state before commit, block or re-label undo after external side effects, and report restored, expired, failed, partial, and final states separately.
Recovery begins before the error. Clear consequences, suitable constraints, preserved work, and a visible correction path reduce the cost of a mistake.
A product shows Undo in a toast, snackbar, activity row, command bar, keyboard shortcut, history stack, or recovery panel after a completed action.
Treat undo as an implementation contract: capture state before commit, block or re-label undo after external side effects, and report restored, expired, failed, partial, and final states separately.
Pre-action state with enough identity, relationship, order, permission, and context captured for reversal.
What exact state is captured before the action, and what proof shows it can be restored?
The undo label names the action or object when ambiguity is possible.
A product shows Undo in a toast, snackbar, activity row, command bar, keyboard shortcut, history stack, or recovery panel after a completed action.
Open the working example, try its controls, and compare the behavior against the decision guidance.
A product shows Undo in a toast, snackbar, activity row, command bar, keyboard shortcut, history stack, or recovery panel after a completed action.
Treat undo as an implementation contract: capture state before commit, block or re-label undo after external side effects, and report restored, expired, failed, partial, and final states separately.
Pre-action state with enough identity, relationship, order, permission, and context captured for reversal.
Undo restores a deleted item name but loses comments, permissions, folder path, tags, or sort position.
Announce completed, undo available, restored, expired, failed, partial, and final states through status text.
Apple - checked
Apple undo and redo guidance provides the positive recovery contract for real reversal.
Google Material Design - checked
Material snackbar guidance supports the toast-action boundary where Undo must be a truthful recovery action.
Microsoft - checked
Microsoft confirmation guidance supports choosing confirmation or prevention when undo cannot faithfully recover consequences.
GitLab Pajamas Design System - checked
GitLab saving and feedback guidance supports clear save, failed-save, undo, and leave-warning distinctions.
W3C WAI - checked
WCAG status-message guidance supports exposing recovery and final states without relying on focus movement.
Source trail checked: