mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 14:45:11 -05:00
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.