Skip to content

[Due for payment 2026-10-22] [$175] Expensify card - Sorting/display options are missing on Expensify card page #103578

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.


Version Number: 9.5.6-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: https://test-management.browserstack.com/projects/2219752/test-runs/77775825/folder/13176890/143478625/1840292955
Email or phone of affected tester (no customers): applausetester+bm883847611@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Regression TC Execution
Device used: android
App Component: Workspace Settings

Action Performed:

Preconditions:
Expensify card issued

  1. Go to staging.new.expensify.com
  2. Go to Workspace Settings > Expensify Card.

Expected Result:

Sorting/display buttons should be visible on the Expensify card page.

Actual Result:

Sorting/display buttons are missing on the Expensify card page.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Image

View all open jobs on GitHub

Applause Internal Information
Exported by: Julia Ponikarchuk
Bug ID: 7281650

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

Activity

  1. added
    Daily
    Bug
    on Oct 9, 2026
  2. applause-bot commented on Oct 9, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/112a031584392603f8ca6488d8a161c94ee10f555e30c5706a9c472d2ea6743a

  3. MelvinBot commented on Oct 9, 2026

    @MelvinBot
    Contributor

    Proposal

    What is the root cause of that problem?

    The Expensify Card table locks its narrow-layout sort to cardholder name with narrowLayoutSortColumn="name" (WorkspaceExpensifyCardsTable/index.tsx:332). When a table locks its sort, the shared Table component ignores user sorting on narrow layouts and hides the Display button on purpose (TableDisplaySettingsTrigger.tsx:32-37).

    This isn't Android-specific and isn't a recent regression. The lock came from Update the policy expensify card table to the new style (merged 2026-06-29). The hide rule came from [Payment due @ChavdaSachin] Add bulk actions for company cards (merged 2026-07-29).

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

    Remove narrowLayoutSortColumn="name" from WorkspaceExpensifyCardsTable and keep initialSortColumn="name". This matches the Company Cards table. The Display (eye) button then shows on narrow layouts, user sorting works there, and the default order stays cardholder name ascending.

    What alternative solutions did you explore? (Optional)

    Close as expected behavior. TABLE.md:45 documents hiding the button for tables with a locked narrow sort. Six other tables also lock it: Taxes, Distance rates, Per diem, Spend rules, Expense defaults, and Category rules. If the button should show on every table, change those six tables too.

    Investigation details
    • The Display button comes from Table.FilterBar, which the Expensify Card table mounts at WorkspaceExpensifyCardsTable/index.tsx:321. It doesn't come from the page's header buttons in WorkspaceExpensifyCardListPage.tsx.
    • On narrow layouts, sorting.ts:107-111 forces {narrowLayoutSortColumn, ASC}, so a sort control would do nothing. That's why the button is hidden.
    • Here "narrow" includes medium-width screens, so mWeb and narrow desktop windows behave the same way.
    • The Filters button never shows for this table on any layout because the table has no filterConfig. That part is expected.
    • I couldn't reproduce this live. Issuing an Expensify Card needs a verified bank account, which the web test account doesn't have. The page stayed on the "Get the Expensify Card" intro screen in both wide and narrow layouts.

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


    view run · view recording

  4. added
    External
    on Oct 9, 2026
  5. melvin-bot commented on Oct 9, 2026

    @melvin-bot

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

  6. changed the title [-]Expensify card - Sorting/display options are missing on Expensify card page[/-] [+][$175] Expensify card - Sorting/display options are missing on Expensify card page[/+] on Oct 9, 2026
  7. melvin-bot commented on Oct 9, 2026

    @melvin-bot
  8. yuvrajangadsingh commented on Oct 9, 2026

    @yuvrajangadsingh
    Contributor

    withdrawing this, it went up before the issue had the Help Wanted label. will come back if the label is added.

  9. krsnak commented on Oct 9, 2026

    @krsnak

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    On a narrow/mobile layout, the Workspace Expensify Cards table does not show the display/sorting control even though its columns support sorting.

    What is the root cause of that problem?

    WorkspaceExpensifyCardsTable supplies narrowLayoutSortColumn="name", which locks the narrow-layout sort. The shared TableDisplaySettingsTrigger intentionally hides the control when such a lock is present; with no other filter actions, the action area disappears.

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

    Remove the narrow-layout sorting lock specifically from WorkspaceExpensifyCardsTable, while keeping initialSortColumn="name" to preserve the default order. This lets the existing table display/sort control render and avoids changing shared sorting behavior for unrelated tables.

    I'll add or update a narrow-layout regression test covering the control's visibility and user-selected sorting, and verify that desktop and default card ordering remain unchanged.

  10. RajGahoi commented on Oct 9, 2026

    @RajGahoi

    Contributor details
    Your Expensify account email: gahoiraj01@gmail.com
    Upwork Profile Link: https://www.upwork.com/freelancers/~01b77415f16d156068

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    On narrow/mobile screens (mWeb and mobile apps), the Workspace Expensify Cards page table does not display the display options / sorting button (the eye icon trigger) in the search filter bar, preventing users from selecting sort preferences on mobile.

    What is the root cause of that problem?

    In src/components/Tables/WorkspaceExpensifyCardsTable/index.tsx (line 332):

    <Table
        data={cards}
        columns={columns}
        renderItem={renderCardItem}
        compareItems={compareItems}
        isItemInSearch={isItemInSearch}
        shouldUseDynamicColumns
        initialSortColumn="name"
        narrowLayoutSortColumn="name"
        ...
    1. WorkspaceExpensifyCardsTable passes narrowLayoutSortColumn="name" to the shared <Table> component.
    2. In src/components/Table/TableFilterBar/TableDisplaySettingsTrigger.tsx (lines 32–37):
      if (isSortLockedOnNarrowLayout) {
          return null;
      }
      isSortLockedOnNarrowLayout is true whenever narrowLayoutSortColumn is defined. This intentionally suppresses the TableDisplaySettingsTrigger popover trigger on narrow viewports.
    3. Because WorkspaceExpensifyCardsTable defines no custom filter actions or child controls in TableFilterBar, actionColumnVisible evaluates to false when the display trigger returns null, causing the entire right-hand action column to vanish on narrow viewports.
    4. However, the cards table has multiple sortable columns (e.g. name, cardholder, limit, etc.) and compareItems handles dynamic ordering across all of them. Locking narrow layouts to "name" is unnecessary and improperly removes sorting capabilities that work seamlessly on wide viewports.

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

    In src/components/Tables/WorkspaceExpensifyCardsTable/index.tsx:
    Remove narrowLayoutSortColumn="name" while retaining initialSortColumn="name":

             <Table
                 data={cards}
                 columns={columns}
                 renderItem={renderCardItem}
                 compareItems={compareItems}
                 isItemInSearch={isItemInSearch}
                 shouldUseDynamicColumns
                 initialSortColumn="name"
    -            narrowLayoutSortColumn="name"
                 title={translate('workspace.common.expensifyCard')}

    Verification & Blast Radius:

    1. Defaults remain unchanged: on first load across both wide and narrow viewports, cards sort by cardholder name ascending (initialSortColumn="name").
    2. On narrow viewports, isSortLockedOnNarrowLayout evaluates to false, allowing TableDisplaySettingsTrigger to render the display options (eye icon) button.
    3. Tapping the trigger opens the existing sort options popover, and selecting any sort column reorders the card list as expected via compareItems.
    4. The change is isolated strictly to WorkspaceExpensifyCardsTable and does not affect other tables with intentional narrow layout locks (Taxes, Distance Rates, etc.).

    What alternative solutions did you explore? (Optional)

    • Modifying shouldShowTableDisplaySettingsTrigger in the shared Table component: Undesirable blast radius because other workspace tables that deliberately fix narrow sorting to a single attribute would render an ineffectual display settings trigger. Removing the property directly from WorkspaceExpensifyCardsTable is localized, clean, and follows the Company Cards table design pattern.

    What specific scenarios should we cover in automated tests?

    In tests/unit/components/Tables/WorkspaceExpensifyCardsTableTest.tsx:

    1. Verify that on narrow layouts (shouldUseNarrowLayout: true), the display settings / sorting trigger button is visible in Table.FilterBar.
    2. Verify that sorting by a selected column (e.g., limit, status) updates the order of rendered card rows.
    3. Verify that on wide viewports, initial sort order remains cardholder name ascending.
  11. melvin-bot commented on Oct 9, 2026

    @melvin-bot

    ⚠️ Unable to store contributor details

    Details
    Auth SetContributorDetails returned an error
    401 Contributor details already exist
    
  12. theluckystrike commented on Oct 9, 2026

    @theluckystrike

    Testing access

    I reviewed the current card-table source and the existing proposals. The table still sets both initialSortColumn and narrowLayoutSortColumn to name. I have not reproduced the stated behavior in an authorized issued-card test fixture.

    The contribution guide requires reproduction and Help Wanted before a proposal. Could a reviewer confirm whether this issue is available to new external contributors, and point to the approved sandbox setup or access process for a staging fixture with an issued card? No real card information, credentials or private access links are needed in this public thread.

    This is an access clarification, not a proposal or an assignment claim. I would submit a materially distinct technical proposal only after satisfying those conditions, then begin implementation after acceptance and a funded contract.

  13. 23 remaining items

  14. changed the title [-][$175] Expensify card - Sorting/display options are missing on Expensify card page[/-] [+][Due for payment 2026-10-22] [$175] Expensify card - Sorting/display options are missing on Expensify card page[/+] on Oct 15, 2026
  15. melvin-bot commented on Oct 15, 2026

    @melvin-bot

    @abzokhattab

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.9-4 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-10-22. 🎊

    The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ 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]. If no checklist is needed for this issue, you can click: [no checklist button]

  16. melvin-bot commented on Oct 20, 2026

    @melvin-bot

    @abzokhattab Huh... This is 4 days overdue. Who can take care of this?

  17. added
    Awaiting Payment
    on Oct 21, 2026
  18. melvin-bot commented on Oct 21, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  19. melvin-bot commented on Oct 21, 2026

    @melvin-bot

    Payment Summary

    Resolving PRs:

    BugZero Checklist (@mallenexpensify)

    • I have confirmed assignees, roles, and Upwork contracts look correct
    • I have paid out Upwork contracts / manual NewDot requests
    • [BugZero Assignee] I have created a GH issue for creating/updating the regression test once above steps have been agreed upon
  20. mallenexpensify commented on Oct 24, 2026

    @mallenexpensify
    Contributor

    Payment Summary

    Contributor+: @abzokhattab due $175 via NewDot

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

Metadata

Metadata

Labels

Awaiting PaymentBugDailyExternal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions