Page MenuHomePhabricator

[web] Introduce `useMessageTooltipActions` hooks
ClosedPublic

Authored by jacek on Aug 23 2022, 5:03 AM.
Tags
None
Referenced Files
F3367717: D4918.diff
Mon, Nov 25, 3:57 PM
Unknown Object (File)
Fri, Nov 22, 1:37 PM
Unknown Object (File)
Tue, Nov 12, 6:22 AM
Unknown Object (File)
Mon, Nov 11, 8:41 AM
Unknown Object (File)
Mon, Nov 11, 1:52 AM
Unknown Object (File)
Mon, Oct 28, 5:06 AM
Unknown Object (File)
Mon, Oct 28, 5:06 AM
Unknown Object (File)
Mon, Oct 28, 5:06 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
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