Commit Graph
3 Commits
Author SHA1 Message Date
Lauri Ojansivu 5dd0b11f7c Keep translation repairs and card visibility guards aligned with reviewed changes
Preserve the newer Traditional Chinese wording in historical repair records. Locate the card read-only branch by its matching conditional rather than fixed indentation after optional field grouping.

Verified all 1169 Node suites pass, translation pull/fill protection passes, and missing requester or assigner avatars still fail the repaired guard.

Thanks to xet7 !
2026-09-17 14:20:35 +03:00
Lauri Ojansivu bb5275e974 Select requesters and assigners from board members. 2026-08-17 03:05:41 +03:00
Lauri Ojansivu e6df1a5d6d Assigned By shows when there is an assigner, not when there is a requester.
Its read-only branch - what somebody who may not edit the card sees - was
written `else if getRequestedBy` above `= getAssignedBy`. A card with an
assigner and no requester therefore showed neither: the section drew its heading
with nothing under it.

I also thought the two fields were hidden from everyone but workers, and was
WRONG: the `else` sits at the same indent as `+inlinedForm`, so it is the form's
own else - WeKan's inlinedForm idiom - and the block is inside `unless
currentUser.isWorker` on purpose, because a worker may not modify a card. The
edit I made on that mistaken reading mangled the template and was reverted; this
commit is the one-word fix that was actually needed.

The comment explaining it could not stay where it was written: a comment between
an `if` and its `else if` breaks jade nesting, which tests/jadeCompiles.test.cjs
has a negative test for and which I have now hit three times.

Thanks to xet7 !
2026-08-16 23:59:21 +03:00