Page MenuHomePhabricator

[web] Introduce `useMessageTooltipActions` hooks
ClosedPublic

Authored by jacek on Aug 23 2022, 5:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 9, 1:30 PM
Unknown Object (File)
Sun, Dec 1, 10:17 PM
Unknown Object (File)
Fri, Nov 29, 6:56 AM
Unknown Object (File)
Mon, Nov 25, 11:18 PM
Unknown Object (File)
Mon, Nov 25, 3:57 PM
Unknown Object (File)
Nov 22 2024, 1:37 PM
Unknown Object (File)
Nov 12 2024, 6:22 AM
Unknown Object (File)
Nov 11 2024, 8:41 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