-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix: different behavior when using app and device back button in selection mode #46937
Conversation
@eVoloshchak 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] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-04.at.09.25.41.movAndroid: mWeb ChromeScreen.Recording.2025-02-04.at.09.27.21.moviOS: NativeScreen.Recording.2025-02-04.at.09.34.01.moviOS: mWeb SafariScreen.Recording.2025-02-04.at.09.35.51.movMacOS: Chrome / SafariScreen.Recording.2025-02-04.at.09.37.18.movMacOS: DesktopScreen.Recording.2025-02-04.at.09.36.42.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.
@nkdengineer, looking good on native platforms, however, there's still a behavior mismatch on web/mWeb
-
If you press hardware back button (or back button in browser), the selection isn't dismissed, you're just navigated back
beforeRemove
should be of help here -
Android: mWeb Chrome screen recording is missing
I'll update soon |
@eVoloshchak I tried with |
@eVoloshchak What do you think about my comment above? |
@nkdengineer, it does according to my testing, but it isn't called when shouldUseNarrowLayout=true (which poses a problem on web and mWeb) Screen.Recording.2024-08-27.at.15.18.01.mov |
@eVoloshchak Yes this is the problem. |
@nkdengineer, that means that, at the very least, we're able to make this work on desktop web (since there |
Still investigating. |
Still find the RCA of the bug above. |
Same as above. |
@eVoloshchak I checked again and Screen.Recording.2024-09-25.at.16.11.06.mp4 |
@eVoloshchak I tried with the listener on |
I agree with this |
@Julesssss Currently web/mweb cannot prevent the default behavior when clicking on the back button browser. Do you agree that we can only fix this bug on Native? |
Yeah I agree with native only. No need to worry about web matching our desired mobile behaviour here. |
@eVoloshchak We're good to process now. |
@eVoloshchak I think we can not because we need the onyx data to detect whether we're in the selection mode or not. |
@eVoloshchak Friendly bump. |
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!
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.
Working as expected 👍
✋ 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/Julesssss in version: 9.0.95-0 🚀
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.95-6 🚀
|
Details
Fixed Issues
$ #45896
PROPOSAL: #45896 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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.2024-08-07.at.22.51.29.mov
Android: mWeb Chrome
Screen.Recording.2024-08-15.at.22.19.45.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov