[CP Staging] Refactor BottomDockedModal ESC and back button logic#59799
Conversation
…ling and reorganize device event listener logic
|
@ZhenjaHorbach 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: NativeScreenrecorder-2025-04-08-13-40-41-896.mp4Android: mWeb ChromeScreenrecorder-2025-04-08-13-46-03-821.mp4iOS: Native2025-04-08.14.00.22.mp4iOS: mWeb Safari2025-04-08.14.00.19.mp4MacOS: Chrome / Safari2025-04-08.13.33.30.movMacOS: Desktop2025-04-08.13.33.30.mov |
|
🚧 @mountiny has triggered a test app build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪 |
Nice! I added it to the 'Fixed Issues' section |
|
Yeah |
In that case, it might be better to add tests as well ! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…-button [CP Staging] Refactor BottomDockedModal ESC and back button logic (cherry picked from commit 5f590ac) (CP triggered by Beamanator)
|
🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.1.24-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.24-10 🚀
|
1 similar comment
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 9.1.24-10 🚀
|
Explanation of Change
The culprit was that the back handler was registered with a function that always returned
truewhich stops the propagation and users couldn't navigate with back button.Fixed Issues
$ #59769
$ #59775
PROPOSAL: N/A
Tests
ESCAPEbutton closes the bottom modal on webOffline tests
N/A
QA Steps
Same as tests
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
and.webm
Android: mWeb Chrome
and-web.webm
iOS: Native
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-04-08.at.12.21.03.mp4
MacOS: Chrome / Safari
web.mov