stable

Clone or download

Read-only

feat: display fetch error

part of story #33006 Create filters on my PR Note: We do not display errors related to the loading of pull-requests labels to avoid spamming the user with X modals. How to test: - throw a RestException in `plugins/pullrequest/include/PullRequest/REST/v1/RepositoryResource.php` - Go the the homepage app --> The error is displayed in a modal Change-Id: I8235816260f48c23eba71cd555c2dbe29ade8b43

Modified Files

Name
M plugins/pullrequest/scripts/pullrequest-homepage/package.json +1 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/pnpm-lock.yaml +7 −4 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/po/fr_FR.po +18 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-homepage/src/components/Error/PullRequestErrorModal.test.ts +109 −0 Go to diff View file
A plugins/pullrequest/scripts/pullrequest-homepage/src/components/Error/PullRequestErrorModal.vue +119 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/HomePage.vue +13 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/List/PullRequest/PullRequestCard.test.ts +4 −5 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/List/PullRequest/PullRequestCreationDate.test.ts +4 −2 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/List/PullRequest/PullRequestLabels.vue +1 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/List/PullRequestsList.test.ts +30 −8 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/components/List/PullRequestsList.vue +6 −10 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/src/injection-symbols.ts +5 −0 Go to diff View file
M plugins/pullrequest/scripts/pullrequest-homepage/tests/injection-symbols-stub.ts +17 −1 Go to diff View file