Playground
  • Introduction
  • Components

Undo

Reverse a prior action, absorbing the anxiety of mistakes and encouraging confident exploration.

Structure

  • Trigger
  • Feedback
  • Scope

Levels: single-action vs. multiple levels of undo

Whether undo can be applied only once or successively.

Linear vs. non-linear undo

  • Single-action undo: Reverses only the most recent action.

  • Multi-action undo: Allows reversing multiple actions sequentially.

  • Selective undo: Allows to pick a specific action from a history to undo, without affecting subsequent actions.

  • Regional undo: Enables undoing operations within specific regions or contexts

  • Branching models: Creates tree-like structures where actors can explore alternative paths

Collaboration

TODO:

To-do

Related pattern to capture: version history, a more durable counterpart to undo’s transient reversal, navigating named past states rather than stepping back through recent actions.

Resources & references

  • NN/g / User Control and Freedom
  • Apple HIG / Undo and Redo

Related patterns

Enacts

  • Temporality — lets the actor reverse an action after the fact, loosening commitment over time

Complements

  • Transient feedback — the dismissal window doubles as the recovery window — transient feedback is the primary carrier for undo affordances
  • Wizard — mitigates the high commitment level by allowing reversal of completed steps

Alternatives

  • Inline confirmation — moves the safety net after the act instead of before it; prefer undo when the action reverses cleanly

Related

  • Abort — related non-destructive exit; offer undo and restore affordances when state has been modified
  • Action consequences — the strongest severity reducer — recovery after the act removes the need for confirmation before it
  • Modality
  • Saving — Reversibility in saved states
  • Status feedback — provides immediate feedback on the undo action
  • Command menu — can be used to access undo options
  • Activity log — displays a history of actions that can be undone

Preceded by

  • Settings — enables reversal of settings changes, particularly valuable for exploratory configuration
  • Deletion — the data is gone; whether that holds is now a question of recovery — a completed deletion is exactly the state undo acts on