Page MenuHomePhabricator

[web] introduce useReactionTooltip hook
ClosedPublic

Authored by ginsu on Aug 17 2023, 6:33 PM.
Tags
None
Referenced Files
F3348828: D8859.id30053.diff
Fri, Nov 22, 4:09 PM
F3347090: D8859.diff
Fri, Nov 22, 11:06 AM
Unknown Object (File)
Sun, Nov 10, 3:09 PM
Unknown Object (File)
Mon, Oct 28, 6:41 AM
Unknown Object (File)
Mon, Oct 28, 6:41 AM
Unknown Object (File)
Mon, Oct 28, 6:41 AM
Unknown Object (File)
Mon, Oct 28, 6:41 AM
Unknown Object (File)
Mon, Oct 28, 6:39 AM
Subscribers

Details

Summary

This hooks runs all the logic necessary to create the reaction tooltip, and returns the onMouseEnter and onMouseLeave callbacks to be forwarded to the ReactionPill

Linear task: https://linear.app/comm/issue/ENG-3105/introduce-a-new-pop-up-component-that-renders-everytime-a-users-mouse

Depends on D8857

Test Plan

Please see the demo video below

above:

below (not the default position, but just changed it for testing purposes):

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu requested review of this revision.Aug 17 2023, 6:51 PM

Nit

web/utils/tooltip-action-utils.js
472–475

Since this is always the same object, it would help to define it in the top-level scope, so it doesn't get recreated every time

kamil added inline comments.
web/utils/tooltip-action-utils.js
468
479–484
This revision is now accepted and ready to land.Aug 24 2023, 2:12 PM

address comments / rebase before landing

This revision was automatically updated to reflect the committed changes.