Skip to content

[$250] Home - Company and personal cards not shown in Assigned cards widget #83129

Closed

Description

@jponikarchuk

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.24-1
Reproducible in staging?: Yes
Reproducible in production?: N/A - new feature, doesn't exist in prod
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #82772
Email or phone of affected tester (no customers): N/A
Issue reported by: Applause Internal Team
Bug source: Pull Request QA execution
Device used: Windows 11, Chrome
App Component: Other

Action Performed:

Precondition

  • User has a workspace with USD currency as default.
  • User has added a personal card to the account.
  1. Go to https://staging.new.expensify.com/
  2. Navigate to the WS > Company Cards > Add cards > United States > Direct feed > Other.
  3. Add a Wells Fargo bank account and complete it.
  4. Return to Company Cards, assign a card to yourself.
  5. Navigate to Home

Expected Result:

When company and personal cards are added, they should appear in the Assigned cards widget on Home.

Actual Result:

After adding company and personal cards, they are not displayed in the Assigned cards widget. (only Expensify cards are displayed)

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

1.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @eVoloshchak
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022025154344490889529
  • Upwork Job ID: 2025154344490889529
  • Last Price Increase: 2026-02-21

Activity

  1. added
    DeployBlockerCash
    Bug
    on Feb 21, 2026
  2. melvin-bot commented on Feb 21, 2026

    @melvin-bot

    @mountiny recently merged #82772, but they are OOO right now, so I'll auto-assign someone else.

  3. melvin-bot commented on Feb 21, 2026

    @melvin-bot

    Triggered auto assignment to @joekaufmanexpensify (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.

  4. melvin-bot commented on Feb 21, 2026

    @melvin-bot

    Triggered auto assignment to @amyevans (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  5. melvin-bot commented on Feb 21, 2026

    @melvin-bot

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

  6. github-actions commented on Feb 21, 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.
  7. OSBotify commented on Feb 21, 2026

    @OSBotify
    Contributor

    Investigation Summary

    Classification: Frontend bug
    Causing PR: #82772 - "[Home Page] Add Remaining limit slot for the Expensify Card" by @WojtekBoman (High confidence)
    Related Issues: None

    Recommendation: REVERT

    The causing PR introduced a new "Assigned cards" widget on the home page that was supposed to display all card types (Expensify cards, company cards, and personal cards), but the implementation only shows Expensify cards due to incorrect filtering logic.

    Labels: Keeping DeployBlockerCash (App deploy is blocked). DeployBlocker label is not present on this issue.

    Detailed Analysis

    Evidence

    The bug report states that company and personal cards are not showing in the Assigned cards widget on the Home page - only Expensify cards appear. The issue explicitly links to PR #82772 which was recently merged.

    PR #82772 added a new AssignedCardsSection component that displays assigned cards on the home page.

    Verification

    Affected file: src/pages/home/AssignedCardsSection/index.tsx

    Line 34 uses:

    const displayableCards = useMemo(() => getDisplayableExpensifyCards(cardList), [cardList]);

    Root cause in: src/libs/CardUtils.ts

    The getDisplayableExpensifyCards() function (lines 1206-1235) explicitly filters to ONLY show Expensify cards:

    const activeExpensifyCards = Object.values(activeCards).filter((card) => isExpensifyCard(card) && card.cardName !== CONST.COMPANY_CARDS.CARD_NAME.CASH);

    This excludes company cards (identified by !!card.domainName) and personal cards (identified by isPersonalCard(card)).

    Root Cause

    The PR test steps explicitly stated:

    "Verify that Expensify cards, company cards, and personal cards all appear in the section."

    However, the implementation used getDisplayableExpensifyCards() which only returns Expensify cards. The correct implementation should either:

    1. Use the existing hasDisplayableAssignedCards() logic that checks for all three card types
    2. Create a new function that returns all displayable cards (not just Expensify cards)

    The function name getDisplayableExpensifyCards itself indicates it was designed to only return Expensify cards, so using it for a widget that should show ALL card types was the wrong choice.

  8. 35 remaining items

  9. self-assigned this
    on Feb 24, 2026
  10. joekaufmanexpensify commented on Feb 25, 2026

    @joekaufmanexpensify
    Contributor

    Awesome, so next step is to raise a PR?

  11. mountiny commented on Feb 25, 2026

    @mountiny
    Contributor

    Yeah I think so! @JmillsExpensify can you please confirm the spanish translation for Your Expensify Cards?

  12. JmillsExpensify commented on Feb 25, 2026

    @JmillsExpensify
    Contributor

    The most natural way to say that is Tus tarjetas Expensify

  13. mountiny commented on Feb 25, 2026

    @mountiny
    Contributor

    @MelvinBot Can you implement changing the Cards widget title with Your Expensify Cards and Tus tarjetas Expensify being its spanish translation? we will then run script to add other translations

  14. MelvinBot commented on Feb 25, 2026

    @MelvinBot
    Contributor

    Draft PR created: #83508

    This renames the homePage.assignedCards translation from "Assigned cards" to "Your Expensify Cards" (English) and "Tus tarjetas Expensify" (Spanish). Other language translations can be added via the script as mentioned.

    Please mark it as "Ready for review" when it is ready for review.

  15. grgia commented on Feb 26, 2026

    @grgia
    Contributor

    commented on pr

  16. added
    Reviewing
    Weekly
    and removed
    Daily
    on Feb 26, 2026
  17. mountiny commented on Feb 26, 2026

    @mountiny
    Contributor

    Merged!

  18. joekaufmanexpensify commented on Mar 2, 2026

    @joekaufmanexpensify
    Contributor

    PR on staging

  19. joekaufmanexpensify commented on Mar 9, 2026

    @joekaufmanexpensify
    Contributor

    Out to prod. Should be all set here 👍

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

Metadata

Metadata

Labels

BugEngineeringExternalReviewingWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions