HomePhabricator
Diffusion Comm 7cd5e89189f3

[web] Introduce markdown component for chat mentions

Tags
None
Referenced Files
F698025: t2.png
Sep 28 2023, 2:04 AM
File Not Attached
F698024: t1.png
Sep 28 2023, 2:04 AM
File Not Attached
Subscribers
None

Description

[web] Introduce markdown component for chat mentions

Summary:
Solution for ENG-4560.
This diff creates a new component for chat mentions which handles bolding mentions when user has access to given chat.

Depends on D8851.

Test Plan:
Before testing, please apply the entire web stack.

  1. Create a community with three users.
  2. Create a private chat for two chosen users.
  3. Mention private chat in community chat (e. g. @[[256|8282:default text]]).

For users assigned to previously created private chat, the mention should be bold and render current thread name:

t1.png (1×1 px, 206 KB)

For users who are not in private chat, the mention should be rendered with plain text message style:
t2.png (1×1 px, 167 KB)

Reviewers: tomek, inka, rohan

Reviewed By: tomek, inka, rohan

Subscribers: ashoat, tomek

Differential Revision: https://phab.comm.dev/D8852

Details

Provenance
patrykAuthored on Sep 1 2023, 2:44 AM
Reviewer
tomek
Differential Revision
D8852: [web] Introduce markdown component for chat mentions
Parents
rCOMM7df6fdf206fa: [web] Use chat mention candidates in markdown rules
Branches
Unknown
Tags
Unknown