Fix go back to OD in hybridApp#65417
Conversation
war-in
left a comment
There was a problem hiding this comment.
Can we do that this way? 🤔
I think it'll be more readable
war-in
left a comment
There was a problem hiding this comment.
So glad that's being fixed, thank you!
Could you please update the change explanation in the description?
|
@luacmartins @Julesssss want me to grab a C+ to review or think we're alright to proceed without? |
|
I think an internal review is fine here if one of us builds HybridApp and verify. I'll generate builds to save me some time and then will verify/merge. |
|
🚧 @Julesssss has triggered a test Expensify/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! 🧪🧪
|
Julesssss
left a comment
There was a problem hiding this comment.
Nice, yeah this is working as expected.
There's a delay where we show the ND LHN while the travel page loads, but we can improve that further at a later date.
Julesssss
left a comment
There was a problem hiding this comment.
So clearly the logic is working but the reported video behaviour looks much better than what I see during testing. I saw:
- LHN for 6+ seconds with no indicator I should wait for travel to appear
- On second press of Travel I landed at the regular onboarding flow, and didn't see travel
@luacmartins @amyevans I'll comment in travel to make sure this is known before we merge.
|
I went back to record videos and it's working fine on both iOS and Android... I'm going to merge as this fixes a specific issue in the flow. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
I'm not exactly sure why but this PR breaks onboarding for newDot. So we should either revert this or figure out a fix before it going to staging. Specifically i think this line change Tested only on mac OS chrome browser. Steps performed:
Expected Result: Actual Result:
Workaround:
|
|
Looks like this PR also broke back button in the onboarding modal and the create a workspace sidepanel. Discussing it here. Gonna revert the PR to unblock functionality for other devs. |
|
I'll investigate today why this might have happened. It's quite strange. |
|
🚀 Deployed to staging by https://github.com/Julesssss in version: 9.1.77-1 🚀
|
|
@sumo-slonik Seems like QA was not able to confirm this was fixed, can you please follow up? |
|
Ah it was reverted |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.77-2 🚀
|
|
I think the PR for this issue will fix this |

Explanation of Change
The function responsible for checking whether we should remove the screen and return to the OD was not working correctly because regular variables instead of state were being passed in the condition, which caused incorrect triggering the useEffect that it was using. Now, the condition has been moved into the body of the callback, ensuring that the check is performed correctly every time it is needed.
$ #65369
PROPOSAL:
Tests
Offline tests
Unnecessary
QA Steps
Same as test
// TODO: These must be filled out, or the issue title must include "[No QA]."
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
working.go.back_1.mp4
iOS: Native
Screen.Recording.2025-07-03.at.15.24.52.mov