stable

Clone or download

Read-only

Ability to switch scale to week

part of: story #19734 have a Roadmap widget on dashboard Note to reviewers: I use current-week-number to get the number of the week. There is no methods in the Date object to retrieve it, and the algorithm to compute it is quite complex (years with 52/53 weeks, leap years and stuff). How to test: - switch the scale to "Weeks" --> The timescale is switched to weeks Change-Id: Iaaed3302563452d54e6012deda74eb1f9e3c61ec

Modified Files

Name
M plugins/roadmap/package-lock.json +5 −0 Go to diff View file
M plugins/roadmap/package.json +1 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/po/fr_FR.po +10 −1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/GanttBoard.vue +10 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/TimePeriod/TimePeriodControl.test.ts +2 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/TimePeriod/TimePeriodControl.vue +1 −0 Go to diff View file
A plugins/roadmap/scripts/roadmap-widget/src/current-week-number.d.ts +20 −0 Go to diff View file
A plugins/roadmap/scripts/roadmap-widget/src/helpers/time-period-week.test.ts +165 −0 Go to diff View file
A plugins/roadmap/scripts/roadmap-widget/src/helpers/time-period-week.ts +135 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/type.ts +1 −1 Go to diff View file