Add onTooltipPress callback to various tooltip components#55454
Conversation
rayane-d
left a comment
There was a problem hiding this comment.
The latest merge main commit introduced unrelated changes, can you please revert the latest commit and merge main again?
80743ea to
1bf9857
Compare
|
thanks! I am working on checklist now |
|
@rayane-djouah Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Videos look pretty good to me 👍 |
|
@rayane-djouah friendly bump for final review 🙏 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-01-23.at.4.00.55.PM.movAndroid: mWeb ChromeScreen.Recording.2025-01-23.at.3.57.52.PM.moviOS: NativeSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-01-23.at.16.05.24.mp4iOS: mWeb SafariSimulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2025-01-23.at.15.53.17.mp4MacOS: Chrome / SafariScreen.Recording.2025-01-23.at.3.50.56.PM.movMacOS: DesktopScreen.Recording.2025-01-23.at.3.49.07.PM.mov |
puneetlath
left a comment
There was a problem hiding this comment.
Small comment. Tests well when I try it. Good job!
| <PressableWithSecondaryInteraction | ||
| onPress={shouldCheckActionAllowedOnPress ? Session.checkIfActionIsAllowed(onPressAction, isAnonymousAction) : onPressAction} | ||
| onPressIn={() => shouldBlockSelection && shouldUseNarrowLayout && DeviceCapabilities.canUseTouchScreen() && ControlSelection.block()} | ||
| onPress={shouldCheckActionAllowedOnPress ? checkIfActionIsAllowed(onPressAction, isAnonymousAction) : onPressAction} |
There was a problem hiding this comment.
NAB but checkIfActionIsAllowed is a confusing function name. It sounds like it will return a boolean.
There was a problem hiding this comment.
It is confusing 💯 agree, should I change it to callFnIfActionIsAllowed? I see function is used widely across the codebase happy to raise a follow-up PR just so we keep this PR clean
There was a problem hiding this comment.
Let's do it as a follow up, thanks!
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.0.89-2 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 9.0.89-8 🚀
|
Explanation of Change
Fixed Issues
$ #55371
PROPOSAL:
Tests
Offline tests
QA Steps
same as test steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2025-01-22.at.2.56.19.AM.mov
Screen.Recording.2025-01-22.at.2.58.00.AM.mov
Screen.Recording.2025-01-22.at.2.59.42.AM.mov
Screen.Recording.2025-01-22.at.3.01.53.AM.mov
Screen.Recording.2025-01-22.at.3.05.21.AM.mov
Android: mWeb Chrome
Screen.Recording.2025-01-22.at.3.10.40.AM.mov
iOS: Native
Screen.Recording.2025-01-22.at.2.31.38.AM.mov
iOS: mWeb Safari
Screen.Recording.2025-01-22.at.2.33.56.AM.mov
MacOS: Chrome / Safari
Screen.Recording.2025-01-22.at.2.13.08.AM.mov
MacOS: Desktop
Screen.Recording.2025-01-22.at.3.18.30.AM.mov