Page MenuHomePhabricator

[web] introduce useReactionTooltip hook
ClosedPublic

Authored by ginsu on Aug 17 2023, 6:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 19, 5:40 PM
Unknown Object (File)
Sun, May 19, 5:40 PM
Unknown Object (File)
Sun, May 19, 5:40 PM
Unknown Object (File)
Mar 7 2024, 9:34 AM
Unknown Object (File)
Feb 27 2024, 1:52 AM
Unknown Object (File)
Feb 6 2024, 6:12 AM
Unknown Object (File)
Feb 6 2024, 6:12 AM
Unknown Object (File)
Feb 6 2024, 6:12 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.