fix: prevent navigation logic when screen isn't focused#81673
fix: prevent navigation logic when screen isn't focused#81673mjasikowski merged 12 commits intoExpensify:mainfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 851ca04e17
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
@truph01 could you please take a look? The lint check failed. Also, what do you think about the AI comment? |
|
@truph01 gentle bump |
|
On it now |
|
thanks |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@huult I updated PR to fix the unit test |
JmillsExpensify
left a comment
There was a problem hiding this comment.
No product review required.
|
@truph01 Please update the test steps into a checklist! |
src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx
Outdated
Show resolved
Hide resolved
|
@truph01 If possible, could you take a look at the AI comment and either reply to it or resolve it? |
|
@truph01 Thanks, I’ll take a look tomorrow. |
Screen.Recording.2026-02-24.at.13.00.24.movBug: When we toggle online mode on, the screen under the debug tool modal redirects to the method detail page. |
|
@truph01 gentle bump! |
|
@truph01 bump |
@huult I believe this behavior is currently expected, but could you please clarify what the intended behavior should be? When online mode is toggled on, the magic code is sent to the backend for validation. Once the backend responds confirming the code is valid, the contact method detail page is displayed. |
|
@truph01 I think we need to ask @JmillsExpensify to confirm, because this seems a bit weird. @JmillsExpensify #81673 (comment) #81673 (comment) Could you check this video? At 1:06, when we toggle back to online mode, the page underneath the Troubleshoot modal appear to the contact details screen. After we close the Troubleshoot modal, it then appear to the contact list. Do you agree that this is the expected behavior? |
@huult Just a clarification: this is not a “redirect.” action. The contact method screen conditionally renders So there is no navigation change occurring here. The underlying route remains the same—the visible UI changes because the validation state changes, which determines which component is rendered. |
|
@truph01 I’ve updated the comment |
Good call out. I agree that doesn't really feel like expected behavior. I would have expected that we stay on the magic code step. |
|
@JmillsExpensify Could you check this comment, it explains why the magic code disappears |
|
Ah thank you, I missed that explanation. Ok, I think that's reasonable. Let's not hold this PR up based on this consideration. |
|
@truph01 Please add a comment to explain why ESLint needs to be disabled. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-03-05.at.16.03.44.mp4Android: mWeb ChromeScreen.Recording.2026-03-05.at.16.07.34.mp4iOS: HybridAppScreen.Recording.2026-03-05.at.16.10.51.mp4iOS: mWeb SafariScreen.Recording.2026-03-05.at.16.13.19.mp4MacOS: Chrome / SafariScreen.Recording.2026-03-05.at.15.56.33.mp4 |
|
#81673 (comment) @truph01 Please add a comment so I can approve this PR. |
|
@huult I just added comment |
|
🚧 @mjasikowski 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, and Web. Happy testing! 🧪🧪
|
|
✋ 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/mjasikowski in version: 9.3.34-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.34-2 🚀
|
Explanation of Change
Fixed Issues
$ #81043
PROPOSAL: #81043 (comment)
Tests
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as tests
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))npm run compress-svg)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.2026-02-06.at.19.13.05.mov
Android: mWeb Chrome
Screen.Recording.2026-02-06.at.19.11.17.mov
iOS: Native
Screen.Recording.2026-02-06.at.19.08.55.mov
iOS: mWeb Safari
Screen.Recording.2026-02-06.at.19.06.47.mov
MacOS: Chrome / Safari
Screen.Recording.2026-02-06.at.18.59.14.mov