Skip to content

fix(frontend): preserve comment drafts when opening side panel#648

Merged
horacioh merged 1 commit into
mainfrom
557-comment-draft-opening
May 20, 2026
Merged

fix(frontend): preserve comment drafts when opening side panel#648
horacioh merged 1 commit into
mainfrom
557-comment-draft-opening

Conversation

@horacioh
Copy link
Copy Markdown
Collaborator

Summary

  • Prevent duplicate main and side-panel comment editors from mounting for the same draft target.
  • Flush pending comment draft saves on editor unmount so opening the side panel does not drop unsaved content.
  • Route side-panel reply actions through panel-specific comment handling.
  • Add regression coverage for draft persistence and duplicate editor suppression.

Fixes #557


Fixes #557

Suppress the main comment editor when the side panel is editing the same draft target, and route reply drafts into the panel. Flush comment editor changes immediately so draft saves are not dropped on unmount, and cover the draft routing/suppression behavior with tests.
@horacioh horacioh merged commit fad5358 into main May 20, 2026
8 checks passed
@horacioh horacioh deleted the 557-comment-draft-opening branch May 20, 2026 20:04
GaboHBeaumont pushed a commit that referenced this pull request May 20, 2026
Suppress the main comment editor when the side panel is editing the same draft target, and route reply drafts into the panel. Flush comment editor changes immediately so draft saves are not dropped on unmount, and cover the draft routing/suppression behavior with tests.
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.

Opening a comment draft in the side panel deletes my comment.

1 participant