-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[CP Staging] Receipt - Unable to replace receipt and page stucks #58901
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
[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. |
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.
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 |
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.
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.runAfterInteractions
fixes 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 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-03-21.at.11.03.29.mov
iOS: Native
Screen.Recording.2025-03-21.at.12.14.27.mov