mattermost/mattermost

Webapp: Hashtag autocomplete

Open

#19,742 创建于 2022年3月8日

在 GitHub 查看
 (6 评论) (0 反应) (1 负责人)TypeScript (32,880 star) (7,823 fork)batch import
Area/End User FeatureDifficulty/3:HardHelp WantedTech/ReactJS

描述

Functional Notes

  • Leverage the existing Autocomplete UI as much as possible
  • As soon as a hash character is used in a message input, show the autocomplete menu
  • Before any other characters are typed
    • show recently used tags by current user if there are any (up to a maximum of 10) and sort by most recent first
    • In a group below, show the 10 most-used tags on the server
  • As characters are typed after the hash character:
    • Sort as follows **# Tags starting with the search term that were recently used (sorted by recency) **# Tags containing the search term that were recently used (sorted by recency) **# Tags starting with the search term that haven't been used (sorted by popularity) **# Tags containing the search term that haven't been used (sorted by popularity)
  • All options in the autocomplete menu show the number of messages that the hashtag has been used in on the server (e.g. “60 messages”)
  • Users can use keyboard or mouse to select from the autocomplete list (just like any other autocomplete list)
  • Once an autocomplete item is chosen, the tag gets added to the message input

Desktop

Design Links

Mobile

See Linked Ticket: https://mattermost.atlassian.net/browse/MM-35254


If you're interested please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.

JIRA: https://mattermost.atlassian.net/browse/MM-10456

贡献者指南