stable

Clone or download

Read-only

feat: toggle an edition form

part of story #32316 Update comments How to test: - Click on [Edit] on a comment with no replies --> The edition form is shown --> It contains the current comment content --> Its writing-zone is active - Click on [Edit] on a reply --> Same expectations - In the [Changes] tab --> Same expactations --> Toggling the edition mode of comments and replies trigger a recomputation of the code placeholder on the opposite diff. Change-Id: I634f66bd748b06d194490c177c37d8cdf377c1e6

Modified Files

Name
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestComment.ts +27 −10 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentController.test.ts +26 −4 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentController.ts +8 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentFooterTemplate.test.ts +31 −4 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentFooterTemplate.ts +16 −11 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentPresenter.test.ts +2 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentPresenter.ts +2 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/comment-reply/PullRequestCommentReply.test.ts +16 −1 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/comment-reply/PullRequestCommentReply.ts +14 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/comment-reply/PullRequestCommentReplyController.test.ts +26 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/comment-reply/PullRequestCommentReplyController.ts +9 −4 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/comment-reply/PullRequestCommentReplyFooterTemplate.test.ts +22 −1 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/comment-reply/PullRequestCommentReplyFooterTemplate.ts +16 −11 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/comment-reply/PullRequestCommentReplyTemplate.test.ts +17 −2 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/comment-reply/PullRequestCommentReplyTemplate.ts +36 −19 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditionForm.test.ts +45 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditionForm.ts +83 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditionFormController.test.ts +27 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditionFormController.ts +31 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditionFormTemplate.test.ts +41 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/edition/EditionFormTemplate.ts +50 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/main.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/new-comment-form/NewReplySaver.test.ts +2 −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/PullRequestCommentControllerStub.ts +9 −4 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/tests/stubs/PullRequestCommentPresenterStub.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/rest-api-types/src/post-comments.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/rest-api-types/src/timeline.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/Threads/CommentPresenterBuilder.test.ts +5 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/Threads/CommentPresenterBuilder.ts +3 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/PullRequestCommentPresenterBuilder.test.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/PullRequestCommentPresenterBuilder.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/file-diff/widgets/SideBySideCodeMirrorWidgetCreator.test.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/tests/stubs/FileDiffWidgetStub.ts +2 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/tests/stubs/PullRequestCommentPresenterStub.ts +1 −0 Go to diff View file