stable

Clone or download

Read-only

feat: save edited comments

part of story #32316 Update comments How to test: ℹī¸ To be tested with: - Global comments starting a thread - Replies to global comments - Inline comments starting a thread - Replies to inline comments - Edit your comment, then submit submit. --> The edited comment is saved --> The comment is updated --> The edition form is closed --> Tooltips have been loaded Change-Id: Ib9e0ea3078f95c8020863fda4c2e57483ae10624

Modified Files

Name
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestComment.ts +2 −2 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentController.test.ts +0 −5 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentController.ts +94 −61 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentPresenter.test.ts +34 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentPresenter.ts +12 −1 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/comment-reply/PullRequestCommentReply.ts +1 −1 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/comment-reply/PullRequestCommentReplyController.ts +20 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/comment-reply/PullRequestCommentReplyTemplate.ts +1 −1 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditedCommentSaver.test.ts +66 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditedCommentSaver.ts +55 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditionForm.test.ts +6 −14 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditionForm.ts +11 −10 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditionFormController.test.ts +115 −2 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditionFormController.ts +45 −6 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditionFormPresenter.test.ts +95 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditionFormPresenter.ts +52 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditionFormTemplate.test.ts +106 −11 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditionFormTemplate.ts +17 −9 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/tests/stubs/ControlEditionFormStub.ts +34 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/tests/stubs/ControlPullRequestCommentReplyStub.ts +2 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/tests/stubs/ControlPullRequestCommentStub.ts +5 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/tests/stubs/EditionFormPresenterStub.ts +48 −0 Go to diff View file
D plugins/pullrequest/scripts/lib/pullrequest-comments/tests/stubs/NewCommentFormPresenterStub.ts +0 −49 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/tests/stubs/SaveEditedCommentStub.ts +46 −0 Go to diff View file