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 !
Notification Settings chose where a notification goes, the bell and email,
but not what about. Member Settings → Notifications now lists the kinds of
card activity - labels, members, assignees, comments, moves, dates,
checklists, attachments, custom field values, archiving and creation - and
an unticked kind reaches neither the bell nor email. It is checked where
each recipient's channels are decided, when the plan is frozen and again
before delivery. Due-date reminders and @mentions always arrive. A suite
requires every named activity type to be in a group or deliberately
unmutable. New strings are English, pending Transifex.
Fixes#572,
Thanks to bhagyas and xet7 !