Skip to content

[Payment due 2026-03-06] [$250] Reports - Current account does not appear in search result when searched with You or Me #83252

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.25-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #82490
Email or phone of affected tester (no customers): applausetester+abbbs40942@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Pull Request QA execution
Device used: Mac 26.2 / Chrome
App Component: Search

Action Performed:

Precondition:

  • Account has at least 12 contacts.
  1. Go to staging.new.expensify.com
  2. Go to Reports > Expenses.
  3. Open From quick filter.
  4. Type You or Me in the search field.

Expected Result:

Current account will show up at the top of the results.

Actual Result:

Current account does not appear in search result when searched with You or Me.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Bug7086424_1771884486879.6.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022026062143608683965
  • Upwork Job ID: 2026062143608683965
  • Last Price Increase: 2026-02-23

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    DeployBlockerIndicates it should block deploying the API
    on Feb 23, 2026
  2. melvin-bot commented on Feb 23, 2026

    @melvin-bot

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

  3. melvin-bot commented on Feb 23, 2026

    @melvin-bot

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

  4. melvin-bot commented on Feb 23, 2026

    @melvin-bot

    Triggered auto assignment to @heyjennahay (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 23, 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 23, 2026

    @OSBotify
    Contributor

    🔍 Investigation Summary

    Classification: Frontend bug
    Causing PR: #82490 - "Migrated UserSelectPopup.tsx from useOptionsList to usePersonalDetailOptions" by @shubham1206agra (High confidence)
    Related Issues: None

    Recommendation: REVERT

    This PR introduced a regression by migrating to a new search utility that lacks support for "You" and "Me" search keywords for the current user.

    Labels: DeployBlockerCash label should remain (this is a Frontend bug blocking App deploy). DeployBlocker label should be removed (this does not block backend deploy).

    📋 Detailed Analysis

    Evidence

    PR #82490 migrated UserSelectPopup.tsx from using useOptionsList (backed by OptionsListUtils) to usePersonalDetailOptions (backed by the new PersonalDetailOptionsListUtils). This migration was intended as a performance optimization to eliminate unnecessary background recalculations.

    The issue reproduces:

    Verification

    The PR modifies the following key files:

    • src/components/Search/FilterDropdowns/UserSelectPopup.tsx - Changed from useOptionsList to usePersonalDetailOptions
    • src/libs/PersonalDetailOptionsListUtils/index.ts - New utility created for filtering personal details
    • src/hooks/usePersonalDetailOptions.ts - New hook created

    I confirmed that:

    1. The PR modifies the exact component mentioned in the bug report (UserSelectPopup)
    2. The PR merged on 2026-02-23 at 13:50:15Z, shortly before the bug was reported
    3. The bug only appears in staging where this PR is deployed

    Root Cause

    The old OptionsListUtils includes a getCurrentUserSearchTerms function that adds special search keywords for the current user:

    // src/libs/OptionsListUtils/index.ts:2867-2870
    function getCurrentUserSearchTerms(item: Partial<SearchOptionData>) {
        return [item.text ?? item.displayName ?? "", item.login ?? "", item.login?.replace(CONST.EMAIL_SEARCH_REGEX, "") ?? "", translateLocal("common.you"), translateLocal("common.me")];
    }

    The new PersonalDetailOptionsListUtils has a simpler matchesSearchTerms function that only searches against text and login:

    // src/libs/PersonalDetailOptionsListUtils/index.ts:181-184
    function matchesSearchTerms(option: OptionData, searchTerms: string[]): boolean {
        const searchText = deburr(`${option.text} ${option.login ?? ""}`.toLocaleLowerCase());
        return searchTerms.every((term) => searchText.includes(term));
    }

    The keywords "You" and "Me" are not included in the search text for the current user, causing searches for these terms to fail when looking for the current user account.

  7. 24 remaining items

  8. hungvu193 commented on Feb 25, 2026

    @hungvu193
    Contributor

    @mountiny Can you reopen for payment since I reviewed the PR?

  9. added
    Awaiting PaymentAuto-added when associated PR is deployed to production
    and removed
    ReviewingHas a PR in review
    on Feb 25, 2026
  10. hungvu193 commented on Mar 6, 2026

    @hungvu193
    Contributor

    @heyjennahay Can you handle the payment here? The automation was failed

  11. changed the title [-][$250] Reports - Current account does not appear in search result when searched with You or Me[/-] [+][Payment due 2026-03-06] [$250] Reports - Current account does not appear in search result when searched with You or Me[/+] on Mar 6, 2026
  12. heyjennahay commented on Mar 6, 2026

    @heyjennahay
    Contributor

    Sure thing!

    Payment summary:

    • @hungvu193 please request $250 payment via NewDot.

    Thanks for your work!

  13. twisterdotcom commented on Mar 10, 2026

    @twisterdotcom
    Contributor

    @hungvu193 has submitted payment for this report on ND here.

    SO: https://stackoverflowteams.com/c/expensify/questions/7582

    Zapier Logs Run ID: 00040eee-4f99-a13a-935e-95efe613b2e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions