Page MenuHomePhabricator

[web] introduce useReactionTooltip hook
ClosedPublic

Authored by ginsu on Aug 17 2023, 6:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 6, 6:37 PM
Unknown Object (File)
Fri, Nov 29, 10:23 AM
Unknown Object (File)
Mon, Nov 25, 10:42 PM
Unknown Object (File)
Nov 22 2024, 4:09 PM
Unknown Object (File)
Nov 22 2024, 11:06 AM
Unknown Object (File)
Nov 10 2024, 3:09 PM
Unknown Object (File)
Oct 28 2024, 6:41 AM
Unknown Object (File)
Oct 28 2024, 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.