stable

Clone or download

Read-only

Apply color in front end app

part of story #29257 have a thread of comments How to test Create a global/inline comment in app => this is not a thread, comment color is gray Reply to your comment (global and inline comment) => a thread is started, a color have been assigned to the thread Change-Id: I5a28708551a87e79bd99640c1fa2b21f3c036f73

Modified Files

Name
M plugins/pullrequest/include/PullRequest/Comment/Comment.php +6 −1 Go to diff View file
M plugins/pullrequest/include/PullRequest/Comment/Dao.php +2 −2 Go to diff View file
M plugins/pullrequest/include/PullRequest/Comment/Factory.php +1 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/InlineComment/Dao.php +2 −2 Go to diff View file
M plugins/pullrequest/include/PullRequest/InlineComment/InlineComment.php +7 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/InlineComment/InlineCommentCreator.php +8 −5 Go to diff View file
A plugins/pullrequest/include/PullRequest/InlineComment/InsertedInlineComment.php +38 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/Comment/ThreadCommentColorAssigner.php +3 −13 Go to diff View file
A plugins/pullrequest/include/PullRequest/REST/v1/Comment/ThreadCommentColorRetriever.php +51 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/CommentRepresentation.php +7 −1 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PaginatedCommentsRepresentationsBuilder.php +1 −1 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PaginatedTimelineRepresentationBuilder.php +4 −2 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestInlineCommentRepresentation.php +6 −1 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestInlineCommentRepresentationBuilder.php +2 −1 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/PullRequestsResource.php +14 −9 Go to diff View file
M plugins/pullrequest/include/PullRequest/REST/v1/TimelineInlineCommentRepresentation.php +7 −0 Go to diff View file
M plugins/pullrequest/include/PullRequest/Timeline/Factory.php +2 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/PullRequestComment.ts +14 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/PullRequestCommentController.test.ts +31 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/PullRequestCommentController.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/PullRequestCommentPresenter.test.ts +2 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/PullRequestCommentPresenter.ts +6 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/PullRequestCommentReplyFormTemplate.ts +16 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/PullRequestCommentReplyTemplate.ts +30 −2 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/new-comment-form/NewInlineCommentForm.test.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/types.ts +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/tests/stubs/PullRequestCommentPresenterStub.ts +1 −0 Go to diff View file
M plugins/pullrequest/tests/unit/InlineComment/InlineCommentCreatorTest.php +14 −6 Go to diff View file
M plugins/pullrequest/tests/unit/InlineComment/InlineCommentRetrieverTest.php +1 −0 Go to diff View file
M plugins/pullrequest/tests/unit/InlineComment/InlineCommentUpdaterTest.php +7 −7 Go to diff View file
M plugins/pullrequest/tests/unit/InlineComment/Notification/InlineCommentCodeContextExtractorTest.php +2 −1 Go to diff View file
M plugins/pullrequest/tests/unit/InlineComment/Notification/PullRequestNewInlineCommentNotificationTest.php +2 −1 Go to diff View file
M plugins/pullrequest/tests/unit/InlineComment/Notification/PullRequestNewInlineCommentNotificationToProcessBuilderTest.php +2 −1 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/Comment/ParentIdValidatorForInlineCommentTest.php +4 −2 Go to diff View file
M plugins/pullrequest/tests/unit/REST/v1/Comment/ThreadCommentColorAssignerTest.php +5 −12 Go to diff View file
A plugins/pullrequest/tests/unit/REST/v1/Comment/ThreadCommentColorRetreiverTest.php +62 −0 Go to diff View file
M plugins/pullrequest/themes/includes/_tuleap-pullrequest-comment.scss +22 −0 Go to diff View file