mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-05 11:15:01 +03:00
- Add incremental Y.Map entry mutations (apply_mindmap_children_delta / update_mindmap_children) so MindMap add-child, add-sibling, collapse, and subtree delete preserve the nested children Y.Map for concurrent Web/Native edits and encode layoutType, style, and connector mode as Float64 JS numbers.
- Replace silent fractional-index fallbacks with checked next_spatial_index / next_index_after / prev_index_before helpers across Edgeless authoring ops.
- Enforce edgeless/page readonly and element locked guards across element toolbar, reorder, MindMap, quick-connect (click and drag), align, group, inline edit, and note slicer; dismiss open popovers on canvas click, Escape (before clearing selection), and selection changes.
- Cascade MindMap subtree deletes (and full MindMap removal on root delete) in one atomic undo step and suppress Shape 4-way quick-connect arrows on MindMap member nodes.
- Insert sliced Notes immediately after the source Note in page.children, preserve themed {light, dark} backgrounds and prop:edgeless styles, trigger the Note slicer overlay strictly on inter-block gap hover, and remove the bare '-' slice shortcut.
- Render the compact Page reading-order badge only on selected Page Notes (pre-laid out during scene prep, eliminating per-frame paint layout_inline and mobile Frame title occlusion), cache decoded RoomAwareness payloads with page-scoped selectionV2 filtering, and clean up duplicate actions and dead code.