Skip to content

Expense - Confirm page loads infinitely after switching from Scan to Manual tab #90648

Closed

Description

@jponikarchuk

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.74-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: #87920
Email or phone of affected tester (no customers): sdsdjoijdoisnjodis@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:

Precondition:

  • Run Onyx.merge('betas', ['newManualExpenseFlow']); in console.
  1. Go to staging.new.expensify.com
  2. Create a new account.
  3. Create a new workspace.
  4. Open FAB > Create expense.
  5. Switch to Manual tab.

Expected Result:

Confirm page will not load infinitely.

Actual Result:

Confirm page loads infinitely after switching from Scan to Manual tab.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Video.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @thelullabyy

Activity

  1. added
    DeployBlockerCash
    on May 14, 2026
  2. added
    Bug
    on May 14, 2026
  3. melvin-bot commented on May 14, 2026

    @melvin-bot

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

  4. melvin-bot commented on May 14, 2026

    @melvin-bot

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

  5. github-actions commented on May 14, 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 May 14, 2026

    @OSBotify
    Contributor

    Investigation Summary

    Classification: Frontend bug
    Causing PR: #87920 - "Feat: Manual expense flow UI refactor - r3" by @ChavdaSachin (High confidence)
    Related Issues: None

    Recommendation: REVERT

    PR #87920 introduced the new manual expense flow (newManualExpenseFlow beta). The confirm page loading infinitely is a direct regression from this PR's changes, and reverting it is the cleanest path to unblocking the deploy.

    Assigned: @ChavdaSachin (PR author), @ShridharGoel @puneetlath (approving reviewers)
    Labels: DeployBlockerCash kept (Frontend bug in App). No label changes made.

    Detailed Analysis

    Evidence

    • The bug is only reproducible on staging (new feature, not in production), which matches PR Feat: Manual expense flow UI refactor - r3 #87920 being in the current staging deploy (StagingDeployCash checklist PR Deploy Checklist: New Expensify 2026-05-13 #90562).
    • The bug requires the newManualExpenseFlow beta flag to reproduce, which is the exact feature this PR implements.
    • The melvin-bot already linked this PR to the issue.
    • The PR was merged on 2026-05-13 and is listed in the staging deploy checklist.

    Verification

    • Affected files: src/pages/iou/request/step/IOURequestStepConfirmation.tsx and src/pages/iou/request/IOURequestStartPage.tsx — both are listed in the PR's changed files.
    • Key change in PR: When the newManualExpenseFlow beta is enabled, IOURequestStepConfirmation is now embedded directly inside the Manual tab of IOURequestStartPage (lines 251-256 of IOURequestStartPage.tsx).

    Root Cause

    In IOURequestStepConfirmation.tsx at line 757, there is a condition that renders a FullScreenLoadingIndicator:

    {(isLoading || (isScanRequest(transaction) && !Object.values(receiptFiles).length)) && (
        <FullScreenLoadingIndicator ... />
    )}
    

    When the user starts on the Scan tab, the draft transaction's iouRequestType is set to CONST.IOU.REQUEST_TYPE.SCAN. When they switch to the Manual tab, IOURequestStepConfirmation is rendered (because of the new embedded flow), but:

    1. isScanRequest(transaction) returns true because the transaction's iouRequestType is still SCAN — initMoneyRequest (called via resetIOUTypeIfChanged in useResetIOUType) is triggered asynchronously via Onyx and may not have updated yet, or does not update the embedded component's transaction reference in time.
    2. Object.values(receiptFiles).length is 0 because no receipt has been provided in the manual flow.

    The combination causes the loading indicator to show indefinitely. In the original (non-embedded) confirmation flow this was not an issue because the confirmation page was never reached with a SCAN request type and no receipt. The new embedded architecture in PR #87920 created this edge case.

  7. ShridharGoel commented on May 14, 2026

    @ShridharGoel
    Contributor

    This is a known bug and is behind beta.

  8. MelvinBot commented on May 14, 2026

    @MelvinBot
    Contributor

    ⏱️ Ran out of time before I could finish. This usually means the task was too complex or I got stuck exploring. Please try again with a more specific request or post in #melvinbot-ai.

    Run details

  9. melvin-bot commented on May 14, 2026

    @melvin-bot

    ⚠️ Looks like this issue was linked to a Deploy Blocker here

    If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

    If a regression has occurred and you are the assigned CM follow the instructions here.

    If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

  10. 13 remaining items

  11. melvin-bot commented on May 29, 2026

    @melvin-bot

    @thelullabyy Whoops! This issue is 2 days overdue. Let's get this updated quick!

  12. melvin-bot commented on Jun 2, 2026

    @melvin-bot

    @thelullabyy Still overdue 6 days?! Let's take care of this!

  13. jponikarchuk commented on Jun 3, 2026

    @jponikarchuk
    Author

    Deploy Blocker #92508 was identified to be related to the PR #91218 that attempted to fix this issue.

  14. melvin-bot commented on Jun 4, 2026

    @melvin-bot

    @thelullabyy 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

  15. dukenv0307 commented on Jun 5, 2026

    @dukenv0307
    Contributor

    @thelullabyy can you create the PR for this issue? I don't have enough effort to do

  16. thelullabyy commented on Jun 5, 2026

    @thelullabyy
    Contributor

    Checking...

  17. thelullabyy commented on Jun 8, 2026

    @thelullabyy
    Contributor

    @jponikarchuk Could you please re-verify this bug. It is not reproducible on my end anymore

  18. trjExpensify commented on Jun 8, 2026

    @trjExpensify
    Contributor

    #92545 - was it not fixed by this?

  19. thelullabyy commented on Jun 9, 2026

    @thelullabyy
    Contributor

    @trjExpensify no, it is for fixing another issue

  20. trjExpensify commented on Jun 9, 2026

    @trjExpensify
    Contributor

    Interesting... I can't seem to repro. I'll ping QA.

  21. m-natarajan commented on Jun 9, 2026

    @m-natarajan

    Unable to reproduce in Mac 15.4.1 Safari, Win 11 Chrome v9.4.1-2

    Recording.2330.mp4
    Recording.2979.mp4
  22. trjExpensify commented on Jun 9, 2026

    @trjExpensify
    Contributor

    Niceeee... let's close it then!

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

Metadata

Metadata

Labels

BugDailyEngineeringReviewing

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions