Issue filing: an outline page files one issue per root item, nested items in the description #97
Loading…
Reference in a new issue
No description provided.
Delete branch "issues-96-outline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #96
A page with an issue target that's written as an outline now files one issue per root item. The title is the root's text without its outline formatting, and the nested items become the issue's description as a markdown bullet list, depth kept. Plain pages file exactly as before.
What changes
Issues.Outline): the transcription has list markers (-,*,+,•,1.,1)) and at least one marked line indented under another. A list with nothing nested, or plain lines, stays flat and files as today.Lines.Rows.texts/4gainsraw: true, which returns each row's line with its indentation kept (same pairing, same rows-versus-lines hold). The scan then groups those reads: a root is a line at the shallowest indentation, and each deeper line nests under the root above it (a tab counts as two spaces).[?]tags.issue_items.nested, new migration20261122200000). They're never lines of their own: they're not in the panel's list and are never filed alone. A nested item struck by hand stays~~struck~~.~~text~~is never queued, and a pending root that gets struck leaves the queue, like an erased line. Our strike is on our own layer, which OCR never reads, so a filed root still reads as it was, and our strokes pin it to its row anyway. A filed root struck by hand stays filed.@/#made inert, and<is swapped for‹so handwriting can't open an HTML comment that hides the rest.docs/issue-filing.md: new "Outline pages" section, plus the body and panel notes.Example body for "issue trackers":
Tests
outline_test.exs: Jeremy's page from #96, depth in and out (tabs, numbered and*markers, checkboxes), flat pages, title cleaning, struck detection, and markdown output.scan_worker_test.exs"outline pages (#96)": one pending item per root carrying its nested items; a pending root's nested items follow the page while a filed root's stay; a hand-struck root isn't queued and a pending one struck drops out; a filed root struck by hand stays filed; a marker list with nothing nested files each line as before.file_worker_test.exs: the body carries the nested list with depth, mentions inert and<neutralized.issue_page_live_test.exs: the panel shows nested items, struck ones struck, with indentation.mix precommit: 1585 tests, 0 failures.Screenshots use example outline data: three waiting roots (two with nested items, one plain) and one filed root.
Screenshots
outline-panel-390.png
outline-panel-desktop.png