stable

Clone or download

Read-only

Refactoring: Centralize "Month" timeperiod

Grid display or left/width computation of bars should not know that we are dealing with months. This will allow us to more easily to switch to another time scale (week, quarter, …) later. Part of story #19734: have a Roadmap widget on dashboard Change-Id: I9e590dd2b32e6eb892641e4c37a9fd039e6f5228

Modified Files

Name
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/GanttBoard.test.ts +12 −17 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/GanttBoard.vue +31 −32 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/BackgroundGrid.test.ts +10 −1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/BackgroundGrid.vue +12 −1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/GanttTask.test.ts +49 −12 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/GanttTask.vue +12 −6 Go to diff View file
R plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/TimePeriod/TimePeriodMonth.test.ts Go to diff View file
R plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/TimePeriod/TimePeriodMonth.vue Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/TodayIndicator.test.ts +11 −3 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/TodayIndicator.vue +3 −2 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/LoadingState.vue +6 −7 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/helpers/left-position.test.ts +10 −6 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/helpers/left-postion.ts +8 −8 Go to diff View file
R plugins/roadmap/scripts/roadmap-widget/src/helpers/additional-months.test.ts Go to diff View file
R plugins/roadmap/scripts/roadmap-widget/src/helpers/additional-months.ts Go to diff View file
R plugins/roadmap/scripts/roadmap-widget/src/helpers/months.test.ts Go to diff View file
R plugins/roadmap/scripts/roadmap-widget/src/helpers/months.ts Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/type.ts +8 −0 Go to diff View file
M plugins/roadmap/themes/_timeperiod.scss +2 −2 Go to diff View file