stable

Clone or download

Read-only

feat: Manage pull-request's reviewers

story #31191 Add reviewers and make them updatable How to test: - As a user without the WRITE permission in the repository, go to an open pull-request --> There is no "manage reviewers" button - As a user with the WRITE permission, go to an open pull-request --> There is a "manage reviewers" button - Click it --> A modal opens --> There is a working autocompleter inside - Select some reviewers, then save --> The modal is closed --> The reviewers are displayed in the "Reviewers" section - Reopen the modal --> The currently selected reviewers are displayed as selected in the lazybox - Close the pull-request --> There is no "manage reviewers" button anymore Change-Id: I223f3035f290be24a5c7a9235ad4c3bf6ffbfb7a

Modified Files

Name
M lib/frontend/fetch-result/src/ResultFetcher.ts +14 −0 Go to diff View file
M lib/frontend/fetch-result/src/main.ts +17 −0 Go to diff View file
M lib/frontend/lazybox/package.json +8 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/rest-api-types/src/pull-request.ts +2 −2 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/package.json +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/pnpm-lock.yaml +2 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/po/fr_FR.po +18 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/api/tuleap-rest-querier.test.ts +55 −13 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/api/tuleap-rest-querier.ts +28 −3 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/OverviewPane.vue +4 −2 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/Reviewers/PullRequestManageReviewersModal.test.ts +180 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/Reviewers/PullRequestManageReviewersModal.vue +205 −0 Go to diff View file
R plugins/pullrequest/scripts/pullrequest-overview/src/components/WriteInfo/PullRequestReviewerList.test.ts Go to diff View file
R plugins/pullrequest/scripts/pullrequest-overview/src/components/WriteInfo/PullRequestReviewerList.vue Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/Reviewers/autocomplete/AssignableReviewerTemplate.test.ts +49 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/Reviewers/autocomplete/AssignableReviewerTemplate.ts +64 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/Reviewers/autocomplete/GroupOfReviewersBuilder.test.ts +72 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/Reviewers/autocomplete/GroupOfReviewersBuilder.ts +74 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/Reviewers/autocomplete/ReviewersAutocompleter.test.ts +123 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/Reviewers/autocomplete/ReviewersAutocompleter.ts +53 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/Reviewers/autocomplete/UsersToLazyboxItemsTransformer.test.ts +65 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/Reviewers/autocomplete/UsersToLazyboxItemsTransformer.ts +59 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/constants.ts +6 −1 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/test/stubs/LazyboxStub.ts +59 −0 Go to diff View file