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
[Due for payment 2026-10-22] [$175] Expensify card - Sorting/display options are missing on Expensify card page #103578
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
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).
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.
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
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.
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):
WorkspaceExpensifyCardsTable passes narrowLayoutSortColumn="name" to the shared <Table> component.
In src/components/Table/TableFilterBar/TableDisplaySettingsTrigger.tsx (lines 32–37):
if(isSortLockedOnNarrowLayout){returnnull;}
isSortLockedOnNarrowLayout is true whenever narrowLayoutSortColumn is defined. This intentionally suppresses the TableDisplaySettingsTrigger popover trigger on narrow viewports.
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.
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":
Defaults remain unchanged: on first load across both wide and narrow viewports, cards sort by cardholder name ascending (initialSortColumn="name").
On narrow viewports, isSortLockedOnNarrowLayout evaluates to false, allowing TableDisplaySettingsTrigger to render the display options (eye icon) button.
Tapping the trigger opens the existing sort options popover, and selecting any sort column reorders the card list as expected via compareItems.
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:
Verify that on narrow layouts (shouldUseNarrowLayout: true), the display settings / sorting trigger button is visible in Table.FilterBar.
Verify that sorting by a selected column (e.g., limit, status) updates the order of rendered card rows.
Verify that on wide viewports, initial sort order remains cardholder name ascending.
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.
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
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]
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
applause-bot commentedon Oct 9, 2026
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
MelvinBot commentedon Oct 9, 2026
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"fromWorkspaceExpensifyCardsTableand keepinitialSortColumn="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:45documents 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
Table.FilterBar, which the Expensify Card table mounts atWorkspaceExpensifyCardsTable/index.tsx:321. It doesn't come from the page's header buttons inWorkspaceExpensifyCardListPage.tsx.sorting.ts:107-111forces{narrowLayoutSortColumn, ASC}, so a sort control would do nothing. That's why the button is hidden.filterConfig. That part is expected.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
melvin-bot commentedon Oct 9, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abzokhattab (
External)[-]Expensify card - Sorting/display options are missing on Expensify card page[/-][+][$175] Expensify card - Sorting/display options are missing on Expensify card page[/+]melvin-bot commentedon Oct 9, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022108511548304281222
yuvrajangadsingh commentedon Oct 9, 2026
withdrawing this, it went up before the issue had the
Help Wantedlabel. will come back if the label is added.krsnak commentedon Oct 9, 2026
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?
WorkspaceExpensifyCardsTablesuppliesnarrowLayoutSortColumn="name", which locks the narrow-layout sort. The sharedTableDisplaySettingsTriggerintentionally 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 keepinginitialSortColumn="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.
RajGahoi commentedon Oct 9, 2026
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):WorkspaceExpensifyCardsTablepassesnarrowLayoutSortColumn="name"to the shared<Table>component.src/components/Table/TableFilterBar/TableDisplaySettingsTrigger.tsx(lines 32–37):isSortLockedOnNarrowLayoutis true whenevernarrowLayoutSortColumnis defined. This intentionally suppresses theTableDisplaySettingsTriggerpopover trigger on narrow viewports.WorkspaceExpensifyCardsTabledefines no custom filter actions or child controls inTableFilterBar,actionColumnVisibleevaluates tofalsewhen the display trigger returnsnull, causing the entire right-hand action column to vanish on narrow viewports.name,cardholder,limit, etc.) andcompareItemshandles 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 retaininginitialSortColumn="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:
initialSortColumn="name").isSortLockedOnNarrowLayoutevaluates tofalse, allowingTableDisplaySettingsTriggerto render the display options (eye icon) button.compareItems.WorkspaceExpensifyCardsTableand does not affect other tables with intentional narrow layout locks (Taxes, Distance Rates, etc.).What alternative solutions did you explore? (Optional)
shouldShowTableDisplaySettingsTriggerin 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 fromWorkspaceExpensifyCardsTableis 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:shouldUseNarrowLayout: true), the display settings / sorting trigger button is visible inTable.FilterBar.melvin-bot commentedon Oct 9, 2026
Details
theluckystrike commentedon Oct 9, 2026
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.
23 remaining items
[-][$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[/+]melvin-bot commentedon Oct 15, 2026
@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]
melvin-bot commentedon Oct 20, 2026
@abzokhattab Huh... This is 4 days overdue. Who can take care of this?
melvin-bot commentedon Oct 21, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Oct 21, 2026
Payment Summary
Resolving PRs:
Allow sorting the Expensify Card table on narrow layouts #103897
Reviewer: @abzokhattab owed $175 via NewDot
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Oct 24, 2026
Payment Summary
Contributor+: @abzokhattab due $175 via NewDot