Skip to content

Reports - When To do section is hidden, Reports > Reports does not show all reports #86532

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.50-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: #86426
Email or phone of affected tester (no customers): usdiojsdoijsiodjidosjn@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.2 / Chrome
App Component: Search

Action Performed:

  1. Go to staging.new.expensify.com
  2. Log in with a new Gmail account.
  3. Click Skip on work email step.
  4. Select Track and budget expenses.
  5. Complete onboarding.
  6. Go to workspace settings > Workflows.
  7. Enable Approvals and Payments.
  8. Go to workspace chat.
  9. Create two reports with expense in outstanding state.
  10. Create a draft report with expense.
  11. Go to Home.
  12. Click Approve 2 reports.
  13. Go to Inbox, then go to Reports > Reports.
    → Only two reports are shown instead of three reports.
  14. Go to Reports > Expenses, then Reports > Reports.
    → Now it shows three reports.

Expected Result:

In Step 13, 3 reports should be displayed.

Actual Result:

In Step 13, only 2 reports are displayed.
In Step 13, it only shows 3 reports after switching to Expenses then Reports.

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: @dylanexpensify

Activity

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

    @melvin-bot

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

  3. melvin-bot commented on Mar 27, 2026

    @melvin-bot

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

  4. github-actions commented on Mar 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.
  5. MelvinBot commented on Mar 27, 2026

    @MelvinBot
    Contributor

    I have failed to help you. I let you down and for that I am sorry. Please try again later. This may be due to a Claude outage (check here).

    Failure details: https://github.com/Expensify/Expensify/actions/runs/23647259264

  6. OSBotify commented on Mar 27, 2026

    @OSBotify
    Contributor

    🔍 Investigation Summary

    Classification: Frontend bug
    Causing PR: #86426 - "Hide To-do section and Top Spenders for track-intent users on Reports page" by @MelvinBot (High confidence)
    Related Issues: None

    Recommendation: REVERT

    PR #86426 introduced logic to hide the To-do section for track-intent users (those who selected "Personal Spend" or "Track Workspace" during onboarding). When the To-do section is hidden, the Reports > Reports view fails to properly display all reports on initial navigation. The reports only appear after navigating to Reports > Expenses and back to Reports > Reports, suggesting a data loading or cache invalidation issue.

    Labels: Keeping DeployBlockerCash as this is a frontend bug in the App repository. The issue is not reproducible on production because this is a new feature that only exists on staging.

    📋 Detailed Analysis

    Evidence

    PR #86426 was merged on 2026-03-26 and is included in version 9.3.50-0 (the version where this bug was reported). The PR adds an isTrackIntentUser parameter that conditionally hides the To-do section when set to true.

    The bug report shows that after enabling Approvals and Payments, creating 3 reports, and clicking "Approve 2 reports", navigating to Reports > Reports only shows 2 reports initially. All 3 reports only appear after switching to the Expenses tab and back.

    Verification

    The PR modifies the following files:

    • src/hooks/useSearchTypeMenuSections.ts - Adds isTrackIntentUser detection based on NVP_INTRO_SELECTED
    • src/libs/SearchUIUtils.ts - Conditionally hides To-do section when isTrackIntentUser is true
    • Tests updated to pass isTrackIntentUser: false parameter

    The changes affect how menu sections are created and rendered on the Reports page. When the To-do section is hidden, there appears to be a side effect that prevents the Reports > Reports view from properly loading all report data on initial navigation.

    Root Cause

    The PR introduces conditional rendering of the To-do section based on user onboarding choice. This change appears to have unintended side effects on data loading or caching for the Reports view. When the To-do section is hidden, the Reports > Reports query may not be properly initializing or fetching all available reports on first navigation, but subsequent navigation through Expenses triggers the proper data load.

    This is a frontend issue because:

    1. The causing PR is in the App repository
    2. The fix requires reverting or modifying the App code
    3. No backend API changes are needed
    4. The issue is related to UI rendering and data fetching logic in the React Native app
  7. jayeshmangwani commented on Mar 27, 2026

    @jayeshmangwani
    Contributor

    @Beamanator This issue happens because, on the Home tab → For You section, the Begin button for Approve 2 reports redirects to Reports tab with query (search?q=type%3Aexpense-report%20action%3Aapprove%20to%3A21532028) showing only approvable reports.

    Since we’re hiding the To-do section for track-intent users, they can’t access To-do → Approve anymore.

    So instead, they land on Explore → Reports (as highlighted).

    What’s the expected behavior in this scenario?

    cc: @dylanexpensify

  8. dylanexpensify commented on Mar 27, 2026

    @dylanexpensify
    Contributor

    they land on Explore → Reports (as highlighted).

    For track updates this is correct, but only for track

  9. 8 remaining items

  10. melvin-bot commented on Mar 30, 2026

    @melvin-bot

    @dylanexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  11. melvin-bot commented on Mar 30, 2026

    @melvin-bot

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

  12. melvin-bot commented on Mar 30, 2026

    @melvin-bot

    @dylanexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  13. melvin-bot commented on Apr 1, 2026

    @melvin-bot

    @dylanexpensify Huh... This is 4 days overdue. Who can take care of this?

  14. dylanexpensify commented on Apr 2, 2026

    @dylanexpensify
    Contributor

    Pushing weekly as we work through the track pieces

  15. melvin-bot commented on Apr 10, 2026

    @melvin-bot

    @Beamanator @jayeshmangwani @dylanexpensify this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

  16. Beamanator commented on Apr 17, 2026

    @Beamanator
    Contributor

    @dylanexpensify should we close this?

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.EngineeringWeeklyKSv2

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions