stable

Clone or download

Read-only

feat: Show/hide closed pull-requests

part of story #36795 Show/hide closed pull-requests How to test: - Go to the PR homepage of a repository having open and closed pull-requests, authored by different users. --> There is a switch "Show closed" on the right --> Closed pull-requests are hidden by default - Click on the switch --> The list is reloaded --> Open and closed pull-requests are displayed - Add a filter on a specific author --> The author and status filters are cumulated --> An empty state is displayed when no result matches the defined filters. Change-Id: I1c8a82b3b0258644ab12d2c59b42e3f3dca57f8c

Modified Files

Name
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/get-pull-requests-query-builder.test.ts +37 −10 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/api/get-pull-requests-query-builder.ts +9 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/api/tuleap-rest-querier.test.ts +8 −3 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/api/tuleap-rest-querier.ts +2 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/PullRequestListFilters.vue +24 −12 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/Status/ClosedPullRequestsFilterSwitch.test.ts +53 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-homepage/src/components/Filters/Status/ClosedPullRequestsFilterSwitch.vue +62 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/List/PullRequestsCardsSkeletons.vue +20 −16 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/List/PullRequestsList.test.ts +53 −8 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/List/PullRequestsList.vue +28 −15 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-homepage/src/components/List/PullRequestsListEmptyState.vue +35 −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 +3 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/tests/injection-symbols-stub.ts +15 −2 Go to diff View file