Repository navigation
feat: Interactive checkboxes with annotation tracking - #423
Merged
backnotprop merged 8 commits intoMar 29, 2026
Merged
Conversation
Checkboxes in rendered markdown task lists are now clickable. Toggling is visual-only (does not modify source markdown) and automatically creates a comment annotation noting the change. Co-authored-by: Copilot <[email protected]>
When toggling back to the original state, the checkbox override is deleted and the associated annotation is removed — acting as an undo. Co-authored-by: Copilot <[email protected]>
1. Fix annotation prefix collision: match on blockId field instead of string prefix to avoid block-1 matching block-10, block-11 etc. 2. Fix rapid toggle orphans: delete ALL existing checkbox annotations for the block before creating a new one, preventing duplicates. 3. Fix stale overrides: useEffect cleans up checkboxOverrides entries when their block IDs no longer exist in the current blocks array. Co-authored-by: Copilot <[email protected]>
Annotations now read 'Mark as completed: {item}' or 'Mark as not
completed: {item}' so the AI knows to action on them.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
When a user deletes a checkbox annotation via the annotation panel, the checkboxOverrides entry is now cleared so the checkbox reverts to its original visual state. Previously only toggling the checkbox itself would revert the override. Co-authored-by: Copilot <[email protected]>
…p in checkbox toggle
backnotprop
added a commit
that referenced
this pull request
Mar 29, 2026
Integrate useCheckboxOverrides + removeAnnotation helper with external annotation source-routing in handleDeleteAnnotation. For provenance purposes, this commit was AI assisted.
stk-code
pushed a commit
to stk-code/plannotator
that referenced
this pull request
Mar 31, 2026
* feat: interactive checkboxes — click to toggle with annotation Checkboxes in rendered markdown task lists are now clickable. Toggling is visual-only (does not modify source markdown) and automatically creates a comment annotation noting the change. Co-authored-by: Copilot <[email protected]> * fix: uncheck checkbox removes override and deletes annotation (undo) When toggling back to the original state, the checkbox override is deleted and the associated annotation is removed — acting as an undo. Co-authored-by: Copilot <[email protected]> * fix: address all code review issues for checkbox feature 1. Fix annotation prefix collision: match on blockId field instead of string prefix to avoid block-1 matching block-10, block-11 etc. 2. Fix rapid toggle orphans: delete ALL existing checkbox annotations for the block before creating a new one, preventing duplicates. 3. Fix stale overrides: useEffect cleans up checkboxOverrides entries when their block IDs no longer exist in the current blocks array. Co-authored-by: Copilot <[email protected]> * fix: use actionable annotation text for checkbox toggles Annotations now read 'Mark as completed: {item}' or 'Mark as not completed: {item}' so the AI knows to action on them. Co-authored-by: Copilot <[email protected]> * fix: include section heading in checkbox annotation for disambiguation Co-authored-by: Copilot <[email protected]> * fix: revert checkbox override when annotation is deleted from panel When a user deletes a checkbox annotation via the annotation panel, the checkboxOverrides entry is now cleared so the checkbox reverts to its original visual state. Previously only toggling the checkbox itself would revert the override. Co-authored-by: Copilot <[email protected]> * refactor: extract removeAnnotation to avoid redundant override cleanup in checkbox toggle * refactor: extract useCheckboxOverrides hook from App.tsx --------- Co-authored-by: Yecats <[email protected]> Co-authored-by: Copilot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds clickable checkbox toggling in the plan viewer. Users can check/uncheck task items directly in the rendered plan, with each toggle creating a COMMENT annotation that captures the action, section context, and task text. Toggling back to the original state cleanly removes the override and deletes the annotation.
Resolves issues #413