appflowy-editor/test/legacy
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lucas 37521c205f
fix: support multi-step redo by refactoring undo/redo recording (#1192)
Multi-step redo was broken because `getUndoHistoryItem()` cleared the
redo stack whenever the last undo item was sealed — even during redo
operations. After the first redo, the 50ms debounce timer would seal
the item, causing the next redo to wipe the remaining redo history.

Refactored the undo/redo system with:
- `TransactionSource` enum (userEdit, undo, redo, none) replacing
  boolean flag combinations in ApplyOptions
- `UndoManager.record()` with symmetric paths for each source:
  - userEdit: groups into unsealed items, clears redo on branch
  - undo: pushes directly to redo stack
  - redo: pushes directly to undo stack (sealed), no redo clear
- Deprecated `getUndoHistoryItem()` and legacy boolean flags
2026-03-25 15:25:00 +08:00
..
flowy_editor_test.dart chore: update LICENSE 2023-02-05 11:43:51 +08:00
operation_test.dart fix: missing a required trailing comma 2023-09-13 15:26:29 +08:00
undo_manager_test.dart fix: support multi-step redo by refactoring undo/redo recording (#1192) 2026-03-25 15:25:00 +08:00