Page MenuHomePhabricator

[web] convert createTooltip to getTooltipPositionStyle
ClosedPublic

Authored by ginsu on Aug 15 2023, 11:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 3 2024, 10:44 PM
Unknown Object (File)
Apr 3 2024, 10:44 PM
Unknown Object (File)
Apr 3 2024, 10:44 PM
Unknown Object (File)
Apr 3 2024, 10:43 PM
Unknown Object (File)
Apr 3 2024, 10:37 PM
Unknown Object (File)
Feb 19 2024, 6:28 AM
Unknown Object (File)
Feb 19 2024, 5:10 AM
Unknown Object (File)
Feb 19 2024, 2:51 AM
Subscribers

Details

Summary

In an effort to make the tooltip code more component agnostic, I refactored this function to only get and return the tooltip position style since this logic can be reused for every single different type of tooltip we introduce in the future (which we are about to do shortly), and factored out any message tooltip specific code and put it back into the useMessageTooltip hook

Depends on D8826

Test Plan

flow and confirmed that the message tooltip on web still behaves and works as expected

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu added reviewers: atul, kamil.
ginsu edited the summary of this revision. (Show Details)
ginsu edited the summary of this revision. (Show Details)

not really familiar with tooltip code

Looks good, would prefer if someone more familiar with the tooltip could confirm though since my changes were mainly just fixing a cyclic dependency issue

This revision is now accepted and ready to land.Aug 17 2023, 10:41 AM

would prefer if someone more familiar with the tooltip could confirm

Making @atul blocking

This revision now requires review to proceed.Aug 17 2023, 1:30 PM
This revision is now accepted and ready to land.Aug 27 2023, 11:00 AM