super-productivity/packages/plugin-dev/document-mode
Johannes Millan 5a56b5d8b0 feat(document-mode): persist chip reorder; modularize editor
Bundled because all three changes share editor.ts and the pre-existing
working-tree state could not be split per-hunk:

- feat: a chip drag / block-menu move now writes the new order back via
  PluginAPI.reorderTasks (top-level order for PROJECT contexts, subtask
  order for any context), guarded permutation-only so a missing chip can
  never drop a task from project.taskIds / task.subTaskIds.
- refactor: split editor.ts (2238 -> 1846 lines) into icons.ts, the pure
  doc-nav.ts navigation helpers, and a createTaskRefNode factory that
  replaces the ~95% duplicated TaskRefNode / SubTaskRefNode.
- fix: onAnyTaskUpdate fast-paths in-place single-task updates from the
  hook payload, skipping a full getTasks() round-trip.
- test: doc-nav.spec.ts covers the drag/move helpers.
2026-05-22 13:42:30 +02:00
..
scripts refactor(document-mode): add pure doc-transform module and test runner 2026-05-22 13:42:21 +02:00
src feat(document-mode): persist chip reorder; modularize editor 2026-05-22 13:42:30 +02:00
.gitignore refactor(document-mode): add pure doc-transform module and test runner 2026-05-22 13:42:21 +02:00
package-lock.json feat(document-mode): Notion-style UX (gutter, bubble menu, block menu) 2026-05-21 17:34:13 +02:00
package.json refactor(document-mode): add pure doc-transform module and test runner 2026-05-22 13:42:21 +02:00
tsconfig.json feat(document-mode): add TipTap-based document-mode plugin (POC) 2026-05-21 17:22:31 +02:00