stable

Clone or download

Read-only

feat: display a authors autocompleter in the side panel

part of story #35821 Pull request new home page - Filter on Authors When the user selects an item in the menu, we now intantiate a LazyAutocompleter based on the SelectorEntry configuration. Note: At this step, we do not handle filtering nor selecting values yet. How to test: - Open the [+ Add filter] dropdown. - Click on "Author". --> The side panel opens. --> A lazy autocompleter is displayed. --> It loads the authors and display them properly. Change-Id: If4b585cbc336ed7e1ef1787836cfcb9af2d57367

Modified Files

Name
M lib/frontend/lazybox/src/main.ts +2 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/selectors-dropdown/package.json +1 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/selectors-dropdown/pnpm-lock.yaml +3 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/selectors-dropdown/src/elements/SelectorsDropdown.ts +18 −1 Go to diff View file
A plugins/pullrequest/scripts/lib/selectors-dropdown/src/elements/SelectorsDropdownAutocompleter.test.ts +75 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/selectors-dropdown/src/elements/SelectorsDropdownAutocompleter.ts +53 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/selectors-dropdown/src/elements/SelectorsDropdownController.test.ts +18 −7 Go to diff View file
M plugins/pullrequest/scripts/lib/selectors-dropdown/src/elements/SelectorsDropdownController.ts +14 −2 Go to diff View file
M plugins/pullrequest/scripts/lib/selectors-dropdown/src/elements/SelectorsDropdownTemplate.test.ts +5 −4 Go to diff View file
M plugins/pullrequest/scripts/lib/selectors-dropdown/src/elements/SelectorsDropdownTemplate.ts +5 −1 Go to diff View file
M plugins/pullrequest/scripts/lib/selectors-dropdown/src/main.ts +4 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/selectors-dropdown/tests/AutocompleterStub.ts +26 −0 Go to diff View file
A plugins/pullrequest/scripts/lib/selectors-dropdown/tests/SelectorEntryStub.ts +41 −0 Go to diff View file
M plugins/pullrequest/scripts/lib/selectors-dropdown/themes/style.scss +2 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/package.json +2 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/pnpm-lock.yaml +16 −4 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/po/fr_FR.po +9 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/api/tuleap-rest-querier.test.ts +35 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/api/tuleap-rest-querier.ts +9 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/Author/AuthorSelectorEntry.ts +43 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/Author/AuthorTemplatingCallback.test.ts +63 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/Author/AuthorTemplatingCallback.ts +42 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/Author/AuthorsLoader.test.ts +68 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/Author/AuthorsLoader.ts +41 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/PullRequestListFilters.vue +15 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/List/PullRequest/PullRequestCreationDate.test.ts +2 −6 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/List/PullRequest/PullRequestReviewers.test.ts +4 −15 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-homepage/tests/stubs/UserStub.ts +29 −0 Go to diff View file