mirror of
https://github.com/wekan/wekan.git
synced 2026-11-26 14:45:11 -05:00
The all-boards activity feed showed "checked __checklistItem__ of checklist __checklist__", "from list __oldList__ at swimlane __oldSwimlane__", "added attachment __attachment__", an empty "at swimlane", and raw names such as "removedChecklistItem": it filled only the card, list and board of the notification sentence. - server/activityFeed.js reads the ids the sentence needs and looks the names up a batch at a time: swimlanes, old list and swimlane, checklist and item, attachment, label, member and assignee, comment, old board. Never a field's value (an admin-only custom field stays out), a comment's text only for a member who may read comments, and another board only when the member sees it too. - A rename or a restore names its new title itself, and a swimlane's activity keeps the swimlane's id in listId; activityTitleParams fills those for the feed and the notifications alike. - A placeholder nothing could fill - a deleted checklist item - is left out instead of shown as __name__. - Ten kinds of activity had no sentence at all, in the feed or in notifications: removedChecklistItem, moveCardBoard, deleteBoard, the board, list and swimlane renames and restores, joinAssignee and unjoinAssignee. They have one now, translated in all locales; the restores, moves and checklist ones join their notification groups. tests/activityFeed.test.cjs fills every name, refuses comments and hidden boards, and fails on any stored activity type without a sentence; activity-feed-sentences.e2e.js checks the feed shows the names and no __placeholder__. Thanks to xet7 !