stable

Clone or download

Read-only

refactor: Encapsulate task inside a row

Until now the task was considered as a row. However, in order to prepare the display of children, we need to have different type of rows: * the current Row, which displays a task * a SubtaskRow, which displays a subtask of a task * a MessageRow, which displays messages related to the retrieval of the subtasks ``` +------------------+----+----+ |β–“ β–Ά epic #123 | | | +------------------+----+----+ |β–“ β–Ό epic #124 | | | <-- Row +------------------+----+----+ |β–‘ β–“ story #1241 | | | <-- SubtaskRow +------------------+----+----+ |β–‘ β–“ story #1242 | | | +------------------+----+----+ |β–“ β–Ά epic #125 | | | +------------------+----+----+ |β–“ β–Ό epic #126 | | | +------------------+----+----+ |β–‘ ⚠️ Error loading subtas… | <-- MessageRow +------------------+----+----+ ``` This commit only introduce the Row, the others will be done in next contributions. No functional changes expected. Part of story #20979: Display children in Roadmap Change-Id: Icdf7f230e4adbb7575786a1e8b8f9b2b29266df9

Modified Files

Name
M plugins/roadmap/scripts/roadmap-widget/src/components/App.test.ts +8 βˆ’8 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/App.vue +3 βˆ’3 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/GanttBoard.test.ts +63 βˆ’27 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/GanttBoard.vue +6 βˆ’1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/index.ts +9 βˆ’7 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-actions.test.ts +17 βˆ’6 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-actions.ts +5 βˆ’1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-getters.test.ts +10 βˆ’10 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-getters.ts +1 βˆ’1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-mutations.test.ts +12 βˆ’0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-mutations.ts +3 βˆ’3 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/type.ts +2 βˆ’2 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/type.ts +4 βˆ’0 Go to diff View file