Page MenuHomePhabricator

[web] Introduce `useMessageTooltipActions` hooks
ClosedPublic

Authored by jacek on Aug 23 2022, 5:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 28, 11:10 PM
Unknown Object (File)
Sun, Apr 28, 11:10 PM
Unknown Object (File)
Sun, Apr 28, 11:09 PM
Unknown Object (File)
Sun, Apr 28, 11:06 PM
Unknown Object (File)
Sun, Apr 28, 10:39 PM
Unknown Object (File)
Sun, Apr 28, 6:14 AM
Unknown Object (File)
Mar 29 2024, 6:13 PM
Unknown Object (File)
Mar 28 2024, 8:45 AM
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
Lint Not Applicable
Unit
Tests Not Applicable

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