feat: anchor review comments to precise text ranges
This commit is contained in:
@@ -6,12 +6,14 @@
|
||||
- save and reopen reviews using local files that coding agents can read; no server or client/server protocol.
|
||||
- anchor comments to immutable revision IDs, paths, sides, and source line ranges, never screen coordinates or mutable file indices.
|
||||
- preserve original anchors and mark comments stale when the reviewed snapshot no longer matches; defer automatic reanchoring.
|
||||
- [ ] diff view: attach local review comments to arbitrary contiguous text ranges, not only containing lines.
|
||||
- [ ] add an option for three pane lef/base/right view for conflict resolution.
|
||||
- alternative pane layout as left/right with base underneath (configurable)
|
||||
- [x] diff view: attach local review comments to arbitrary contiguous text ranges, not only containing lines.
|
||||
- preserve exact start/end source positions in grapheme coordinates with an exclusive end, including partial-line and multiline selections on either diff side.
|
||||
- characterwise Visual (`v`) anchors the exact selected text; Visual Line (`V`) anchors whole selected lines; no selection retains current-line behavior.
|
||||
- retain gutter markers for discovery and highlight the exact anchored text when its comment is selected.
|
||||
- preserve immutable snapshot identity and existing stale detection; never silently reanchor comments after source changes.
|
||||
- persist precise ranges in SQLite and JSON import/export; migrate existing line-only anchors without losing comments.
|
||||
- persist precise ranges in version 2 JSON import/export; migrate existing line-only anchors without losing comments. SQLite storage follows in the next item.
|
||||
- future GitHub publishing may map precise local anchors to supported line ranges without reducing precision in the local review.
|
||||
- [ ] persist local reviews automatically in a local SQLite database using rusqlite; no server, hosted storage, or synchronization.
|
||||
- keep one database under $XDG_DATA_HOME/vamp/reviews/, falling back to ~/.local/share/vamp/reviews/; allow a configurable review_directory.
|
||||
@@ -21,6 +23,7 @@
|
||||
- retain explicit JSON export/import for sharing with coding agents; export must not redirect subsequent autosaves away from the database.
|
||||
- version the database schema and migrate it safely; use review-version checks to reject conflicting edits from multiple editor instances.
|
||||
- surface write failures and conflicts without discarding drafts or marking unsuccessful saves as persisted.
|
||||
- persist the precise start/end grapheme anchors without reducing them to line ranges.
|
||||
- [ ] diff view: GitHub code review integration after the local review UX is usable.
|
||||
- publish local reviews explicitly: general PR comments, inline line/range comments, review summaries, approval, and requests for changes.
|
||||
- preserve explicit PR identity and reviewed commit IDs; validate anchors against GitHub's PR diff and recheck the PR head before submission.
|
||||
|
||||
Reference in New Issue
Block a user