You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Spend - The feed dropdown filter displays “Expensify Card” for every workspace, making it impossible to identify which card feed belongs to which workspace #97865
Version Number: 9.4.50-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by:@sofiainteriano Slack conversation (hyperlinked to channel name): #expensify_bugs
Action Performed:
Enable Expensify Cards in several workspaces
Go to Spend >Open the feed dropdown filter under the Bank Reconciliation tab (or any Feed filter across the Expenses, Cash accruals, Card accruals, Card statements tabs as well)
Review the available Expensify Card feeds.
Expected Result:
Each Expensify Card feed should display its associated workspace so users can easily select the correct feed and identify withdrawals by workspace.
Actual Result:
Every workspace’s feed is labeled only as “Expensify Card,” so users cannot distinguish which feed belongs to which workspace.
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
The Spend-section feed dropdown labels every Expensify Card feed with the hardcoded constant CONST.EXPENSIFY_CARD.BANK ("Expensify Card"), and never appends the workspace/policy name.
Each workspace's feed does get a distinct id (keyed by fundID), so multiple rows appear — but they all carry the identical name, so they're visually indistinguishable.
This function isn't passed the policies collection, so it has no workspace context to disambiguate with — even though it holds card.fundID. By contrast, commercial company-card feeds route through getCustomOrFormattedFeedName and get a distinct bank/network name, which is why only Expensify Card feeds collide.
Investigation details & evidence
Rendering chain (Search "Spend" feed filter): FeedSelector → useFilterFeedData → getFeedOptions (SearchUIUtils.ts:5042) — maps each feed to {text: cardFeed.name, value: cardFeed.id}, so the dropdown label is literally cardFeed.name.
The collision is even documented in useCardFeedsForDisplay.ts:95: "every non-travel Expensify Card feed shares the same CONST.EXPENSIFY_CARD.BANK name."
Confidence: High — deterministic code behavior, no production logs needed. Two independent investigations converged on the same root cause.
What changes do you think we should make in order to solve the problem?
Make getExpensifyCardFeedsForDisplay policy-aware so each Expensify Card feed row is distinguishable by workspace:
Thread the allPolicies collection into getExpensifyCardFeedsForDisplay (via getCardFeedsForDisplay → getFeedOptions).
For each feed, resolve the owning workspace with policy.policyAccountID === Number(card.fundID) (same mapping already used at CardFeedUtils.ts:272, or reuse getLinkedPolicyName).
Append the workspace name to the label, e.g. Expensify Card • {workspaceName}, when more than one Expensify Card feed exists (keep the plain "Expensify Card" label when there's only one, to avoid needless clutter). Preserve the special-cased Travel Invoicing label.
What alternative solutions did you explore? (Optional)
Disambiguating in the UI layer at render time instead of in the util — rejected, since getCardFeedsForDisplay is the shared source used by multiple consumers (search filters, autocomplete, query parsing), so fixing the name at the util keeps all of them consistent.
Next Steps for Contributor+ team: To accept:@MelvinBot implement [this](https://github.com/Expensify/App/issues/97865) to create a draft PR. To refine:@MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.
3. Append the workspace name to the label, e.g. Expensify Card • {workspaceName}, when more than one Expensify Card feed exists (keep the plain "Expensify Card" label when there's only one, to avoid needless clutter).
@Expensify/design, what do you think about @MelvinBot's suggestion above?
Deferring the visual call to Expensify/design — a couple of technical notes that may help frame it:
Two decisions to make:
Always show the workspace, or only when feeds collide? My proposal appended it only when 2+ Expensify Card feeds exist (to avoid clutter in the common single-workspace case). The simpler, more consistent alternative is to always show it. Trade-off is consistency vs. a slightly longer label for the majority of users who have one feed.
Where does the workspace name go? The feed dropdown renders each row as a single text label — MultiSelect's item type only supports text (no subtitle/secondary-line field today). So an inline label like Expensify Card • {workspaceName} works with no component changes, whereas a two-line "primary + secondary" treatment would require extending the list item first.
The • separator was just a placeholder — happy to match whatever convention design prefers (e.g. Expensify Card (Workspace), or the workspace name alone).
No code change is needed from me until there's a direction — once design weighs in, reply with @MelvinBot implement this and I'll build it to match.
I don't hate it, but I do wonder if it would look a little nicer to just use the item's description. And if we wanted to get really fancy, we could even toss in the workspace avatar? (Is that allowed? Do we do that anywhere else?)
We have a draft PR in the other issue for a different design. However, it's just from Melvin, so it will be very quick to move to this new design here if that is our preference.
Cool cool cool. I kinda think we should go with using the description text for these items (the one Joe just posted above) because I'm slightly worried that if we put them next to each other we run the risk of some important bits of the workspace name being truncated.
i.e. for silly long workspace names like:
New Logistics Boulder Development
New Logistics Boulder Development UK
New Logistics Boulder Development AU
New Logistics Boulder Development US
You'd get:
Which defeats the purpose of the whole thing. And yes, I know that people should use shorter workspace names, but for some reason it seems like a lot of our customers really like using super long names for everything.
I agree. It's still possible in Joe's version to truncate, but more space out the gate and I assume we'll apply the "display full string on hover" if truncated here yeah?
Activity
MelvinBot commentedon Aug 5, 2026
Proposal
What is the root cause of that problem?
The Spend-section feed dropdown labels every Expensify Card feed with the hardcoded constant
CONST.EXPENSIFY_CARD.BANK("Expensify Card"), and never appends the workspace/policy name.Each workspace's feed does get a distinct id (keyed by
fundID), so multiple rows appear — but they all carry the identicalname, so they're visually indistinguishable.The label is set in
getExpensifyCardFeedsForDisplay(src/libs/CardFeedUtils.ts:161):This function isn't passed the policies collection, so it has no workspace context to disambiguate with — even though it holds
card.fundID. By contrast, commercial company-card feeds route throughgetCustomOrFormattedFeedNameand get a distinct bank/network name, which is why only Expensify Card feeds collide.Investigation details & evidence
Rendering chain (Search "Spend" feed filter):
FeedSelector→useFilterFeedData→getFeedOptions(SearchUIUtils.ts:5042) — maps each feed to{text: cardFeed.name, value: cardFeed.id}, so the dropdown label is literallycardFeed.name.getCardFeedsForDisplay(CardFeedUtils.ts:180) names commercial feeds itself, then merges in the Expensify Card feeds atCardFeedUtils.ts:212.fundID === policy.policyAccountID. This exact mapping is already used atgetCardFeedsForDisplayPerPolicy(CardFeedUtils.ts:272), and a helpergetLinkedPolicyName(CardFeedUtils.ts:56) already resolves it — but neither is used on this path.useCardFeedsForDisplay.ts:95: "every non-travel Expensify Card feed shares the sameCONST.EXPENSIFY_CARD.BANKname."Confidence: High — deterministic code behavior, no production logs needed. Two independent investigations converged on the same root cause.
What changes do you think we should make in order to solve the problem?
Make
getExpensifyCardFeedsForDisplaypolicy-aware so each Expensify Card feed row is distinguishable by workspace:allPoliciescollection intogetExpensifyCardFeedsForDisplay(viagetCardFeedsForDisplay→getFeedOptions).policy.policyAccountID === Number(card.fundID)(same mapping already used atCardFeedUtils.ts:272, or reusegetLinkedPolicyName).Expensify Card • {workspaceName}, when more than one Expensify Card feed exists (keep the plain"Expensify Card"label when there's only one, to avoid needless clutter). Preserve the special-cased Travel Invoicing label.What alternative solutions did you explore? (Optional)
Disambiguating in the UI layer at render time instead of in the util — rejected, since
getCardFeedsForDisplayis the shared source used by multiple consumers (search filters, autocomplete, query parsing), so fixing the name at the util keeps all of them consistent.Related issues
Next Steps for Contributor+ team:
To accept:
@MelvinBot implement [this](https://github.com/Expensify/App/issues/97865)to create a draft PR.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
melvin-bot commentedon Aug 5, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @QichenZhu (
External)melvin-bot commentedon Aug 5, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022084963139927888341
QichenZhu commentedon Aug 5, 2026
@Expensify/design, what do you think about @MelvinBot's suggestion above?
MelvinBot commentedon Aug 5, 2026
Deferring the visual call to
Expensify/design— a couple of technical notes that may help frame it:Two decisions to make:
Always show the workspace, or only when feeds collide? My proposal appended it only when 2+ Expensify Card feeds exist (to avoid clutter in the common single-workspace case). The simpler, more consistent alternative is to always show it. Trade-off is consistency vs. a slightly longer label for the majority of users who have one feed.
Where does the workspace name go? The feed dropdown renders each row as a single text label —
MultiSelect's item type only supportstext(no subtitle/secondary-line field today). So an inline label likeExpensify Card • {workspaceName}works with no component changes, whereas a two-line "primary + secondary" treatment would require extending the list item first.The
•separator was just a placeholder — happy to match whatever convention design prefers (e.g.Expensify Card (Workspace), or the workspace name alone).No code change is needed from me until there's a direction — once design weighs in, reply with
@MelvinBot implement thisand I'll build it to match.dannymcclain commentedon Aug 5, 2026
I don't hate it, but I do wonder if it would look a little nicer to just use the item's description. And if we wanted to get really fancy, we could even toss in the workspace avatar? (Is that allowed? Do we do that anywhere else?)
shawnborton commentedon Aug 5, 2026
O la la! I like that third option! But yeah B is even a good improvement.
dannymcclain commentedon Aug 5, 2026
Including the avatar definitely makes the list more scannable. Here's a couple other alts that are semi-based on what we do for members:
shawnborton commentedon Aug 5, 2026
Nice - no strong feelings, the middle version above is nice and consistent with the product shot you are showing.
trjExpensify commentedon Aug 5, 2026
#97279 we have two issues for this, which one are we going to use? 😅
trjExpensify commentedon Aug 5, 2026
Re: avatar, what are we going to do when it's a domain assigned feed? I think B avoids that.
dubielzyk-expensify commentedon Aug 6, 2026
Definitely prefer one of these two:
If we wanna keep one line then I prefer the one with out the avatar:
Looks good overall!
joekaufmanexpensify commentedon Aug 6, 2026
Latest one without the avatar looks good to me. 👍
joekaufmanexpensify commentedon Aug 6, 2026
We have a draft PR in the other issue for a different design. However, it's just from Melvin, so it will be very quick to move to this new design here if that is our preference.
dannymcclain commentedon Aug 6, 2026
Cool cool cool. I kinda think we should go with using the description text for these items (the one Joe just posted above) because I'm slightly worried that if we put them next to each other we run the risk of some important bits of the workspace name being truncated.
i.e. for silly long workspace names like:
New Logistics Boulder Development
New Logistics Boulder Development UK
New Logistics Boulder Development AU
New Logistics Boulder Development US
You'd get:

Which defeats the purpose of the whole thing. And yes, I know that people should use shorter workspace names, but for some reason it seems like a lot of our customers really like using super long names for everything.
trjExpensify commentedon Aug 6, 2026
I agree. It's still possible in Joe's version to truncate, but more space out the gate and I assume we'll apply the "display full string on hover" if truncated here yeah?
dannymcclain commentedon Aug 6, 2026
Yeah that's what I'm thinking 👍
trjExpensify commentedon Aug 6, 2026
Dope.
joekaufmanexpensify commentedon Aug 6, 2026
Sounds good. Should we close this issue in favor of the existing one then?
dannymcclain commentedon Aug 6, 2026
Yeah if that one is already taking care of it let's close this!
shawnborton commentedon Aug 6, 2026
Makes sense to me too, send it.
joekaufmanexpensify commentedon Aug 6, 2026
sounds good! closing in favor of #97279