Fix unresponsive LHN report tap after returning to Inbox from a Settings RHP - #100167
Conversation
|
@FitseTLT @robertjchen @grgia 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] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridApp2026-09-03.19-44-04.mp4Android: mWeb Chrome2026-09-03.19-46-51.mp4iOS: HybridApp2026-09-03.20-49-38.mp4iOS: mWeb Safari2026-09-03.19-48-57.mp4MacOS: Chrome / Safari2026-09-03.19-39-34.mp4 |
|
🚧 Gonals has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/Gonals in version: 9.4.73-0 🚀
|
|
🤖 No help site changes are required for this PR, so I did not create a draft docs PR. This is an internal navigation-guard fix. It changes nothing a help site article documents:
Bug fixes that return the product to its documented behavior do not need a docs update. If you would still like an article change — for example a troubleshooting note about archived chats — tell me which article and I will open the draft PR. @fedirjh, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.4.73-3 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
On narrow layouts, tapping an archived chat—or any report—in the LHN could fail to navigate.
showReportPagetreated a report matchingNavigation.getTopmostReportId()orisActiveReport()as already open and blocked the navigation.However, the LHN is displayed on the Inbox screen on narrow layouts, where no report is currently visible.
getTopmostReportId()usesfindLast(SCREEN.REPORT)to resolve a report from the reports split stack, so it can return a report left behind in that stack.For example, this can happen after opening a report, navigating to a Settings RHP through the “add address” prompt, and returning to Inbox. The stale report was incorrectly considered active, making its LHN row appear unresponsive. The same report remained accessible through Search because Search follows a different navigation path.
The updated guard now behaves as follows:
Because
isActiveReportno longer affects this decision, the unused prop and its supporting callback were removed fromSidebarLinksandSidebarLinksData. getTopmostReportId()itself remains unchanged because it has more than 20 other consumers.Fixed Issues
$ #99731
PROPOSAL:
Tests
Offline tests
Same as tests — navigation behavior is client-side and unaffected by network state.
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, 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.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
iOS: Native
CleanShot.2026-09-02.at.13.17.13.mp4