Skip to content

[$125] Home - After deleting expense, app opens Inbox instead of staying on Home #83706

Closed

Description

@mitarachim

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.3.27-0
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #83019
Email or phone of affected tester (no customers): osidnjodjosijsoji@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.2 / Chrome
App Component: Money Requests

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Create an expense.
  4. Go to Home.
  5. Click Begin button on Submit 1 report row.
  6. Click More > Delete > Delete.

Expected Result:

App will stay on Home.

Actual Result:

App opens Inbox after deleting expense on Home.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

Bug7090167_1772206231834.3.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @mukhrr
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022027411209117472604
  • Upwork Job ID: 2027411209117472604
  • Last Price Increase: 2026-03-02

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    DeployBlocker
    on Feb 27, 2026
  2. melvin-bot commented on Feb 27, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #83019

  3. melvin-bot commented on Feb 27, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  4. melvin-bot commented on Feb 27, 2026

    @melvin-bot

    Triggered auto assignment to @CortneyOfstad (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  5. github-actions commented on Feb 27, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. OSBotify commented on Feb 27, 2026

    @OSBotify
    Contributor

    🔍 Investigation Summary

    Classification: Frontend bug
    Causing PR: #83019 - "fix Home page Begin button behavior" by @mukhrr (High confidence)
    Related Issues: #82102 (original feature request)

    Recommendation: REVERT

    PR #83019 introduced new navigation behavior where the "Begin" button on the Home page directly opens a report when there's only one report (instead of going to the search page). However, the deletion cleanup logic was not updated to handle this new navigation flow. After deleting an expense from a report opened this way, the app navigates to Inbox instead of staying on Home.

    Labels: Keeping DeployBlockerCash (App deploy is blocked). Removing DeployBlocker (this is a frontend-only issue, no backend changes needed).

    📋 Detailed Analysis

    Evidence

    The bug appears when:

    1. User is on Home page
    2. There is exactly 1 report to submit/approve/pay/export
    3. User clicks "Begin" button (which now opens the report directly via the new behavior)
    4. User deletes the expense
    5. Expected: Stay on Home page
    6. Actual: Navigate to Inbox

    This matches exactly with the new behavior introduced in PR #83019.

    Verification

    PR #83019 modified:

    • src/pages/home/ForYouSection/index.tsx - Added logic to detect single reports and navigate directly to them
    • src/selectors/Todos.ts - Added todosSingleReportIDsSelector to track when there's only one report

    The PR changed the navigation entry point but did not account for the return path after deletion.

    Root Cause

    When a report is opened via the new single-report flow from Home and an expense is deleted:

    1. The deletion logic in src/libs/actions/IOU/index.ts calls Navigation.goBack(urlToNavigateBack)
    2. In this scenario, urlToNavigateBack is undefined because the deletion logic doesn't recognize the new navigation pattern
    3. When urlToNavigateBack is undefined and shouldPopToSidebar is true (which happens on wide layouts), it calls popToSidebar()
    4. popToSidebar() navigates to the sidebar screen, which is SCREENS.INBOX for the Reports Split Navigator
    5. This causes the unexpected navigation to Inbox instead of staying on Home

    The fix would require updating the navigation logic to either:

    • Pass the proper backTo parameter when navigating from Home to the report
    • Update the deletion cleanup logic to detect and handle this navigation pattern
  7. 54 remaining items

  8. added
    Awaiting Payment
    on Apr 6, 2026
  9. melvin-bot commented on Apr 6, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  10. mallenexpensify commented on Apr 6, 2026

    @mallenexpensify
    Contributor
  11. added
    Daily
    and removed on Apr 6, 2026
  12. mukhrr commented on Apr 7, 2026

    @mukhrr
    Contributor

    @mallenexpensify

    #82102, #83706 are due to payment.

    #86533 was not regression, pls see #86533 (comment)

  13. mallenexpensify commented on Apr 7, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor: @mukhrr paid $125 via Upwork
    Contributor+: @truph01 due $125 via NewDot

    @mukhrr can you please accept the job below? Please reply here and tag me once you have.
    https://www.upwork.com/jobs/~022027411209117472604

    @mukhrr Was this the parent issues that all regression came from?
    #83019

    @mukhrr can you answer the above? It's past the regression period, so payment wouldn't be reduced here.

    @truph01 plz complete the BZ checklist and tag me in a post once you have. Thx

  14. mukhrr commented on Apr 7, 2026

    @mukhrr
    Contributor

    @mallenexpensify i accepted it.

  15. mukhrr commented on Apr 7, 2026

    @mukhrr
    Contributor

    can you answer the above? It's past the regression period, so payment wouldn't be reduced here.

    @mallenexpensify i meant there has not been any regression from that PR/issue

  16. mallenexpensify commented on Apr 7, 2026

    @mallenexpensify
    Contributor

    @mukhrr paid, summary updated above. Thx.

  17. truph01 commented on May 5, 2026

    @truph01
    Contributor

    The BZ checklist is in parent issue #82102 (comment)

  18. garrettmknight commented on May 10, 2026

    @garrettmknight
    Contributor

    $125 approved for @truph01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineeringExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions