1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-23 07:09:44 +02:00

feat: Colorize DueDate badge and add toggleable completion flag.

Mark overdue dates with red colour, less than 24h with yellow and completed with green. In Card edit modal, DueDate widget now allows toggling completion flag (checkbox).
This commit is contained in:
Arkadiusz Dzięgiel 2024-08-12 08:12:42 +02:00
parent f84166406f
commit 1bf25474d0
12 changed files with 200 additions and 38 deletions

View file

@ -57,6 +57,9 @@ module.exports = {
type: 'string',
custom: dueDateValidator,
},
dueCompleted: {
type: 'boolean',
},
stopwatch: {
type: 'json',
custom: stopwatchValidator,
@ -95,7 +98,7 @@ module.exports = {
throw Errors.NOT_ENOUGH_RIGHTS;
}
const values = _.pick(inputs, ['position', 'name', 'description', 'dueDate', 'stopwatch']);
const values = _.pick(inputs, ['position', 'name', 'description', 'dueDate', 'dueCompleted', 'stopwatch']);
const card = await sails.helpers.cards.createOne
.with({