Skip to content

[Due for payment 2026-03-04] [$250] Company cards - Skeleton loader appears above card list after inviting member #83084

Closed

Description

@mitarachim

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?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #82055
Email or phone of affected tester (no customers): applausetester+khcategory20@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.2 / Chrome
App Component: Workspace Settings

Action Performed:

Precondition:

  • Workspace has a direct feed with card.
  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Company cards.
  3. Click Assign card on any card.
  4. Enter email and select the user.
  5. Click Invite.
  6. Close the RHP.

Expected Result:

Skeleton loader will not appear above card list after inviting member.

Actual Result:

Skeleton loader appears above card list after inviting member.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Image
Bug7083647_1771605142322.3.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @lydiabarclay
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~022024895015545492623
  • Upwork Job ID: 2024895015545492623
  • Last Price Increase: 2026-02-20
  • Automatic offers:
    • ChavdaSachin | Reviewer | 110528910

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    on Feb 20, 2026
  2. added
    DeployBlocker
    on Feb 20, 2026
  3. melvin-bot commented on Feb 20, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #82055

  4. melvin-bot commented on Feb 20, 2026

    @melvin-bot

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

  5. melvin-bot commented on Feb 20, 2026

    @melvin-bot

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

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

    @OSBotify
    Contributor

    🔍 Investigation Summary

    Classification: Frontend bug
    Causing PR: #82055 - "Remove unnecessary call openWorkspaceMembersPage in WorkspaceCompanyCardsPage.tsx" by @fedirjh (High confidence)
    Related Issues: None

    Recommendation: REVERT

    The PR removed policy?.employeeList from the dependency array of the loadPolicyCompanyCardsFeed callback. When a new member is invited during the assign card flow, policy?.employeeList updates, but since the callback no longer depends on it, it does not re-run. This causes the skeleton loader to remain visible after inviting a member because the page state is not properly refreshed.

    Labels: Removed DeployBlocker label. This is a frontend bug that requires changes in the App repository (not backend), so it should only block the App deploy (DeployBlockerCash), not the Web/backend deploy.

    📋 Detailed Analysis

    Evidence

    Verification

    The PR modified src/pages/workspace/companyCards/WorkspaceCompanyCardsPage.tsx:

    Before PR #82055:

    const loadPolicyCompanyCardsFeed = useCallback(() => {
        if (isLoading || !bankName || isFeedPending) {
            return;
        }
        const clientMemberEmails = Object.keys(getMemberAccountIDsForWorkspace(policy?.employeeList));
        openWorkspaceMembersPage(policyID, clientMemberEmails);
        openPolicyCompanyCardsFeed(domainOrWorkspaceAccountID, policyID, bankName, translate);
    }, [bankName, domainOrWorkspaceAccountID, isFeedPending, isLoading, policy?.employeeList, policyID, translate]);

    After PR #82055:

    const loadPolicyCompanyCardsFeed = useCallback(() => {
        if (isLoading || !bankName || isFeedPending) {
            return;
        }
        openPolicyCompanyCardsFeed(domainOrWorkspaceAccountID, policyID, bankName, translate);
    }, [bankName, domainOrWorkspaceAccountID, isFeedPending, isLoading, policyID, translate]);

    Notice that policy?.employeeList was removed from the dependency array.

    Root Cause

    When a user invites a new member during the assign card flow:

    1. The policy?.employeeList is updated with the new member
    2. Before PR Remove unnecessary call openWorkspaceMembersPage in WorkspaceCompanyCardsPage.tsx #82055, this would trigger loadPolicyCompanyCardsFeed to re-run (because it was in the dependency array), refreshing the page state
    3. After PR Remove unnecessary call openWorkspaceMembersPage in WorkspaceCompanyCardsPage.tsx #82055, loadPolicyCompanyCardsFeed no longer depends on policy?.employeeList, so it does not re-run
    4. The skeleton loader remains visible because the component state is stale and waiting for data that should have been refreshed

    The PR intended to optimize by removing the openWorkspaceMembersPage call, but inadvertently broke the reactive behavior needed when the employee list changes.

  8. 26 remaining items

  9. changed the title [-][$250] Company cards - Skeleton loader appears above card list after inviting member[/-] [+][Due for payment 2026-03-04] [$250] Company cards - Skeleton loader appears above card list after inviting member[/+] on Feb 25, 2026
  10. removed
    Reviewing
    on Feb 25, 2026
  11. melvin-bot commented on Feb 25, 2026

    @melvin-bot

    Reviewing label has been removed, please complete the "BugZero Checklist".

  12. melvin-bot commented on Feb 25, 2026

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.25-13 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

    If no regressions arise, payment will be issued on 2026-03-04. 🎊

    For reference, here are some details about the assignees on this issue:

  13. melvin-bot commented on Feb 25, 2026

    @melvin-bot

    @ChavdaSachin @lydiabarclay The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

  14. added
    Daily
    and removed
    Weekly
    on Mar 3, 2026
  15. lydiabarclay commented on Mar 3, 2026

    @lydiabarclay
    Contributor

    @ChavdaSachin can you please fill out the BZ checklist ahead of payment date tomm?

  16. ChavdaSachin commented on Mar 3, 2026

    @ChavdaSachin
    Contributor

    BugZero Checklist:

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

      Link to comment: Remove unnecessary call openWorkspaceMembersPage in WorkspaceCompanyCardsPage.tsx #82055 (comment)

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

      Not need for the regression test.

    Regression Test Proposal Template
    • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

      Link to issue:

    Regression Test Proposal

    Precondition:

    Test:

    Do we agree 👍 or 👎

  17. ChavdaSachin commented on Mar 5, 2026

    @ChavdaSachin
    Contributor

    @lydiabarclay could you pay this off.
    Thanks

  18. lydiabarclay commented on Mar 5, 2026

    @lydiabarclay
    Contributor

    Payment Summary

    Contributor: @fedirjh does not require payment (Contractor)
    Contributor+: @ChavdaSachin paid $250 via Upwork

    ✅ No regression test needed

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyEngineeringExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions