Files
wekan/client/components/users
Lauri Ojansivu 7dc5399dc7 Remove code that a second copy replaced, and templates nothing draws.
- models/cards.js defined assignMember ... toggleAssigner twice in one
  Cards.helpers({}); in an object literal the last key wins, so the first
  twelve methods (about a hundred lines, with their own linked-board
  branches) never ran. models/users.js had two copies of the swimlane-height
  storage helpers, and the header's event map an empty
  'click .js-open-bookmarks' the real handler replaced. Each first copy is
  removed; what runs is unchanged.
- An Admin Panel attachment settings pane: attachmentSettings.jade (four
  templates) and about 300 lines of settingBody.js for S3, transfer limits
  and storage paths. No menu opened it and no template drew it; Admin Panel /
  Attachments (attachments.js) is the one in use.
- Templates drawn by nothing: dateBadge, dateCustomField and
  cardCustomFieldDate with its JS, orgAvatar and teamAvatar, the three
  *ModalTitle templates of My Cards, Due Cards and Global Search, boardLists,
  boardCreateRulePopup, addMemberPopupTest, and subtasksItems with the two
  templates only it used.
- CSS repeated word for word: accessibility.css opened with a copy of
  myCards.css's first 74 lines; list.css repeated its 768px collapsed-list
  block at 1024px and 1200px, which 768px already covers; boardHeader.css
  repeated its .mobile-mode rules inside a 801px media query. The later
  copies decided nothing, so the result is the same.

tests/noDuplicateObjectKeys.test.cjs parses every app and package file and
fails on an object literal that defines a key twice, and
tests/templatesAreRendered.test.cjs fails on a template nothing draws,
apart from runtime-built names and three listed exceptions. Tests that read
the removed copies now read the code that runs.

Thanks to xet7 !
2026-10-17 00:19:00 +03:00
..