stable

Clone or download

Read-only

feat: create labels on-the-fly

part of: story #31537 Add tags and make them updatable How to test: - Open the "edit labels" modal - Type "Do create" in the search input - Click on the "Create a new label" button in the dropdown --> The label is added to the selection --> The label appears in the dropdown --> The label has default outlined + chrome-silver style - Add a second label "Do not create" - Now remove it from the selection using the cross on its left --> The label is removed from the selection --> The label still appear in the dropdown - Add a third label "Changed my mind" - Now remove it from the selection - Select it again using the dropdown - Submit the modal --> Only the labels "Do create" and "Changed my mind" have been created and added to the pull-request Change-Id: I787b0fde020cea0e58776b6cf49d8970ccc06f68

Modified Files

Name
M lib/frontend/lazybox/src/Options.ts +1 −1 Go to diff View file
M lib/frontend/lazybox/src/SearchInput.ts +4 −0 Go to diff View file
M lib/frontend/lazybox/src/dropdown/DropdownElement.test.ts +19 −4 Go to diff View file
M lib/frontend/lazybox/src/dropdown/DropdownElement.ts +14 −3 Go to diff View file
M plugins/pullrequest/scripts/lib/rest-api-types/src/labels.ts +16 −3 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/po/fr_FR.po +3 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/api/tuleap-rest-querier.test.ts +19 −9 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/api/tuleap-rest-querier.ts +14 −13 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/Labels/PullRequestLabels.test.ts +2 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/Labels/PullRequestLabels.vue +26 −18 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/Labels/PullRequestManageLabelsModal.test.ts +22 −2 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/src/components/Labels/PullRequestManageLabelsModal.vue +34 −4 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/Labels/autocomplete/LabelsCreationManager.test.ts +108 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-overview/src/components/Labels/autocomplete/LabelsCreationManager.ts +63 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-overview/tests/stubs/LazyboxStub.ts +10 −0 Go to diff View file
M src/www/tlp-doc/resources/forms/lazybox/doc.html +4 −1 Go to diff View file