WarUI

History engine boundary (undo/redo)

GRID-A01-F18P1baselinePlanned

The history engine records reversible commands from other engines into a bounded undo stack. Engines opt in by registering an inverse for each command type. History is grouped by batch, so one user action undoes as one step.

Planned. This page shows the specification from issue #177. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

An editable grid with history enabled. A stack visualiser lists the entries.

Expected behavior

Each batch appears as one stack entry. Undo and redo restore the exact prior state hashes. Exceeding the limit drops the oldest entries.

Planned API surface

api.undoapi.redoapi.canUndoapi.canRedoGridOptions.history.limithistory:changedapi.historyCheckpoint

Acceptance criteria

  • One batch maps to one history entry (pending)
  • A new change after undo clears the redo stack (pending)
  • Commands without a registered inverse are excluded and documented (pending)
  • Including query changes in history is configurable (pending)