Files
wekan/server
Lauri Ojansivu 3de2220964 Due date colours: when a card turns amber and red is the board's own.
Board Settings / Date has two numbers of hours: before the due date a card
is due soon (amber), WeKan's 48 until set, and after it a card is overdue
(red), 0 - the due time itself - until set. So a board can be grey above 24
hours, amber within them and red when overdue. An empty field is the default
again.

dueDateClass takes the board's thresholds (models/lib/dueDateThresholds.js
dueThresholdsOf) on the card, the minicard and the checklist items; a value
that is no number of hours from 0 to a year is no setting. A board admin
sets them with setBoardDueThresholds, which refuses anything else before it
writes; the fields are in the Boards schema and go with a board's WeKan
export and import. The two labels are in every language.

tests/dueDateThresholds6947.test.cjs checks the colours with and without
thresholds, the refused values, that no caller is left on the fixed 48 hours,
the method's guard and the translations;
tests/playwright/specs/due-thresholds-6947.e2e.js the colour following the
board and Board Settings / Date saving, refusing and resetting the hours.

Thanks to BarbossHack and xet7 !

Fixes #6947.
2026-11-26 20:59:10 +02:00
..
2026-03-22 17:17:48 +02:00
2021-06-14 15:11:21 +02:00