Commit graph appflowy-editor/test/legacy
Author SHA1 Message 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
Lucas.Xu
b602141d32 fix: missing a required trailing comma 2023-09-13 15:26:29 +08:00
Mathias Mogensen
639ebf1415 test: improve coverage of operations.dart 2023-08-17 13:13:45 +08:00
Lucas.Xu
5f136df356
feat: remove the reference of the deprecated values (#304)
* feat: remove the reference of the deprecated values

* chore: add migration guide
2023-07-12 13:21:54 +08:00
Lucas.Xu
8c88b41244 feat: ignore delete op if it has been deleted 2023-06-07 10:35:39 +08:00
Lucas.Xu
c573b9a80f
feat: rename delta and document (#153)
* chore: rename delta

* fix: rename attributes to data

* chore: rename document to page

* fix: flutter analyze
2023-06-01 14:43:12 +08:00
Lucas.Xu
8e878012a7 chore: refactor the node.dart 2023-05-04 10:35:54 +08:00
Lucas.Xu
c599a4e7f1 feat: add image block 2023-05-03 14:50:41 +08:00
Lucas.Xu
9795b18b97 test: migrate test/extensions 2023-05-01 10:44:28 +08:00
Lucas.Xu
4f18b26715 test: migrate test/core 2023-05-01 10:36:34 +08:00
Lucas.Xu
8931433400 chore: migrate the command_extension 2023-04-30 15:32:29 +08:00
Mathias Mogensen
cf5e83d370
chore: add linters conforming to style guide (#59)
Relates: #56 #57
2023-04-12 20:37:50 +08:00
Mathias Mogensen
226d39cc78
test: improve test coverage (#23) 2023-03-24 20:59:03 +08:00
Lucas.Xu
5db0480075 chore: update LICENSE 2023-02-05 11:43:51 +08:00