Page MenuHomePhabricator

[web] Make chat mentions clickable
ClosedPublic

Authored by patryk on Aug 19 2023, 2:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 4:33 AM
Unknown Object (File)
Sat, Nov 23, 4:26 AM
Unknown Object (File)
Sat, Nov 23, 4:10 AM
Unknown Object (File)
Sat, Nov 23, 3:59 AM
Unknown Object (File)
Sat, Nov 23, 12:59 AM
Unknown Object (File)
Mon, Nov 11, 6:36 PM
Unknown Object (File)
Fri, Nov 8, 4:16 PM
Unknown Object (File)
Fri, Nov 8, 4:16 PM
Subscribers

Details

Summary

Solution for ENG-4561.

This diff uses useOnClickThread hook which redirects to chat when mention is clicked and uses it in markdown-chat-mention.react.js

Depends on D8852.

Test Plan

Before testing, please apply the entire web stack.

Test if mentions inside a spoiler are properly rendered and are clickable only when spoiler is opened:

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

patryk held this revision as a draft.
patryk edited the test plan for this revision. (Show Details)
patryk added reviewers: tomek, inka, rohan.
This revision is now accepted and ready to land.Aug 21 2023, 6:07 AM
patryk edited the test plan for this revision. (Show Details)

Rebase

web/markdown/markdown-chat-mention.react.js
11

We're introducing a new prop here without a corresponding change in the usage. Shouldn't that cause a Flow issue? Or is it the case that we start using this component later in the stack?

Rebase

web/markdown/markdown-chat-mention.react.js
11

We use this component later in the stack so maybe that's why Flow doesn't see an issue here.

This revision was automatically updated to reflect the committed changes.