stable

Clone or download

Read-only

refactor: Move error/empty state in root state

In future contributions, we will fetch iterations to display them in ribbons on top of tasks. Since this will share the error display, there is no reason to keep it at the task state level. After all it is an application state, it makes sense to put it in the root state. For consistency, empty state is also moved in the root state. No functional changes for display of Roadmap in error/empty states. Part of story #21379: Display iterations on top of roadmap Change-Id: I1ddc97de3f9e9da50c2d54b76c6b4fbe1f3677a3

Modified Files

Name
M plugins/roadmap/scripts/roadmap-widget/src/components/App.test.ts +63 −39 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/App.vue +4 −4 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/index.ts +8 −1 Go to diff View file
A plugins/roadmap/scripts/roadmap-widget/src/store/root-mutations.test.ts +89 −0 Go to diff View file
A plugins/roadmap/scripts/roadmap-widget/src/store/root-mutations.ts +55 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/index.ts +0 −3 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-actions.test.ts +13 −24 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-actions.ts +6 −31 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-mutations.test.ts +0 −30 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-mutations.ts +0 −18 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/type.ts +0 −3 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/type.ts +3 −0 Go to diff View file