Page MenuHomePhabricator

[web] introduce useReactionTooltip hook
ClosedPublic

Authored by ginsu on Aug 17 2023, 6:33 PM.
Tags
None
Referenced Files
F3369509: D8859.id30392.diff
Mon, Nov 25, 10:42 PM
Unknown Object (File)
Fri, Nov 22, 4:09 PM
Unknown Object (File)
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
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
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

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

Nit

web/utils/tooltip-action-utils.js
472–475 ↗(On Diff #30053)

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 ↗(On Diff #30053)
479–484 ↗(On Diff #30053)
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.