feat: add enhanced mentions#1743
Open
MartinCupela wants to merge 7 commits into
Open
Conversation
Contributor
|
Size Change: +13.8 kB (+3.6%) Total Size: 399 kB 📦 View Changed
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Provide support for enhanced mentions:
@here@channel@user@userRole@userGroupSummary
It introduces full typed User Group client support, including CRUD/member-management methods and a dedicated
UserGroupPaginator, then extends the composer mention pipeline so@suggestions can return a mixed typed set of users, built-in mentions, roles, and user groups. On selection and send/draft composition, those tracked mention entities are mapped into the correct message fields:mentioned_users,mentioned_channel,mentioned_here,mentioned_roles, andmentioned_group_ids.Refactors mention normalization into a shared
mentionUtilshelper, updates search behavior to use the user-group search endpoint only for mention autocomplete, and adds focused regression coverage for the new API surface, paginator behavior, mixed mention suggestions, and send/draft payload generation.Highlights
StreamChatuser-group API methods:queryUserGroupscreateUserGroupgetUserGroupsearchUserGroupsupdateUserGroupdeleteUserGroupaddUserGroupMembersremoveUserGroupMembersUserGroupPaginatorfor cursor-based user-group listing@channel@hereTodo:
Waiting for back-end support: