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)
Sun, Dec 15, 6:43 PM
Unknown Object (File)
Thu, Dec 5, 3:41 PM
Unknown Object (File)
Nov 23 2024, 4:33 AM
Unknown Object (File)
Nov 23 2024, 4:26 AM
Unknown Object (File)
Nov 23 2024, 4:10 AM
Unknown Object (File)
Nov 23 2024, 3:59 AM
Unknown Object (File)
Nov 23 2024, 12:59 AM
Unknown Object (File)
Nov 11 2024, 6:36 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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #30565)

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 ↗(On Diff #30565)

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.