feat(outline): mixed-content open guard — S7 (#111)
CI / ci (push) Canceled after 0s
CI / ci (push) Canceled after 0s
Opening a type: outline piece whose body parses with dropped prose (paragraph lines between bullets) now asks before the outliner mounts: Open in Prose (default, nothing drops), Open as Outline (explicit consent to save normalization), or Cancel. The detector shares the parser's item definition, the ask presents over an empty editor so nothing can normalize on save before the choice, and the prose answer rides a routing override that dies with the next open. Audit round pinned the lifecycle: reselect of the open piece is a no-op (an armed debounce must never flush mid-ask), and a draft or guest staged during the ask displaces it without being destroyed. Closes #111 [Generated by AI]
This commit is contained in:
1 parent
c23ee0f62f
commit
0b172f73ef
12 files changed
+440
-17
No files matched your search
@@ -6,6 +6,8 @@ All notable changes to this project will be documented in this file. The format
|
||||
|
||||
### Added
|
||||
|
||||
- **outline:** mixed-content open guard (v1.2 S7) — opening a `type: outline` piece whose body has paragraph lines between bullets (the parse would drop them on the next save) now asks first: Open in Prose (default — everything visible, nothing drops), Open as Outline (explicit consent — saves normalize as before), or Cancel; the ask presents over an empty editor so nothing can edit before the choice, re-clicking the open piece never re-asks, and a draft or guest staged during the ask displaces it cleanly (issue #111)
|
||||
|
||||
- **outline:** outliner surface & outline type (v1.1 S3, ADR-0013 per #105 variant B) — File ▸ New Outline ⇧⌘N stages a `type: outline` piece; the outliner is a dedicated block surface: nested bullets with LogSeq-style keys (Tab/⇧Tab indent/outdent, ⌥↑/⌥↓ move subtree, ↑/↓ hop visible blocks, ⇧↑/⇧↓ block-select runs, ⌘↑/⌘↓ fold/unfold, Enter splits at the caret), one live caret row over inert rows, session-scoped folds, and the same debounced autosave / ⌘S / external-change alert as prose; hand-edited files parse leniently and normalize on save (issue #109)
|
||||
|
||||
- **library:** projects & archive UI (v1.1 S2, variant B per #104) — the library column groups pieces by project under serif lowercase section heads (collapse toggle, `· N` counts, Pass-State groups inside); Move to Project / Move to Archive / Move Back / whole-project Unarchive as folder moves (post.md bytes untouched, never clobbering, ids globally unique); an Archive rail destination lists archived pieces grouped by project with row-click back to Posts; File ▸ New Post ⌘N and New Project… ⌥⌘N; New Project opens a draft targeted at it, and every folder move flushes pending edits first — a failed write aborts the move with nothing relocated (issue #108)
|
||||
|
||||
Reference in new issue
Block a user