stable

Clone or download

Read-only

Handle REST errors with SVG illustrations

Part of story #12443 Table: Minimal folder display How to test: - When you don't have permission to access a project or a folder, then you should see a dedicated error screen. - When there is another error (hack the Resource to throw a RestException), then you should see another dedicated error screen. Will be done later: - Navigating back to the parent when there's a loading error. It will be done with Breadcrumb actual path. Change-Id: Ia39f8110edad46975bf8eb39c83eca97238ba473

Modified Files

Name
M plugins/document/scripts/document/api/rest-querier.spec.js +29 −2 Go to diff View file
M plugins/document/scripts/document/components/App.vue +12 −5 Go to diff View file
R plugins/document/scripts/document/components/ErrorMessage.vue Go to diff View file
R plugins/document/scripts/document/components/Folder/EmptyFolderSvg.vue Go to diff View file
A plugins/document/scripts/document/components/Folder/empty-states/LoadingError.vue +71 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/empty-states/LoadingErrorSvg.vue +44 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/empty-states/PermissionError.vue +44 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/empty-states/PermissionErrorSvg.vue +58 −0 Go to diff View file
M plugins/document/scripts/document/components/FolderView.vue +10 −21 Go to diff View file
M plugins/document/scripts/document/po/fr.po +25 −2 Go to diff View file
M plugins/document/scripts/document/po/template.pot +21 −0 Go to diff View file
M plugins/document/scripts/document/router/index.js +1 −0 Go to diff View file
M plugins/document/scripts/document/store/actions.js +27 −6 Go to diff View file
M plugins/document/scripts/document/store/actions.spec.js +101 −66 Go to diff View file
M plugins/document/scripts/document/store/getters.js +2 −1 Go to diff View file
M plugins/document/scripts/document/store/mutations.js +7 −2 Go to diff View file
M plugins/document/scripts/document/store/state.js +3 −1 Go to diff View file
M plugins/document/scripts/package.json +1 −0 Go to diff View file
M plugins/document/themes/BurningParrot/document/_document.scss +8 −2 Go to diff View file
M src/www/themes/common/tlp/doc/css/_javascript-sections.scss +2 −0 Go to diff View file
M src/www/themes/common/tlp/doc/resources/visual-assets/colors/illustrations/doc.html +12 −0 Go to diff View file
M src/www/themes/common/tlp/doc/resources/visual-assets/colors/illustrations/example.html +29 −3 Go to diff View file
M src/www/themes/common/tlp/mocks/index.js +1 −0 Go to diff View file
M src/www/themes/common/tlp/src/scss/components/_illustration.scss +16 −0 Go to diff View file