Skip to content

[Due for payment 2026-09-01] Include domain/workspace in card feed names in the Spend page feed filter #97279

Closed

Description

@melvin-bot

Problem
For customers with multiple card feeds of the same type, the feed names shown in the feed filter on the Spend page are not differentiated. Because same-type feeds share an identical generic name, there's no way to tell them apart when filtering spend.

Feature request
Always include the domain/workspace in the feed name in the Spend page feed filter. This way feeds of the same type can be distinguished at a glance, and naming stays consistent across all feeds.

  • For domain-level feeds, show the domain name.
  • For workspace-level feeds, show the workspace where the feed was originally configured, even if the feed is shared to multiple workspaces.

Scope / clarification
This is specifically about the feed filter on the Spend page, not the card feed selector inside a workspace. (Related-but-distinct workspace feed-selector work: #95206, #93925.)

Image

Reported in [Slack](https://expensify.slack.com/archives/C03U7DCU4/p1785262644930389).

Upwork Automation - Do Not Edit
Issue OwnerCurrent Issue Owner: @marcaaron

Activity

  1. added
    Daily
    NewFeature
    on Jul 28, 2026
  2. melvin-bot commented on Jul 29, 2026

    @melvin-bot
    Author

    Triggered auto assignment to Design team member for new feature review - @dubielzyk-expensify (NewFeature)

  3. joekaufmanexpensify commented on Jul 29, 2026

    @joekaufmanexpensify
    Contributor

    @dubielzyk-expensify for supporting text, I'm thinking it'll look like something similar to what we use for the card filter (minus the avatar). Curious if you agree?

    Image
  4. dubielzyk-expensify commented on Jul 30, 2026

    @dubielzyk-expensify
    Contributor

    Yeah that looks right to me. We don't have the avatar to space out so it might look tight, but let's start with that and see how it looks 👍

  5. dubielzyk-expensify commented on Jul 30, 2026

    @dubielzyk-expensify
    Contributor

    So I believe it'll look like this:

    Image

    It does look quite spaced out, but that's our standard padding so let's roll with using a pre-existing pattern and adjust from there if we need

  6. joekaufmanexpensify commented on Jul 30, 2026

    @joekaufmanexpensify
    Contributor

    Cool, works for me!

  7. joekaufmanexpensify commented on Jul 30, 2026

    @joekaufmanexpensify
    Contributor

    Added the mockup to OP.

  8. joekaufmanexpensify commented on Jul 30, 2026

    @joekaufmanexpensify
    Contributor

    @MelvinBot could you please draft a proposal for this issue following our standard proposal guidelines?

  9. MelvinBot commented on Jul 30, 2026

    @MelvinBot
    Contributor

    Proposal

    What is the root cause of that problem?

    The feed names in the Spend page feed filter are derived only from the feed's custom nickname or its generic bank/card-type label — never from the domain or workspace it belongs to.

    The filter's options are built in getFeedOptions, which sets each option's visible text to cardFeed.name. That name comes from getCardFeedsForDisplay, which computes it via getCustomOrFormattedFeedName → nickname || getBankName(feed) (e.g. "Visa", "Amex").

    So two feeds of the same type with no custom nickname both resolve to the identical string (they differ only by their internal id, ${fundID}_${feed}), leaving no way to tell them apart in the filter.

    What changes do you think we should make in order to solve the problem?

    Show the domain (domain-level feeds) or the originally-configured workspace (workspace-level feeds) as secondary/supporting text beneath the feed name — the same pattern the workspace company-card feed selector already uses. The building blocks all exist:

    1. Enrich the filter option data. In getCardFeedsForDisplay, for each feed resolve its subtitle and carry it on the returned object:

      • Domain-level feed: look up the domain via getDomainByFundID and use Str.extractEmailDomain(domain.email).
      • Workspace-level feed: use the workspace where the feed was originally configured (settings.preferredPolicy) via getLinkedPolicyName — this correctly resolves the origin workspace even when the feed is shared to multiple workspaces.

      This mirrors exactly what useOtherFeedsForFeedSelector already does: alternateText: domainName ?? policyName.

    2. Render the secondary line. The Spend filter uses MultiSelectItem, which today has no subtitle/alternateText slot. Add an optional alternateText to MultiSelectItem and render it in MultiSelectListItem (matching the mockup — feed name on top, domain/workspace below, no avatar), then pass the value through from getFeedOptions.

    Why the secondary-text approach over appending to the name string

    We could concatenate the domain/workspace directly into the single text string (works with the current MultiSelect with no type changes), but the mockup in the OP and Design's confirmation show a two-line layout matching the card filter. Extending MultiSelectItem with alternateText gives the intended look and reuses the existing alternateText convention already used across list items.

    What alternative solutions did you explore? (Optional)

    • Append domain/workspace inline into the feed name (e.g. Visa (acme.com)) with no changes to MultiSelectItem. Simpler, but doesn't match the confirmed two-line mockup.
    • Only disambiguate when a collision is detected (append domain/workspace only when two feeds share a name). Rejected — the issue explicitly asks to always include the domain/workspace so naming stays consistent across all feeds.

    Next Steps for Contributor+ team:
    To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/97279#issuecomment-5133716662) to create a draft PR.
    To refine: @MelvinBot <your feedback>
    To reject: Explain why you are rejecting Melvin's proposal.

  10. added
    External
    on Jul 30, 2026
  11. melvin-bot commented on Jul 30, 2026

    @melvin-bot
    Author

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav (External)

  12. 47 remaining items

  13. mananjadhav commented on Sep 3, 2026

    @mananjadhav
    Collaborator

    @mallenexpensify I did post the comment here #97279 (comment)

  14. mallenexpensify commented on Sep 3, 2026

    @mallenexpensify
    Contributor

    This PR had a tiny regression. I wasn’t aware the Feed dropdown was expected to be scrollable or have a fixed height. The related issue was demoted but already fixed and in production.

    I was wondering if this could be excluded from the regression count. But totally fine if it's too much to ask.

    @marcaaron what cha think? Plz provide reasoning (cuz I'm creating a rubric and cases .md files to help us with pricing) Thx.

  15. added
    Daily
    and removed
    Daily
    on Sep 6, 2026
  16. mananjadhav commented on Sep 9, 2026

    @mananjadhav
    Collaborator

    @marcaaron gentle bump ^

  17. melvin-bot commented on Sep 9, 2026

    @melvin-bot
    Author

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

  18. mallenexpensify commented on Sep 10, 2026

    @mallenexpensify
    Contributor

    @marcaaron 👀 above plz

  19. pinned this issue on Sep 10, 2026
  20. unpinned this issue on Sep 10, 2026
  21. marcaaron commented on Sep 10, 2026

    @marcaaron
    Contributor

    If you just want my opinion for a rubric my reasoning is:

    Don't dock this one because the regression did not need to be reverted nor did it lead to any significant consequences or threaten the quality or stability of the production app in any way.

  22. mallenexpensify commented on Sep 10, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @mananjadhav due $250 via NewDot

    Thx @marcaaron I captured your reasoning. I think we'll have the AI review post what they recommend based on our existing rules (mostly in CONTRIBUTING.md) then share examples of when other similar issues weren't reduced. Then the CME can review quickly to confirm the amount.

  23. garrettmknight commented on Sep 14, 2026

    @garrettmknight
    Contributor

    $250 approved for @mananjadhav

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

Metadata

Metadata

Labels

Awaiting PaymentDailyExternalNewFeature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions