Conversation
|
Caution Review failedThe pull request is closed. WalkthroughAdds team-mention support and centralizes mention test data: AtMention rendering now handles user and team types with type-aware display and navigation behavior; spotlight search is called with mentions enabled; story files consolidate shared mentions constants. Changes
Sequence Diagram(s)sequenceDiagram
participant Renderer as UI Renderer
participant AtMention
participant Spotlight
participant Nav as Navigation
Renderer->>Spotlight: request spotlight(..., mentions: true)
Spotlight-->>Renderer: results (users/rooms/mentions)
Renderer->>AtMention: render mention object
alt mention resolved (username or name)
AtMention->>AtMention: determine type
alt type == "user"
AtMention->>AtMention: choose display (useRealName? name : username)
AtMention->>Nav: provide onPress -> navigate to user
else type == "team"
AtMention->>AtMention: display team name
AtMention-->>Nav: no onPress (disabled)
end
AtMention-->>Renderer: render text (with/without onPress)
else mention unresolved
AtMention-->>Renderer: skip rendering
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (4 passed)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
⛔ Files ignored due to path filters (2)
📒 Files selected for processing (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
c745530 to
d52b400
Compare
Proposed changes
Web client has this already, but the implementation was missing on mobile apps.
Issue(s)
https://rocketchat.atlassian.net/browse/CORE-1510
How to test or reproduce
Works only on a workspace with the appropriate licenses (like https://mobile.rocket.chat)
@and autocomplete should display it like a regular user (this is following web implementation)Screenshots
Message composer displaying the team on autocomplete
Message with a team mentioned
Updated stories on Markdown
Types of changes
Checklist
Further comments
Summary by CodeRabbit
New Features
Improvements