Skip to content

[Due for payment 2026-10-30] Expense - Expense report opens after switching to table view and clicking expense preview #104654

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.5.16-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: #103703
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: Money Requests

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Create an expense.
  4. Open the report.
  5. Click More > Switch to table view.
  6. Close the report.
  7. Click on the expense preview.

Expected Result:

Transaction thread will open after switching to table view and clicking expense preview.

Actual Result:

Expense report opens after switching to table view and clicking expense preview.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7292556_1792615111213.10.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Svetlana Lazutkina
Bug ID: 7292556

Issue OwnerCurrent Issue Owner: @daledah

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Oct 21, 2026
  2. applause-bot commented on Oct 21, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/af329af1565465575caa3f4c3eed4b517cc5e63ecd029531bc9d2b344711866d

  3. melvin-bot commented on Oct 21, 2026

    @melvin-bot

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

  4. github-actions commented on Oct 21, 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.
  5. melvin-bot commented on Oct 21, 2026

    @melvin-bot

    @Beamanator @mountiny @lakchote @daledah you have been assigned to this deploy blocker because you reviewed the offending PR: #103703

  6. melvin-bot commented on Oct 21, 2026

    @melvin-bot

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

  7. MelvinBot commented on Oct 21, 2026

    @MelvinBot
    Contributor

    Deploy Blocker Analysis

    Causing PR: Reapply "Add a More menu option to switch single-expense reports between expense view and table view" (high confidence)

    Recommendation: Roll forward with a one-line fix. If the fix isn't merged before the deploy is ready, revert #103703.

    Root cause: When you tap the expense card in a single-expense report preview, the click handler always opens the report (MoneyRequestReportPreview/index.tsx:362-365). Before this PR, that was correct, because a single-expense report always showed its expense inline. The PR added table view, which shows the report as a table instead. It also turned off the expense-to-report redirect in table view. But it never updated this click handler, so the tap now opens the report as a table instead of opening the expense.

    Fix: In MoneyRequestReportPreview/index.tsx, skip the early return when table view is on:

    const {shouldUseTableViewForSingleExpense} = useSingleExpenseReportView(iouReportID);
    // ...
    if (transactions.length <= 1 && !shouldUseTableViewForSingleExpense) {
        openReportFromPreview();
        return;
    }
    // add shouldUseTableViewForSingleExpense to the useCallback deps

    In table view, the tap then works like it does on a report with several expenses and opens the expense. "Pay someone" reports still open the report, because useSingleExpenseReportView already leaves them out of table view.

    Investigation details

    view run

  8. m-natarajan commented on Oct 22, 2026

    @m-natarajan

    Chrome / v9.5.16-1
    No Switch to table view option

    bandicam.2026-10-22.16-07-53-401.1.mp4
  9. m-natarajan commented on Oct 22, 2026

    @m-natarajan

    Chrome / v9.5.16-1
    No Switch to table view option

    bandicam.2026-10-22.16-03-03-619.mp4
  10. Beamanator commented on Oct 22, 2026

    @Beamanator
    Contributor

    thanks! closing!

  11. changed the title [-]Expense - Expense report opens after switching to table view and clicking expense preview[/-] [+][Due for payment 2026-10-30] Expense - Expense report opens after switching to table view and clicking expense preview[/+] on Oct 23, 2026
  12. melvin-bot commented on Oct 23, 2026

    @melvin-bot

    @daledah

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.18-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-10-30. 🎊

    The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]

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

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2Engineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions