stable

Clone or download

Read-only

Deduplicate calculation of begin/end of a period

Quarter and Month were sharing same algorithm to calculate when a period start and when it ends. This is now in a dedicated file. No functional changes. Part of story #19734: have a Roadmap widget on dashboard Change-Id: I497da98522ae8ebfd964192f455d4670f867b71c

Modified Files

Name
A plugins/roadmap/scripts/roadmap-widget/src/helpers/begin-end-of-period.test.ts +135 −0 Go to diff View file
A plugins/roadmap/scripts/roadmap-widget/src/helpers/begin-end-of-period.ts +58 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/helpers/time-period-month.ts +1 −40 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/helpers/time-period-quarter.ts +1 −40 Go to diff View file