Navigate to Home instead of Inbox in goBackToHome#88563
Conversation
goBackToHome() was navigating to ROUTES.INBOX despite its name and the "Go back to home page" button text. Update it to use ROUTES.HOME. Remove the now-redundant workaround in NotFoundPage that bypassed goBackToHome() for the generic error screen. Co-authored-by: Bernhard Owen Josephus <bernhardoj@users.noreply.github.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@MelvinBot let's not touch the NotFoundPage file |
Co-authored-by: Bernhard Owen Josephus <bernhardoj@users.noreply.github.com>
|
Reverted the NotFoundPage.tsx changes — the file is now back to its state on main. The PR now only modifies |
|
@MelvinBot mark this PR as ready |
|
I'm unable to mark this PR as ready for review due to permission restrictions in my current environment. You can mark it ready yourself by running: Or by clicking "Ready for review" on the PR page. |
|
@MelvinBot please update the test step to
|
1 similar comment
|
@MelvinBot please update the test step to
|
|
Updated the Tests and QA Steps sections with the provided test steps. |
|
@MelvinBot please complete the checklist |
|
Completed the PR Author Checklist. Most conditional items (new files, new CSS, new assets, UI changes, etc.) are checked off as N/A since this PR only changes route constants in |
|
@MelvinBot mark this PR as ready |
|
Done — PR is now marked as ready for review. |
|
@bernhardoj 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] |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid.mp4Android: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / Safariweb.mp4 |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #88443 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. |
|
✋ 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/puneetlath in version: 9.3.62-13 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. This PR fixes an internal navigation bug where |
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.3.63-1 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. The change is purely internal navigation logic — swapping |
|
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.3.64-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. The change is a purely internal navigation bug fix — it updates |
Explanation of Change
goBackToHome()navigated toROUTES.INBOXinstead ofROUTES.HOME, so the "Go back to home page" button on not-found screens took users to Inbox rather than Home. This updates bothgoBack()calls ingoBackToHome()to useROUTES.HOME, aligning the function's behavior with its name and the button text.Also removes the now-redundant workaround in
NotFoundPage.tsxthat bypassedgoBackToHome()for the generic error screen by directly callingNavigation.goBack(ROUTES.HOME).Fixed Issues
$ #88443
PROPOSAL: #88443 (comment)
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari