Annotation editor: outlines per step line, highlight in reading view (#12) #26
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MassiveDynamic/kataba!26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/12-annotation-editor"
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 #12
Summary
Each Annotation is an outline on a Step Image that belongs to one coloured Step Line and takes its colour (ADR-0011, superseding ADR-0004). Positions are percent of the cropped image and drawn as SVG over it.
Also: saving a step updates lines by id instead of replacing them, and drops annotations of lines that are no longer coloured bullets. Editor.js follows the theme, uses the full width and no longer offers checklists (ADR-0005).
Evidence
After:
npm test→ 184 passed (coordinate conversion, draw/move/resize from all 8 handles, submission checks, line ids, reading-view SVG overlay and highlight toggles); typecheck and lint clean. Checked in the browser: dialog with line picker, edge-handle resize, reassigning to another line, Editor.js “+” menu and inline toolbar, highlight in the reading view.Merge Danger
Door: one-way
Migrations add
Annotation, then replace itscolorwith a requiredstepLineId; existing annotations move to the first line of their colour, unmatched ones are deleted.Blast Radius: steps
Step saves now upsert lines by id; a bug there would affect every step's lines. Editor.js theming touches the guide description editor too.
🤖 Generated with Claude Code