Issue filing B: file a page's lines as issues (scan, approve panel, auto mode, strike + stamp) #95
Loading…
Reference in a new issue
No description provided.
Delete branch "issues-52b-filing"
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 #52
Part B of #52 (part A, settings + adapters, merged in #94). A notebook page can now file its handwritten lines as issues in Forgejo, GitHub or Linear. Docs:
docs/issue-filing.md("Scanning a page", "Filing a line", "Approving lines").What it does
issue_targets,issue_items): a page (or notebook, read by the scan; no notebook picker in the UI yet) maps to a repo or Linear team. A todo-synced page never files (D8).Issues.ScanWorker, from the same transcription hook as todo sync): reads the page's rows, matches them against every item in every state (Todos.Match, plus our stamp's stroke ids), so a line is never queued twice. Held pages and stale reads file nothing.Issues.FileWorker): each line is saved:filingbefore the call; a timeout or a job that died mid-call becomes:failed"may already be filed" and is never sent again on its own (D11). Rate limits requeue after the tracker's wait; at most 20 per run. Titles have@/#made inert; the body links back to the page.Issues.WriteMarks): a filed line is struck through and stamped with its issue ref in pen strokes (D7, D12), drawn only once the page's latest version has been read. An erased filed line drops its pending mark (F4)./issues/pages/:document_id/:page_id, linked from the viewer's page bar): pick tracker, repo/team and mode (checked against the tracker's list again on save); waiting lines with editable title, File, Skip and File all; filed lines with their issue link and "ticked on page"; failed lines with Retry (asks first when it may already be filed) and Skip. Live via PubSub after each scan and filing run.Ticking or erasing a filed line never changes the issue (D11).
Checks
mix precommitpasses: 1571 tests (new: scan, file worker, write marks, erased mark, issue page live tests).Screenshots
panel-390.png
panel-desktop.png
picker-390.png
picker-desktop.png
viewer-390.png
viewer-desktop.png