web: chat: one project-marks helper and one cross-participant name rule (list row and pane title can differ; marks lose the screen-reader prefix)
tsk-nx71caq4y5ak Proposed
Audit round 6 (tsk-hgnbapyw7hnh), read at 046a4d3b. View: chat / chats list. Kind: duplication with behaviour differences.
What is wrong
cross-chat.jsprojectMarks(:61-70) copieschat.jsprojectsOf(:364-371) without the visually hiddenchat.in_projectsprefix, so a screen reader hears less on the cross chat.cross-chat.js:160-167already builds the{slug, name, view}listprojectsOftakes.- A participant name falls back differently in the two places:
chats.jsnamed(:60-63, title at:77) falls back to@handle;cross-chat.jsindexMembers/titleOf(:39,:47-58) fall back to the/agentsdisplay name, else the bare handle. The same chat can carry two titles. Neither uses the participantnamethe cross chat view carries.
Proposal
- Export
projectsOffromchatPartsand use it in both; one cross-participant name helper for both files.
Effort / risk: S. Low.