stable

Clone or download

Read-only

Add a global error state in planning view

part of story #16125 [release management] create a new Aggregator Release How to test: - rebuild the planning v2 app & scss - When there is an issue while loading the initial milestones, a global error state will be shown and will replace the rest of the app. No more infinite spinner. - The error state shows the RestException error message if any and lets people try to reload the page Note to reviewer: loading closed milestones does not have the same error state. It should probably be an "error modal" like in other apps because "open" milestones and left-hand side backlog items are already loaded. The error modal does not exist yet in planning v2. It may be introduced later in order to ease this review. Change-Id: I0cb353ac25aabda233dec4dda529aa1bb892c6df

Modified Files

Name
M plugins/agiledashboard/scripts/planning-v2/po/fr.po +15 −2 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/src/app/app.js +9 −4 Go to diff View file
A plugins/agiledashboard/scripts/planning-v2/src/app/planner-app-component.js +32 −0 Go to diff View file
R plugins/agiledashboard/scripts/planning-v2/src/app/planning-controller.js Go to diff View file
R plugins/agiledashboard/scripts/planning-v2/src/app/planning-controller.test.js Go to diff View file
R plugins/agiledashboard/scripts/planning-v2/src/app/planning.tpl.html Go to diff View file
D plugins/agiledashboard/scripts/planning-v2/src/app/planning-directive.js +0 −12 Go to diff View file
A plugins/agiledashboard/scripts/planning-v2/src/app/rest-error/ErrorState.ts +34 −0 Go to diff View file
A plugins/agiledashboard/scripts/planning-v2/src/app/rest-error/error-message-helper.test.ts +70 −0 Go to diff View file
A plugins/agiledashboard/scripts/planning-v2/src/app/rest-error/error-message-helper.ts +41 −0 Go to diff View file
A plugins/agiledashboard/scripts/planning-v2/src/app/rest-error/global-error-component.js +56 −0 Go to diff View file
A plugins/agiledashboard/scripts/planning-v2/src/app/rest-error/global-error-component.test.js +41 −0 Go to diff View file
A plugins/agiledashboard/scripts/planning-v2/src/app/rest-error/location-helper.ts +22 −0 Go to diff View file
M plugins/agiledashboard/templates/pane-planning-v2.mustache +1 −1 Go to diff View file
M plugins/agiledashboard/themes/BurningParrot/css/scrum/_planning.scss +2 −1 Go to diff View file
A plugins/agiledashboard/themes/BurningParrot/css/scrum/planning/_errors.scss +32 −0 Go to diff View file