[CP Staging] Receipt - Unable to replace receipt and page stucks#58901
Conversation
|
🚧 @mountiny has triggered a test app build. You can view the workflow run here. |
mountiny
left a comment
There was a problem hiding this comment.
Changes look good to me, thanks for the quick follow up
|
@fedirjh @arosiclair One of you needs to 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: Nativeandroid.movAndroid: mWeb Chromeandroid-web.moviOS: Nativeios.moviOS: mWeb Safari2025-03-21.13.09.53.movMacOS: Chrome / Safariweb.movMacOS: Desktopweb.mov |
|
When we press go back button 2025-03-21.13.11.41.mov |
|
Hm |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! 🧪🧪
|
|
@ZhenjaHorbach Does it happen on the main branch? It seems unrelated to this issue, I think it might be caused by this one Navigation - Repeating navigation after submitting expense and returning via device gesture |
No And yeah |
|
And judging by the header in the video, we are making navigation to another screen 2025-03-21.13.31.43.movBut I think this is not related to our changes ! |
Why not? I'm confused on whether this PR is causing the issue or not. @WojtekBoman are you able to reproduce that double navigation problem? Is it something you might be able to fix before merging this? |
|
I'll take a look at it @ZhenjaHorbach Could you write repro steps for this issue? Does it occur on native platforms? |
Unfortunately I don't have a stable way to reproduce this And I was able to reproduce it once on iOS-web |
arosiclair
left a comment
There was a problem hiding this comment.
Alright let's merge this
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…chment-modal [CP Staging] Receipt - Unable to replace receipt and page stucks (cherry picked from commit 428bd5c) (CP triggered by mountiny)
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.1.16-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 9.1.16-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/luacmartins in version: 9.1.16-4 🚀
|
Explanation of Change
During the receipt replacement, two actions are performed:
The issue is caused by the overlap of these two actions, before the modal had time to close, we tried to perform the
Navigation.navigate. UsingInteractionManager.runAfterInteractionsfixes this problem, the navigating takes place after the modal has closedFixed Issues
$ #58814
PROPOSAL:
Tests
Offline tests
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
Screen.Recording.2025-03-21.at.11.03.29.mov
iOS: Native
Screen.Recording.2025-03-21.at.12.14.27.mov