Page MenuHomePhabricator

[native] introduced fixed location option for tooltip toolbar
ClosedPublic

Authored by ginsu on Oct 24 2022, 9:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 5:15 PM
Unknown Object (File)
Tue, Nov 26, 5:14 PM
Unknown Object (File)
Tue, Nov 26, 5:14 PM
Unknown Object (File)
Mon, Nov 25, 7:09 PM
Unknown Object (File)
Mon, Nov 25, 10:20 AM
Unknown Object (File)
Mon, Nov 25, 3:47 AM
Unknown Object (File)
Sun, Nov 24, 11:06 PM
Unknown Object (File)
Sun, Nov 24, 11:05 PM

Details

Summary

Will not land diff until all diffs in stack are accepted

introduced fixed as a loction option for the tooltip toolbar. The following tooltips will be using the fixed option: multimedia-message.react, robotext-message.react, and text-message.react


Linear Task: ENG-2037

Test Plan

Please watch the demo to see that multimedia-message.react, robotext-message.react, and text-message.react now only get the tooltip placed below the message, this is to be expected and will be addressed later:

Diff Detail

Repository
rCOMM Comm
Branch
eng-2037 (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu requested review of this revision.Oct 24 2022, 9:43 AM
native/chat/multimedia-message.react.js
146

Doesn't seem like we need a variable for this anymore. Let's move it to where it's used

native/navigation/tooltip.react.js
318

Where does 32 come from?

native/navigation/tooltip.react.js
318

it's the fixed margin to the bottom of the chat window- i will pull out this number into a variable so that it is more descriptive

atul requested changes to this revision.Oct 24 2022, 10:58 AM

Sending back to your queue while you address feedback

This revision now requires changes to proceed.Oct 24 2022, 10:58 AM

addressed ashoat's comments

planning changes to fixedMargin variable

Would love to understand the 32 number better! I have a suspicion that we shouldn't be hardcoding that... eg. if it's the height of some React Nav component, I think there's an API for that... or if it's the height of one of our components, we should probably keep that constant in the same file as that component (if not something better like what React Nav does)

Would love to understand the 32 number better! I have a suspicion that we shouldn't be hardcoding that... eg. if it's the height of some React Nav component, I think there's an API for that... or if it's the height of one of our components, we should probably keep that constant in the same file as that component (if not something better like what React Nav does)

Will address this in a future diff

just introducing fixed option

ginsu edited the test plan for this revision. (Show Details)
ginsu added 1 blocking reviewer(s): atul.
ginsu edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Oct 26 2022, 12:55 PM