Persist Internal Note Checkbox on Draft Comments
Proposal
The Make this an internal note designation should persist similar to the body of the note.
Currently when a comment on an issue is drafted, the draft persists but the Internal Note designation does not. This potentially leads to drafts that are intended for an internal audience to be leaked if the page is refreshed at any point.
Acceptance Criteria
-
Draft Persistence
- When a user checks the "Make this an internal note" checkbox and starts typing a comment, the comment is saved as a draft.
- The internal note checkbox state should persist between page refreshes and the checkbox should remain checked until the comment is submitted or discarded.
-
Browser Session
- The internal note checkbox state should persist even if:
- The browser tab is closed and reopened
- The user navigates away and returns to the page
- The page is refreshed
- The internal note checkbox state should persist even if:
-
Draft Restoration
- When a draft comment is restored both the comment text AND the internal note designation should be restored to their previous states
-
Clearing Drafts
- When a user submits the comment or explicitly clears the draft, both the comment text AND the internal note designation should be cleared
-
UI Consistency
- The internal note checkbox should maintain the same visual state as it had when the draft was saved
- The UI should clearly indicate that the internal note setting is part of the draft
-
Performance
- The persistence of the internal note checkbox state should not noticeably impact page load time
- The checkbox state should be restored immediately when the draft comment is restored
Edited by 🤖 GitLab Bot 🤖