Page MenuHomePhabricator

[web] Introduce `useMessageTooltipActions` hooks
ClosedPublic

Authored by jacek on Aug 23 2022, 5:03 AM.
Tags
None
Referenced Files
F1795016: D4918.diff
Sun, May 19, 5:14 PM
Unknown Object (File)
Sat, May 18, 12:26 PM
Unknown Object (File)
Sat, May 18, 2:56 AM
Unknown Object (File)
Mon, May 13, 2:46 PM
Unknown Object (File)
Mon, May 13, 2:46 PM
Unknown Object (File)
Mon, May 13, 2:46 PM
Unknown Object (File)
Mon, May 13, 2:46 PM
Unknown Object (File)
Sun, Apr 28, 11:10 PM
Subscribers

Details

Summary

Introduce hooks return tooltip actions for robotext and composed message.

Test Plan

Flow; Tested with the rest of diffs stack.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

jacek held this revision as a draft.
tomek requested changes to this revision.Aug 26 2022, 8:56 AM
tomek added inline comments.
web/chat/tooltip-utils.js
384–402 ↗(On Diff #15859)

Do we have a way, based on ChatMessageInfoItem, to tell whether message is composed or robotext? If that's the case, we can simplify this a lot by modifying useMessageTooltipSidebarAction to return null for robotext.

But... is this logic correct? Why do we skip sidebar action for robotext but have reply action for it? Shouldn't this be the other way around?

This revision now requires changes to proceed.Aug 26 2022, 8:56 AM
web/chat/tooltip-utils.js
384–402 ↗(On Diff #15859)

Yes, I noticed I made a mistake here - of course sidebarAction should be the one available for robotext message

jacek retitled this revision from [web] Introduce `use...MessageTooltipActions` hooks to [web] Introduce `useMessageTooltipActions` hooks.Sep 1 2022, 7:10 AM
This revision is now accepted and ready to land.Sep 2 2022, 3:08 AM