-
Notifications
You must be signed in to change notification settings - Fork 3.5k
fix/68139: Add dragArea false to TestDriveBanner #68610
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
Conversation
|
@allroundexperts 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] |
|
The PR is ready, I had to add useEffect with key update, I left the reason why I did it in the comments, but I wanted to ask your opinion, since this part is only needed for Desktop, instead of adding a check for isDesktop, it might be better to create a separate hook that will only call key update on desktop, and on other environments, simply return a value (for example, 0). I just wasn't sure if it was worth doing in this case, so I'm asking you here. If it is indeed better to create a separate hook, please let me know the following information (it will be faster that way, and I will be able to do everything right away to minimize edits and close the PR faster):
PS: I don't think this is a case where we need to make a component depending on the environment, but if I'm wrong, please correct me. Thank you. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppUnable to build android Android: mWeb ChromeScreen.Recording.2025-08-25.at.9.38.26.AM.moviOS: HybridAppScreen.Recording.2025-08-25.at.9.36.38.AM.moviOS: mWeb SafariScreen.Recording.2025-08-25.at.9.33.19.AM.movMacOS: Chrome / SafariScreen.Recording.2025-08-25.at.9.15.22.AM.movMacOS: DesktopScreen.Recording.2025-08-25.at.9.27.47.AM.mov |
|
Hi @Eskalifer1! |
| // Without this, the OS-level drag region overlap clickable elements, | ||
| // making them unresponsive until the container is refreshed. | ||
| // For more context: https://github.com/Expensify/App/issues/68139 | ||
| const key = useRefreshKeyAfterInteraction('key'); |
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 not call it key here. Use a key name that is more appropriate eg test-drive-banner.
|
✋ 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/marcaaron in version: 9.2.0-0 🚀
|
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.0-5 🚀
|
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.0-5 🚀
|
Explanation of Change
Fixed Issues
$#68139
PROPOSAL:#68139 (comment)
Tests
Offline tests
Precondition: Be logged in and have "Take a 2-minute test drive" option in FAB menu
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand 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
68139-android-native.mp4
Android: mWeb Chrome
68139-android-web.mp4
iOS: Native
68139-ios-native.mp4
iOS: mWeb Safari
68139-ios-web.mp4
MacOS: Chrome / Safari
68139-web.mp4
MacOS: Desktop
68139-desktop.mp4