Build S6: outliner interaction II — drag-reorder + zoom-in/focus-subtree #112
Notifications
Due Date
No due date set.
Depends on
#111 Build S7: mixed-content outline guard — no silent prose loss
AlexKucera/museion
#113 Prototype P1: drag + zoom interaction prototype
AlexKucera/museion
Reference: AlexKucera/museion#112
Reference in new issue
Block a user
Part of #110
Question
Build S6: outliner interaction II — drag-reorder + zoom-in/focus-subtree (ADR-0013 surface, #102's deferred scope). Drag-reorder: pointer drag of a block (with subtree) to a new position — drop targets = sibling gaps within/between parents and ONTO a block to nest as its child; uses the existing path-addressed structural ops (
OutlineTree.move/siblingMovesemantics extended to arbitrary destinations); batch moves must respect the sibling-only batch ceiling or promote to a single-subtree move when a multi-block drag is detected. Zoom-in/focus-subtree: a command/affordance (e.g. ⌘. or ⌥click per prototype verdict) roots the presenter's visible projection at a node (breadcrumb shows the path back; zoom-out pops one level); folds stay session-scoped view state, folding of the zoom root's subtree unchanged. Interaction details (drop indicators, auto-expand on hover-dwell, zoom chrome) land per P1's calibrated prototype; LogSeq is the adopted interaction reference.[Generated by AI]
Resolution — S6 landed
Built per the P1 verdict (variant A "fat gaps"), interaction-for-interaction:
Drag-reorder
.windowcoordinate space; cached frames go stale on scroll).Zoom-in / focus-subtree
Implementation:
OutlineTree.extract/insertRunprimitives +OutlinePresenter.DropTarget/draggedIDs/isValidDrop/applyDrop/hitTestDrop(pure, tested) + zoom param onvisibleRows/rangeIDs; surface work inOutlineEditorView.swift(handlers in a same-file extension); plumbing in newOutlineDrag.swift; the promoted row editor extracted unchanged intoOutlineRowTextView.swift.Verification: full
xcodebuild test(unit + UI) green — 11 new pins (tree primitives ×2, presenter drag/zoom ×9). SwiftFormat + SwiftLint clean (0 serious). Also un-broke the test targets:8e70f69bumped the app to deployment target 27.0 but left tests at 26.5 — they couldn't link the module; all configs aligned to 27.0.Known ceilings (ponytail-marked): no auto-scroll mid-drag; no floating ghost chip (lifted rows + indicators carry the feedback); caret still lands at row end on click-focus. Interaction feel was calibrated live at P1; worth a minute of dogfood in the running app.
Record: docs/devlog/20261016-issue112-outline-interaction-ii_log.md (commit pending authorization).
[Generated by AI]