mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 18:10:06 -05:00
A card can be a Story or a Task: card menu / Card kind (or an ordinary card again), with a book or a checked-box badge on the minicard. A custom field can be limited to card kinds - "Only on these card kinds", none ticked being every card as before. A kind's own fields are added to a card when it gets that kind, and shown only on cards of it; a field of no kind shows on every card. The one choke point every render uses, customFieldsWD, leaves out fields of other kinds, so the card details and minicard agree. models/lib/cardKinds.js decides; tests/cardKinds.test.cjs covers the fields a kind brings, not twice, other kinds' fields staying off, unknown kinds, and the card menu, badge and the field's ticks. The new strings are English placeholders until the next translation pass. Thanks to nightwind27 and xet7 ! Fixes #2012.