Page MenuHomePhabricator

[native] factor out emojiKeyboard shared value from tooltip component
AbandonedPublic

Authored by ginsu on Feb 6 2023, 11:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 6:40 AM
Unknown Object (File)
Wed, Apr 17, 6:39 AM
Unknown Object (File)
Wed, Apr 17, 6:37 AM
Unknown Object (File)
Mar 21 2024, 7:46 AM
Unknown Object (File)
Mar 21 2024, 7:46 AM
Unknown Object (File)
Mar 21 2024, 7:46 AM
Unknown Object (File)
Feb 22 2024, 7:25 AM
Unknown Object (File)
Feb 22 2024, 4:50 AM
Subscribers

Details

Reviewers
ashoat
atul
tomek
Summary

factor out emojiKeyboard shared value from the tooltip component into tooltip-context.react. Also noticed that the emoji keyboard was not stopping the navigation from going back, so fixed that as well using the new refactored logic


Linear Task: ENG-2937

Test Plan

Please see the demo video to see that everything still works as expected

Diff Detail

Repository
rCOMM Comm
Branch
eng-2937
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: ashoat, atul, tomek.
ginsu edited the test plan for this revision. (Show Details)
ginsu requested review of this revision.Feb 6 2023, 11:17 PM
ashoat requested changes to this revision.Feb 7 2023, 5:06 AM

This achieves nothing – the code is still in TooltipContext. It's important to understand the motivation here... I'm not asking you to remove this from Tooltip for arbitrary reasons, I'm asking you to make sure we're able to achieve separation of concerns, and to remove all application-specific code from the tooltip code. The tooltip code is meant to be general purpose.

When you find yourself wanting to hack a general purpose component to achieve a goal, ask yourself "how could I extend the API of this general purpose component to be able to do what I need, without introducing application-specific code?"

This revision now requires changes to proceed.Feb 7 2023, 5:06 AM

Please chat with me IRL before proceeding on this task – I want to make sure you don't waste any more cycles

Abandoning due to improved solution by @ashoat in D6657 and D6658