mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 21:23:45 +01:00
* Initial plan * fix: always render @[userId] mention tokens regardless of split test Readers outside the comment-mentions/email-notifications split tests were seeing raw @[<userId>] tokens in chat messages and review-panel comments, leaking internal Mongo ObjectIds. Fix: always parse and render @[userId] tokens using parseMentions() + MentionBadge regardless of split-test membership. MentionBadge already safely falls back to "@Unknown" when a userId can't be resolved to a project member, so no ID is ever emitted. - message-content.tsx: remove mentionsFeatureEnabled gate; always call renderMentionedContent() instead of falling back to raw <Linkify> - review-panel-message.tsx: remove mentionsFeatureEnabled gate; always pass displayMentions to ExpandableContent The mentions-input autocomplete (typing new @mentions) remains gated behind the split test as before — this fix is rendering-only. Co-authored-by: jdomaga <25135258+jdomaga@users.noreply.github.com> * feat: always allow for mentions to display --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jdomaga <25135258+jdomaga@users.noreply.github.com> Co-authored-by: Jimmy Domagala-Tang <jimmy.domagala-tang@overleaf.com> GitOrigin-RevId: c7cedbfe6966bb2ebce58a5f4e03b1627198dab7