stable

Clone or download

Read-only

refactor: move time_period in store

Until now, the time period displayed was based on displayed tasks (from the first start date to the last end date). However, with the introduction of iterations, time period calculation will change to start just before the iteration containing the first task, and to end after the iteration containing the last task. Since both tasks and iterations are managed by the store, it make sense to move the build of the TimePeriod to the store. It has the advantage to decrease a little bit the size of the main component GanttBoard. Part of story #21379: Display iterations on top of roadmap Change-Id: Ied88bfada539b7bfa18582d5e6cb6234a6c6cab3

Modified Files

Name
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/GanttBoard.test.ts +124 −79 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/GanttBoard.vue +20 −71 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Iteration/IterationsRibbon.vue +5 −2 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/ScrollingArea.test.ts +17 −5 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/ScrollingArea.vue +6 −6 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Subtask/SubtaskSkeletonBar.vue +5 −2 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/GanttTask.test.ts +13 −1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/GanttTask.vue +6 −3 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/TimePeriod/TimePeriodHeader.test.ts +31 −10 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/TimePeriod/TimePeriodHeader.vue +4 −1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/TodayIndicator.test.ts +11 −8 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/TodayIndicator.vue +7 −5 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/index.ts +5 −2 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/index.ts +12 −7 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/root-mutations.test.ts +4 −36 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-getters.test.ts +35 −1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-getters.ts +23 −1 Go to diff View file
A plugins/roadmap/scripts/roadmap-widget/src/store/timeperiod/index.ts +37 −0 Go to diff View file
A plugins/roadmap/scripts/roadmap-widget/src/store/timeperiod/timeperiod-getters.test.ts +87 −0 Go to diff View file
A plugins/roadmap/scripts/roadmap-widget/src/store/timeperiod/timeperiod-getters.ts +80 −0 Go to diff View file
A plugins/roadmap/scripts/roadmap-widget/src/store/timeperiod/timeperiod-mutations.test.ts +33 −0 Go to diff View file
A plugins/roadmap/scripts/roadmap-widget/src/store/timeperiod/timeperiod-mutations.ts +24 −0 Go to diff View file
A plugins/roadmap/scripts/roadmap-widget/src/store/timeperiod/type.ts +24 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/type.ts +5 −0 Go to diff View file