stable

Clone or download

Read-only

feat: related to me switch

story #35823 Pull request new home page - Filter on Related to me How to test: - Toggle the "related to me" switch --> The list of pull-requests have been reloaded --> Only the pull-requests related to your current user (author OR reviewer) are shown - Open the [+ Add filter] dropdown --> Author and Reviewer items are disabled - Toggle back the "related to me" switch - Open the dropdown again --> Author and Reviewer items are not disabled anymore - Using the [+ Add filter] dropdown, create an author filter --> The switch is disabled - Remove the author filter --> The switch is no longer disabled - Create a reviewer filter --> The switch is disabled - Remove the reviewer filter --> The switch is no longer disabled Change-Id: I6d507fbadc08cc61430bcb84bc1e6a4f2f06833e

Modified Files

Name
M plugins/pullrequest/scripts/lib/selectors-dropdown/src/elements/SelectorsDropdown.ts +1 −1 Go to diff View file
M plugins/pullrequest/scripts/lib/selectors-dropdown/src/elements/autocompleter/ContentGroupBuilder.test.ts +3 −2 Go to diff View file
M plugins/pullrequest/scripts/lib/selectors-dropdown/src/elements/autocompleter/ContentGroupBuilder.ts +1 −1 Go to diff View file
M plugins/pullrequest/scripts/lib/selectors-dropdown/src/elements/autocompleter/OnSelectionCallback.test.ts +3 −1 Go to diff View file
M plugins/pullrequest/scripts/lib/selectors-dropdown/tests/SelectorEntryStub.ts +1 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/po/fr_FR.po +23 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/api/get-pull-requests-query-builder.test.ts +43 −27 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/api/get-pull-requests-query-builder.ts +6 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/api/tuleap-rest-querier.test.ts +4 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/api/tuleap-rest-querier.ts +8 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/Author/AuthorSelectorEntry.ts +14 −2 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/Branches/TargetBranchSelectorEntry.ts +1 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/Labels/LabelsSelectorEntry.ts +1 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/PullRequestListFilters.vue +23 −3 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/RelatedToMe/RelatedToMeSwitch.test.ts +103 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/RelatedToMe/RelatedToMeSwitch.vue +93 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/Reviewer/ReviewerSelectorEntry.ts +13 −3 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/List/PullRequestsList.test.ts +46 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/List/PullRequestsList.vue +7 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/injection-symbols.ts +4 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/pullrequest-homepage.ts +5 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/tests/injection-symbols-stub.ts +9 −0 Go to diff View file