Repository navigation
fix(annotation): confirm before discarding draft comments - #174
Merged
Merged
Conversation
blimmer
force-pushed
the
cb-bot/task-1779218706211
branch
from
May 19, 2026 20:36
9c77227 to
ba8ebb7
Compare
blimmer
force-pushed
the
cb-bot/task-1779218706211
branch
from
May 19, 2026 21:03
ba8ebb7 to
634dd5b
Compare
blimmer
pushed a commit
that referenced
this pull request
May 19, 2026
🤖 I have created a release *beep* *boop* --- ## [0.7.2](v0.7.1...v0.7.2) (2026-05-19) ### Bug Fixes * **annotation:** confirm before discarding draft comments ([#174](#174)) ([becad44](becad44)) * **cli:** detect Homebrew cask installs on Intel macOS ([#176](#176)) ([1edd638](1edd638)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: contextbridge-pr-automation[bot] <259134118+contextbridge-pr-automation[bot]@users.noreply.github.com>
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.
Summary
Adds a confirmation modal that protects unsaved annotation draft text when the popover is dismissed, including outside clicks, Escape, Cancel, and attempted submit while a dirty draft is open. The final flow stays intentionally simple: users keep editing or discard the draft, then submit normally. Resolves PLAN-67.
Review focus
Please focus on whether the dirty-draft heuristic is right for the annotation workflow: new drafts warn on any non-whitespace body, and existing comment edits warn only when the trimmed body differs from the saved message.
Commits
634dd5b— add unsaved draft confirmation and browser-focused coverage