Skip to content

fix(annotation): confirm before discarding draft comments - #174

Merged
blimmer merged 1 commit into
mainfrom
cb-bot/task-1779218706211
May 19, 2026
Merged

blimmer merged 1 commit into
mainfrom
cb-bot/task-1779218706211

Conversation

@ghost

@ghost ghost commented May 19, 2026 •

Copy link
Copy Markdown

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

@ghost
ghost requested review from blimmer and jcarver989 as code owners May 19, 2026 19:29
@blimmer blimmer changed the title feat(annotation): PLAN-67 add confirmation modal for unsaved comment drafts feat(annotation): confirm before discarding draft comments May 19, 2026
@blimmer
blimmer force-pushed the cb-bot/task-1779218706211 branch from 9c77227 to ba8ebb7 Compare May 19, 2026 20:36
@blimmer
blimmer force-pushed the cb-bot/task-1779218706211 branch from ba8ebb7 to 634dd5b Compare May 19, 2026 21:03
@blimmer blimmer changed the title feat(annotation): confirm before discarding draft comments fix(annotation): confirm before discarding draft comments May 19, 2026
@blimmer
blimmer merged commit becad44 into main May 19, 2026
14 checks passed
@blimmer
blimmer deleted the cb-bot/task-1779218706211 branch May 19, 2026 21:08
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant