Commit Graph
1 Commits
Author SHA1 Message Date
Lauri Ojansivu fdfa943212 Multi-Selection: set a custom card color on all selected cards.
One card's color popup already had a color wheel (#5514) that stores a
'#rrggbb' hex in card.color; Multi-Selection offered only the ready-made
palette, so a lighter shade that keeps card text readable had to be set card
by card. The Multi-Selection color popup now has the same color wheel and
writes the same field through the same Card.setColor and server allow rule.

Both color popups also show the custom colors already used on the board's
cards beside the palette, so a color picked once is one click away for the
next cards. No new storage and no new interface text.

Cards the user may not edit (Utils.canModifyCard, e.g. a linked card whose
source board is comment-only for them) are skipped, and one refused card no
longer stops the rest of the selection. The Cards schema validates color with
one shared rule (isAllowedCardColor: empty, a palette name or a strict
'#rrggbb'), so crafted values such as 'red;background:url(...)', '</style>'
or 'javascript:' are refused on the server and never offered as swatches.

Thanks to xet7 !
2026-10-08 08:47:18 +03:00