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-12-08] [$175] Display options icon (eyeball) is missing from some mobile tables like Per diem #107274
**Version Number:**9.5.41-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:@shawnborton Slack conversation (hyperlinked to channel name): expensify_bugs
changed the title [-]Display options icon (eyeball) is missing from some mobile tables like Per diem[/-][+][$175] Display options icon (eyeball) is missing from some mobile tables like Per diem[/+]on Nov 18, 2026
Per diem and Taxes explicitly force alphabetical sorting in narrow and medium layouts. The shared Display options component hides itself whenever that sorting lock is active—even though an eyeball button is already implemented.
Confidence: Medium. Confirmed in current code; not reproduced in the browser or checked against version 9.5.41-0.
What changes do you think we should make in order to solve the problem?
Remove narrowLayoutSortColumn from these two tables, retaining initialSortColumn. This enables the existing eyeball control and functional sorting, while preserving alphabetical order initially.
Confirm that mobile sorting is intended to replace the existing lock. Verify populated Per diem and Taxes tables at narrow, medium, and wide widths; test sort field, direction, reset, and resizing. Preserve empty-table behavior.
What alternative solutions did you explore? (Optional)
Changing the shared visibility guard alone would expose an ineffective control and affect other tables with intentional sorting locks.
Next Steps for Contributor+ team: To accept:@MelvinBot implement [this](https://github.com/Expensify/App/issues/107274) to create a draft PR. To refine:@MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.
Please re-state the problem that we are trying to solve in this issue.
On narrow (mobile) layouts, the Display options (eyeball) button is missing from some workspace tables, such as Per diem and Taxes, so users can't change how the table is sorted there.
What is the root cause of that problem?
This is caused by the shared Table component's narrowLayoutSortColumn prop, not by anything in a single page. When a table passes that prop and shouldUseNarrowTableLayout is true:
The sorting middleware ignores the user's sort and forces {columnKey: narrowLayoutSortColumn, order: ASC}:
Because sorting is locked, shouldShowTableDisplaySettingsTrigger hides the eyeball on purpose (isSortingLockedByLayout). The filter bar uses the same check:
In every one of them, narrowLayoutSortColumn has the same value as initialSortColumn. So the prop doesn't change the default order. Its only effect is to lock sorting and hide the eyeball on mobile.
What changes do you think we should make in order to solve the problem?
Remove narrowLayoutSortColumn from all six tables above. Keep initialSortColumn, so the default mobile order stays the same (alphabetical by name, destination, card, or condition).
Once nothing uses it, remove the lock from the shared Table: the narrowLayoutSortColumn branch in resolveActiveSorting (narrow layout keeps returning userSorting, as it already does for tables without the prop), the isSortingLockedByLayout check in shouldShowTableDisplaySettingsTrigger, and the prop/context field in types.ts, TableContext.tsx and Table.tsx. Then no other table can hit this bug again.
After this, narrow layouts behave like the tables that already show the eyeball on mobile: the eyeball opens Sort by / Sort order, and the choice is applied.
How this differs from the existing MelvinBot proposal
Melvin's proposal finds the same mechanism but only changes Per diem and Taxes. Distance rates, Spend rules, Category rules and Expense defaults have the same narrowLayoutSortColumn and would still be missing the eyeball on mobile (the issue says "some mobile tables like Per diem"). This proposal fixes all six and removes the now-unused lock, so the bug can't come back through that prop.
What specific scenarios should we cover in automated tests to prevent reoccurrence of this issue?
Unit test for shouldShowTableDisplaySettingsTrigger: it returns true on a narrow layout whenever the table has at least one sortable column.
Unit test for the sorting middleware: on a narrow layout, after updateSorting({columnKey: 'rate', order: 'desc'}), activeSorting equals the user's choice, and the initial order is initialSortColumn ascending.
What alternative solutions did you explore? (Optional)
Keep the prop but treat it as a default only (use it until the user picks a sort, then respect the user's choice). That works too, but it duplicates initialSortColumn in every current use, so removing it is simpler.
@MelvinBot implement this and open a draft PR assigned to me.
To stay within the run limit:
Skip browser verification. I'll test on the PR.
Run only the targeted tests (tests/unit/components/Table/useSortingTest.ts, tests/ui/TableTest.tsx, and the new Taxes and trigger tests), plus lint and typecheck on changed files. Don't run the full suite.
Branch from the latest origin/main and don't compute a merge base or fetch full history. If you need a diff, compare against origin/main directly.
Push and open the draft PR as soon as the targeted checks pass. Leave QA steps and screenshots for me.
changed the title [-][$175] Display options icon (eyeball) is missing from some mobile tables like Per diem[/-][+][Due for payment 2026-12-08] [$175] Display options icon (eyeball) is missing from some mobile tables like Per diem[/+]on Dec 1, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.55-6 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-12-08. 🎊
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]
Activity
expensify-chore-bot commentedon Nov 18, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @gijoe0295 (
External)[-]Display options icon (eyeball) is missing from some mobile tables like Per diem[/-][+][$175] Display options icon (eyeball) is missing from some mobile tables like Per diem[/+]expensify-chore-bot commentedon Nov 18, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022123077415725097415
MelvinBot commentedon Nov 18, 2026
Proposal
What is the root cause of that problem?
Per diem and Taxes explicitly force alphabetical sorting in narrow and medium layouts. The shared Display options component hides itself whenever that sorting lock is active—even though an eyeball button is already implemented.
Confidence: Medium. Confirmed in current code; not reproduced in the browser or checked against version 9.5.41-0.
Code evidence and alternatives checked
narrowLayoutSortColumn: Per diem:141–159, Taxes:155–175.What changes do you think we should make in order to solve the problem?
Remove
narrowLayoutSortColumnfrom these two tables, retaininginitialSortColumn. This enables the existing eyeball control and functional sorting, while preserving alphabetical order initially.Confirm that mobile sorting is intended to replace the existing lock. Verify populated Per diem and Taxes tables at narrow, medium, and wide widths; test sort field, direction, reset, and resizing. Preserve empty-table behavior.
What alternative solutions did you explore? (Optional)
Changing the shared visibility guard alone would expose an ineffective control and affect other tables with intentional sorting locks.
Next Steps for Contributor+ team:
To accept:
@MelvinBot implement [this](https://github.com/Expensify/App/issues/107274)to create a draft PR.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
view run
akzkid commentedon Nov 18, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
On narrow (mobile) layouts, the Display options (eyeball) button is missing from some workspace tables, such as Per diem and Taxes, so users can't change how the table is sorted there.
What is the root cause of that problem?
This is caused by the shared
Tablecomponent'snarrowLayoutSortColumnprop, not by anything in a single page. When a table passes that prop andshouldUseNarrowTableLayoutis true:{columnKey: narrowLayoutSortColumn, order: ASC}:App/src/components/Table/middlewares/sorting.ts
Lines 107 to 111 in 94337cb
shouldShowTableDisplaySettingsTriggerhides the eyeball on purpose (isSortingLockedByLayout). The filter bar uses the same check:App/src/components/Table/TableFilterBar/TableDisplaySettingsTrigger.tsx
Lines 32 to 37 in 94337cb
App/src/components/Table/TableFilterBar/index.tsx
Line 34 in 94337cb
Six tables pass
narrowLayoutSortColumntoday, so the eyeball is missing on mobile in all six, not just Per diem and Taxes:App/src/components/Tables/WorkspacePerDiemTable/index.tsx
Lines 155 to 156 in 94337cb
App/src/components/Tables/WorkspaceTaxesTable/index.tsx
Lines 163 to 164 in 94337cb
App/src/components/Tables/WorkspaceDistanceRatesTable/index.tsx
Lines 214 to 215 in 94337cb
App/src/components/Tables/WorkspaceSpendRulesTable/index.tsx
Lines 117 to 118 in 94337cb
App/src/components/Tables/WorkspaceCategoryRulesTable/index.tsx
Lines 120 to 121 in 94337cb
App/src/components/Tables/WorkspaceExpenseDefaultsTable/index.tsx
Lines 130 to 131 in 94337cb
In every one of them,
narrowLayoutSortColumnhas the same value asinitialSortColumn. So the prop doesn't change the default order. Its only effect is to lock sorting and hide the eyeball on mobile.What changes do you think we should make in order to solve the problem?
narrowLayoutSortColumnfrom all six tables above. KeepinitialSortColumn, so the default mobile order stays the same (alphabetical by name, destination, card, or condition).narrowLayoutSortColumnbranch inresolveActiveSorting(narrow layout keeps returninguserSorting, as it already does for tables without the prop), theisSortingLockedByLayoutcheck inshouldShowTableDisplaySettingsTrigger, and the prop/context field intypes.ts,TableContext.tsxandTable.tsx. Then no other table can hit this bug again.How this differs from the existing MelvinBot proposal
Melvin's proposal finds the same mechanism but only changes Per diem and Taxes. Distance rates, Spend rules, Category rules and Expense defaults have the same
narrowLayoutSortColumnand would still be missing the eyeball on mobile (the issue says "some mobile tables like Per diem"). This proposal fixes all six and removes the now-unused lock, so the bug can't come back through that prop.What specific scenarios should we cover in automated tests to prevent reoccurrence of this issue?
shouldShowTableDisplaySettingsTrigger: it returns true on a narrow layout whenever the table has at least one sortable column.updateSorting({columnKey: 'rate', order: 'desc'}),activeSortingequals the user's choice, and the initial order isinitialSortColumnascending.What alternative solutions did you explore? (Optional)
Keep the prop but treat it as a default only (use it until the user picks a sort, then respect the user's choice). That works too, but it duplicates
initialSortColumnin every current use, so removing it is simpler.Contributor details
Your Expensify account email: carp-digest@mail.grokbot.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01be5d412b545fdf18
melvin-bot commentedon Nov 18, 2026
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
8 remaining items
Krishna2323 commentedon Nov 20, 2026
@MelvinBot implement this and open a draft PR assigned to me.
To stay within the run limit:
tests/unit/components/Table/useSortingTest.ts,tests/ui/TableTest.tsx, and the new Taxes and trigger tests), plus lint and typecheck on changed files. Don't run the full suite.origin/mainand don't compute a merge base or fetch full history. If you need a diff, compare againstorigin/maindirectly.MelvinBot commentedon Nov 20, 2026
Created draft PR Allow sorting workspace tables on compact layouts, assigned to
Krishna2323.view run
expensify-chore-bot commentedon Nov 23, 2026
@Krishna2323 Whoops! This issue is 2 days overdue. Let's get this updated quick!
[-][$175] Display options icon (eyeball) is missing from some mobile tables like Per diem[/-][+][Due for payment 2026-12-08] [$175] Display options icon (eyeball) is missing from some mobile tables like Per diem[/+]melvin-bot commentedon Dec 1, 2026
@Krishna2323
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.55-6 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-12-08. 🎊
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]
expensify-chore-bot commentedon Dec 4, 2026
@Krishna2323 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!