Skip to content

[Due for payment 2026-07-08] Add Bank account to filters in Search #88385

Closed

Description

@heyjennahay

Problem

We have multiple Expensify Card feeds that settle from different bank accounts.

When trying to reconcile the settlements, all Expensify Card settlements are returned making it hard to reconcile a single bank account.

Solution

Add Bank account as a filter option in Search (it already exists as a column option)

Image
Issue OwnerCurrent Issue Owner: @JS00001

Activity

  1. added
    Weekly
    Improvement
    on Apr 21, 2026
  2. JS00001 commented on Apr 30, 2026

    @JS00001
    Contributor

    Haven't gotten to this one yet

  3. JS00001 commented on May 11, 2026

    @JS00001
    Contributor

    Same, I'll try to get a BE contributor on this one

  4. JS00001 commented on May 11, 2026

    @JS00001
    Contributor

    Implementation details:
    We need to support passing a bankAccountID in the jsonQuery filters AST under the key bankAccount. This will consist of a FE and BE change. This filter will only be available for expenses

  5. JS00001 commented on May 11, 2026

    @JS00001
    Contributor

    Pinged in slack

  6. self-assigned this
    on May 11, 2026
  7. allgandalf commented on May 11, 2026

    @allgandalf
    Contributor

    Sounds interesting, picking this up

  8. added
    Daily
    and removed
    Weekly
    on May 13, 2026
  9. 27 remaining items

  10. added
    Weekly
    and removed
    Daily
    on Jul 6, 2026
  11. Eskalifer1 commented on Jul 7, 2026

    @Eskalifer1
    Contributor

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

      N/A - New feature

    • [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: N/A

    • [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 Template

    Regression Test Proposal

    Precondition:

    • A workspace with ACH reimbursement enabled
    • Two validated withdrawal bank accounts on the workspace (admin)
    • An employee on the policy with a validated deposit bank account so reimbursements can settle to them, otherwise the filter has nothing to match
    • At least one expense report submitted, approved, and paid via bank A and another paid via bank B. Use the Pay via bank account button on the report header to actually settle each reimbursement

    Test:

    1. Sign in as the admin
    2. Go to Search and pick the Expenses type
    3. Tap Filters and confirm a "Bank account" row is shown in the advanced filters list
    4. Open the row, confirm each bank account is shown as ${bankName} xx${last4} with the bank icon
    5. Select bank A, save, confirm only the bank-A-paid expenses are returned
    6. Open the filter, multi-select bank A and bank B, save, confirm both sets are returned and the chip shows both labels comma-separated
    7. Type bank-account: in the autocomplete bar and confirm the user-friendly suggestions appear, alphabetically sorted
    8. Switch the Search type to Chat or Trip and confirm the "Bank account" row no longer shows
    9. As an account with no bank accounts visible, confirm the row does not show even on expense type

    Do we agree 👍 or 👎

    Zapier Logs Run ID: 00040eee-58ef-a314-24ab-19e8b3a18b24
  12. Eskalifer1 commented on Jul 7, 2026

    @Eskalifer1
    Contributor

    💰 Price Increase Checklist


    💵 Proposed amount to increase the price to

    N/A — I'll let the CME determine an appropriate amount based on the scope and impact of this work.


    📊 Size

    • 📄 40 files changed
    • 🔀 146 commits (128 excluding merges from main)
    • ➕ 1,891 insertions
    • ➖ 1,194 deletions
    • 🧪 10+ review rounds

    The scope itself never expanded beyond the original issue — the boundaries were clear from the start and didn't change during implementation. However, the initial scope was already large: wiring a brand-new filter through every layer of the Search stack is inherently a big lift, which is reflected in the file/commit counts above.


    🧪 Extensive testing

    Unlike most Search filters (which use a static set of predefined values), this PR introduces a dynamic filter whose available options depend on each user's workspace configuration.

    Because the filter depends on real account state rather than a hardcoded list of values, validating it was significantly more complex than testing a typical Search filter.

    As a result, this PR went through 10+ review rounds, with each round requiring end-to-end verification


    ✅ No regressions

    Despite the size and complexity of the changes—which touched the shared Search parsing, autocomplete, query infrastructure and a lot of bank specific logic — this PR introduced no regressions across the existing Search filter set.

    The only issue discovered during review was a highly specific edge case that we collectively agreed did not qualify as a regression.

  13. added
    Daily
    Awaiting Payment
    and removed
    Weekly
    on Jul 7, 2026
  14. melvin-bot commented on Jul 7, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  15. melvin-bot commented on Jul 7, 2026

    @melvin-bot

    Payment Summary

    Upwork Job

    • ROLE: @Eskalifer1 paid $(AMOUNT) via Upwork (LINK)
    • Contributor: @allgandalf does not require payment (Contractor)

    BugZero Checklist (@mallenexpensify)

    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  16. mallenexpensify commented on Jul 9, 2026

    @mallenexpensify
    Contributor

    @JS00001 👀 please on the price increase request above

    ^ Test case created. Thx

    @Eskalifer1 can you please accept the job below? Please reply here and tag me once you have.
    https://www.upwork.com/jobs/~022075271705237201718

  17. removed
    Reviewing
    on Jul 9, 2026
  18. JS00001 commented on Jul 9, 2026

    @JS00001
    Contributor

    Lets increase this one from 250 to $500, I agree an increase is fair here

  19. mallenexpensify commented on Jul 9, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @Eskalifer1 paid $500 via Upwork

    Thx

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

Metadata

Metadata

Labels

Awaiting PaymentDailyImprovement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions