Fix Expensify logo navigating to Inbox instead of Home#82830
Conversation
The Expensify logo button in the wide layout NavigationTabBar had its onPress handler set to navigateToChats (which navigates to Inbox) instead of navigateToNewDotHome (which navigates to Home). This was left over from before the Home page was introduced, when "HOME" was the chat/inbox screen. Co-authored-by: Vinh Hoang <hoangzinh@users.noreply.github.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@MelvinBot make the PR ready for review |
|
@hoangzinh Please 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] |
|
PR has been marked as ready for review. All CI checks are passing ✅ |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-02-19.at.11.13.26.movAndroid: mWeb ChromeScreen.Recording.2026-02-19.at.10.34.37.moviOS: HybridAppScreen.Recording.2026-02-19.at.11.09.35.i.moviOS: mWeb SafariScreen.Recording.2026-02-19.at.11.10.02.is.movMacOS: Chrome / SafariScreen.Recording.2026-02-19.at.10.32.56x.mov |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #82780 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
🚧 @puneetlath 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/puneetlath in version: 9.3.25-0 🚀
|
Explanation of Change
The Expensify logo button in the wide-layout sidebar (
ExpensifyLogoButton) was navigating to Inbox instead of Home when clicked. This happened because the logo'sonPresswas set tonavigateToChats(which goes toROUTES.INBOX) rather thannavigateToNewDotHome(which goes toROUTES.HOME).This was a leftover from before the Home page was introduced (PR #80504), when "HOME" was the chat/inbox screen. After the rename, the logo's handler was never updated.
The fix changes the logo's
onPressfromnavigateToChatstonavigateToNewDotHome.Fixed Issues
$ #82780
PROPOSAL: #82780 (comment)
Tests
Offline tests
This change only affects navigation routing on press. Offline behavior is not impacted — the navigation function (
navigateToNewDotHome) handles navigation the same way regardless of network state.QA Steps
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
N/A - This is a wide-layout only change (logo button only exists in desktop/web layout)
Android: mWeb Chrome
N/A - This is a wide-layout only change
iOS: Native
N/A - This is a wide-layout only change
iOS: mWeb Safari
N/A - This is a wide-layout only change
MacOS: Chrome / Safari
N/A - Draft PR, screenshots to be added during review