Skip to content

[Due for payment 2026-09-18] [Performance] Investigate optimizations for the Search filters popover #97455

Closed

Description

@MelvinBot

Problem

The filters popover on the Spend page has regressed in performance. Switching
between filters lags noticeably — moving the cursor quickly between filters no
longer keeps up, and it's slow to catch up to where the cursor is. On a small,
recently-onboarded account this shows as lag; on a large account the popover can
freeze and the page crashes.

This feels like a performance regression from previous behavior.

Investigation scope

Investigate possible optimizations in the Search filter popovers, including:

  • Why switching between filters lags — unnecessary re-renders, heavy recomputation,
    or expensive list rendering when the popover updates.
  • Some filters call read API commands to pull extra data. Flipping through filters
    quickly may fire these repeatedly and contribute to the slowness — check for
    redundant/uncancelled requests and whether results can be cached or debounced.
  • Whether the popover work scales poorly with account size (report/expense volume).

Notes

Reported in Slack.

Issue OwnerCurrent Issue Owner: @mallenexpensify

Activity

  1. added
    Bug
    on Jul 30, 2026
  2. added
    Hot Pick
    on Jul 30, 2026
  3. removed
    Hot Pick
    on Jul 30, 2026
  4. self-assigned this
    on Aug 3, 2026
  5. melvin-bot commented on Aug 6, 2026

    @melvin-bot

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

  6. melvin-bot commented on Aug 10, 2026

    @melvin-bot

    @sumo-slonik 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

  7. melvin-bot commented on Aug 12, 2026

    @melvin-bot

    @sumo-slonik Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!

  8. melvin-bot commented on Aug 13, 2026

    @melvin-bot

    @mountiny @sumo-slonik 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!

  9. 17 remaining items

  10. added
    Awaiting Payment
    on Sep 17, 2026
  11. melvin-bot commented on Sep 17, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  12. melvin-bot commented on Sep 17, 2026

    @melvin-bot

    Payment Summary

    Resolving PRs:

    BugZero Checklist (@mallenexpensify)

    • I have confirmed assignees, roles, and Upwork contracts look correct
    • I have paid out Upwork contracts / manual NewDot requests
    • [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon
  13. truph01 commented on Sep 21, 2026

    @truph01
    Contributor

    Contributor+ Checklist:

    • [Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.

      Link to the comment on the PR:
      Link to the comment on the Issue:

    • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.

      Link to discussion:

    • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

    Regression Test Proposal

    Precondition:

    Test:

    1. Open the advanced filters popover on the Reports page (the Filters button next to the search field) on web with a wide layout.
    2. Quickly sweep the cursor up and down the filter list without stopping, and verify each row's content appears as the cursor reaches it, the people filters (From, To, Attendee, Assignee) show a spinner rather than a contact list, and the popover does not freeze.
    3. Rest the cursor on From and verify its contact list appears right after the cursor stops.
    4. Type a few characters into the search input of the From pane, hover over To, then move back to From, and verify the From pane shows up instantly (no spinner) with the search input empty and the whole contact list back.
    5. Select one or two users in the From pane and verify the selection is applied to the search query, and that the rows stay where they are rather than jumping to the top under the cursor.
    6. Hover over To, move back to From, and verify the pane is rebuilt with the users selected in step 5 now at the top of the list.
    7. Close the popover, reopen it and hover over From again, and verify the list is correct and reflects the selection made in step 5.
    8. Walk the filter list with the keyboard (Tab / arrow keys) and verify the content pane follows the focused row with no spinner, since focus never passes over rows on the way.
    9. Scroll down the Category list (or any other filter with a long list), hover over another filter, then move back to it, and verify the list comes back at the top, with rows drawn rather than a blank area.
    10. Repeat steps 4 and 9 on Workspace (and on Card or Bank account if the account has them), which are built on a different list component, and verify they behave the same.

    Do we agree 👍 or 👎

  14. mallenexpensify commented on Sep 22, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @truph01 due $250 via NewDot
    Contributor+: @mkhutornyi due $250 via NewDot

  15. mkhutornyi commented on Sep 22, 2026

    @mkhutornyi

    @mallenexpensify I also reviewed linked PR as requested

  16. mallenexpensify commented on Sep 22, 2026

    @mallenexpensify
    Contributor

    @mkhutornyi paid, summary updated above. Thx.

    Main reason I missed was cuz i didn't see a reviewers checklist. Thx for the ping

  17. trjExpensify commented on Oct 1, 2026

    @trjExpensify
    Contributor

    approved $250 for @mkhutornyi

  18. garrettmknight commented on Nov 14, 2026

    @garrettmknight
    Contributor

    $250 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 PaymentBugDaily

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions