stable

Clone or download

Read-only

Toggle a form to edit the description

part of story #31151 Edit the description comment in text only How to test: - Click on the [Edit] button of the description comment --> The component enters in write mode --> The textarea contains the raw description --> The save button is always disabled because it is not possible to save it yet - Click on [Cancel] --> The component is in read mode Change-Id: Ief381e21d5bc54e68fc3ea5d5693ded8126453b5

Modified Files

Name
M plugins/pullrequest/scripts/lib/pullrequest-comments/po/fr_FR.po +9 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentBodyTemplate.test.ts +0 −1 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentController.test.ts +7 −5 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentController.ts +3 −3 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentReplyFormTemplate.ts +4 −8 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentReplyTemplate.ts +2 −3 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/main.ts +0 −1 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionComment.test.ts +44 −39 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionComment.ts +12 −29 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentController.test.ts +65 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentController.ts +52 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentFormPresenter.test.ts +37 −0 Go to diff View file
R plugins/pullrequest/scripts/lib/pullrequest-comments/src/comment/PullRequestCommentReplyFormFocusHelper.ts Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentFormTemplate.test.ts +72 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentFormTemplate.ts +72 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionCommentPresenter.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionContentTemplate.test.ts +46 −7 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/PullRequestDescriptionContentTemplate.ts +39 −2 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/description-comment/main.ts +4 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/helpers/main.ts +20 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/src/helpers/textarea-focus-helper.ts +42 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/main.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/src/new-comment-form/NewCommentForm.ts +6 −4 Go to diff View file
A plugins/pullrequest/scripts/lib/pullrequest-comments/tests/stubs/DescriptionAuthorStub.ts +29 −0 Go to diff View file
R plugins/pullrequest/scripts/lib/pullrequest-comments/tests/stubs/FocusTextReplyToCommentAreaStub.ts Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/tests/stubs/RelativeDateHelperStub.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/themes/includes/_comment.scss +17 −2 Go to diff View file
M plugins/pullrequest/scripts/lib/pullrequest-comments/themes/includes/_description-comment.scss +12 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/rest-api-types/src/pull-request.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/Threads/DescriptionCommentPresenterBuilder.test.ts +3 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/Threads/DescriptionCommentPresenterBuilder.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/Threads/OverviewThreads.test.ts +1 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/Threads/OverviewThreads.vue +12 −3 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/file-diff/diff-modes/side-by-side-diff-component.js +2 −2 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/file-diff/diff-modes/unidiff-component.js +2 −2 Go to diff View file