mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
The REST endpoint PUT /api/boards/:boardId/lists/:listId already accepted title, color, starred and wipLimit, but the color was stored unvalidated. It now validates the color with normalizeListColor (a named palette color OR a custom #rrggbb hex) and rejects an unknown color with a clear 400 instead of silently storing None or hanging. The pure field/validation logic is extracted to a Meteor-free helper models/lib/listApiUpdate.js so it is unit testable without a running server (tests/listApiUpdate.test.cjs). api.py gains two commands mirroring editcard/editcardcolor: editlist BOARDID LISTID NEWLISTTITLE and editlistcolor BOARDID LISTID COLOR, with usage lines in the help block. Thanks to C0rn3j and xet7.