Portal Community

What Is Tracked

ActionTracked?
Add nodeYes
Remove nodeYes
Move node (drag end)Yes
Rename nodeYes
Add edgeYes
Remove edgeYes
Config form editsNo — saved directly
Viewport pan / zoomNo
Mode transitionsNo
Execution state updatesNo

How It Works

// The history middleware intercepts tracked mutations:
// 1. Before the mutation: take a snapshot of { nodes, edges }
// 2. Push snapshot onto the undo stack
// 3. Apply the mutation (workflowStore state changes)
// 4. Clear the redo stack (new action invalidates redos)

// Undo (Ctrl+Z):
// 1. Pop the undo stack → get previous snapshot
// 2. Push current state to redo stack
// 3. Restore workflowStore.nodes and .edges from snapshot

// Redo (Ctrl+Y):
// 1. Pop the redo stack → get next snapshot
// 2. Push current state to undo stack
// 3. Restore workflowStore.nodes and .edges from snapshot

Keyboard Shortcuts

ShortcutAction
Ctrl+Z / Cmd+ZUndo last tracked action
Ctrl+Y / Cmd+Shift+ZRedo last undone action
Config form edits are not undoable. When a user changes a node's settings in the right-panel config form, those changes are auto-saved immediately. Ctrl+Z on the canvas will not revert config changes — it only reverts canvas graph mutations (add/remove/move nodes and edges).