-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add onTooltipPress callback to various tooltip components #55454
Add onTooltipPress callback to various tooltip components #55454
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The latest merge main
commit introduced unrelated changes, can you please revert the latest commit and merge main again?
80743ea
to
1bf9857
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM and tests well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comment. Tests well when I try it. Good job!
> | ||
<View> | ||
<Hoverable> | ||
{(isHovered) => ( | ||
<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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NAB but checkIfActionIsAllowed is a confusing function name. It sounds like it will return a boolean.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do it as a follow up, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here it is #55663
✋ 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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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