Skip to content

Conversation

loveucifer
Copy link

@loveucifer loveucifer commented Oct 7, 2025

mentions: Enable navigation to user profiles on tap on chat threads

Before, tapping on an @-mention in a message had no effect. This
was inconsistent with tapping a sender's name or avatar, which
navigates to their profile in the thread . This change makes @-mentions tappable to
provide a consistent user experience and match web functionality as mentioned in the issue

The HTML parser extracts the data-user-id" attribute from the mention's element and stores it in theUserMentionNode. The UserMentionwidget uses this "id" to wrap the text in aGestureDetector`,
navigating to the user's profile page on tap.

Working Demo

zulip.mp4

Fixes : #1867

@loveucifer loveucifer marked this pull request as ready for review October 7, 2025 01:15
@gnprice
Copy link
Member

gnprice commented Oct 7, 2025

Thanks. Before we can review this PR, it will need a test, as described in the general instructions in the repo's README.

@gnprice gnprice marked this pull request as draft October 7, 2025 18:59
@loveucifer loveucifer force-pushed the feature/tappable-mentions branch from ff98235 to 0722254 Compare October 8, 2025 12:38
@loveucifer loveucifer marked this pull request as ready for review October 8, 2025 12:44
@loveucifer loveucifer closed this Oct 8, 2025
@loveucifer loveucifer reopened this Oct 8, 2025
@loveucifer loveucifer marked this pull request as draft October 8, 2025 13:00
@loveucifer loveucifer force-pushed the feature/tappable-mentions branch from 0722254 to 0194098 Compare October 8, 2025 13:44
@loveucifer loveucifer changed the title feat: make @-mentions tappable to navigate to user profiles mentions : make @-mentions tappable to navigate to user profiles Oct 8, 2025
@loveucifer loveucifer marked this pull request as ready for review October 8, 2025 14:04
@gnprice gnprice added the maintainer review PR ready for review by Zulip maintainers label Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer review PR ready for review by Zulip maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tap an @-mention to go to user's profile page

2 participants