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-04-14] Web - Expense - Distance between Amount column and chevron changes after applying column #86820
Version Number: 9.3.51-0 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:#83981 Email or phone of affected tester (no customers):snodijosdnjoijiosnj@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.2 / Chrome App Component: Money Requests
Action Performed:
Go to staging.new.expensify.com
Go to workspace chat.
Create two expenses.
Open the report.
Click Columns.
Click Save.
Expected Result:
The distance between Amount column and chevron will not change.
Actual Result:
The distance between Amount column and chevron changes after applying columns.
👋 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:
Identify the pull request that introduced this issue and revert it.
Classification: Frontend bug Causing PR: #83981 - "Fix report custom columns blockers" by @mukhrr (High confidence) Related Issues: None
Recommendation: REVERT
PR #83981 introduced the Columns button feature and made significant changes to how columns are calculated and displayed in the expense report view. The bug is staging-only (the feature does not exist in production), occurs after clicking the new Columns button, and affects the UI layout/spacing.
Given that:
The causing PR is clearly identified and directly related to the affected feature
The bug is cosmetic/UI but affects user experience
This is a new feature that can be safely reverted without affecting existing functionality
Multiple complex changes were made to column handling that could have introduced the spacing regression
Reverting #83981 is the safest path to unblock the deploy.
Labels: Removing DeployBlocker label (backend is not affected). Keeping DeployBlockerCash (frontend bug blocking App deploy).
Updated how columns are passed through the component tree
The spacing issue after clicking Columns likely stems from how the column widths are recalculated when reportDetailsColumns changes after user interaction with the Columns page. The PR introduced logic that conditionally uses reportDetailsColumns based on isExpenseReportViewFromIOUReport, which may cause layout shifts.
The column ordering differs between the default path (no saved columns) and the custom columns path (after clicking Columns → Save) in getColumnsToShow() in src/libs/SearchUIUtils.ts.
Default path (before Save): The ColumnVisibility map defines COMMENTS before TOTAL_AMOUNT (lines ~4593-4594). Since Object.keys() preserves insertion order, the rendered column order ends with: ..., COMMENTS (36px), TOTAL_AMOUNT (flex:1), placing Amount directly adjacent to the chevron.
Custom path (after Save): The user's saved columns end with TOTAL_AMOUNT (from REPORT_DETAILS_DEFAULT_COLUMNS). Then COMMENTS is auto-appended at the end (line ~4655). This produces: ..., TOTAL_AMOUNT (flex:1), COMMENTS (36px), inserting the 36px COMMENTS column between Amount and the chevron.
Additionally, the custom path always triggers — even when saving without changes — because the arraysEqual check (line ~4635) compares against TYPE_DEFAULT_COLUMNS.EXPENSE ([RECEIPT, DATE, STATUS, MERCHANT, FROM, CATEGORY, TAG, TOTAL_AMOUNT]), which will never match the report details defaults ([RECEIPT, DATE, MERCHANT, CATEGORY, TAG, TOTAL_AMOUNT]).
What changes do you think we should make in order to solve the problem?
In getColumnsToShow() in src/libs/SearchUIUtils.ts, when building the custom column result for isExpenseReportView, insert COMMENTS before TOTAL_AMOUNT instead of appending it at the end. This preserves the same relative order (COMMENTS before TOTAL_AMOUNT) as the default path, keeping the Amount column directly adjacent to the chevron in both states.
Specifically, after building the result array from filteredVisibleColumns, find the index of TOTAL_AMOUNT and insert COMMENTS before it (if COMMENTS isn't already in the array), rather than pushing it to the end.
What alternative solutions did you explore? (Optional)
Render COMMENTS outside the columns array entirely — Since COMMENTS (chat bubble indicator) is always shown and is not user-configurable, it could be rendered as a fixed element alongside the chevron in TransactionItemRow, rather than being part of the dynamic columns list. This would be a larger refactor but would permanently avoid ordering issues.
Fix the arraysEqual comparison — Use REPORT_DETAILS_DEFAULT_COLUMNS instead of TYPE_DEFAULT_COLUMNS.EXPENSE when isExpenseReportView is true. This would prevent the custom path from triggering when the user saves without changes, but wouldn't fix the ordering issue if the user actually customizes columns.
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
changed the title [-]Web - Expense - Distance between Amount column and chevron changes after applying column[/-][+][Due for payment 2026-04-14] Web - Expense - Distance between Amount column and chevron changes after applying column[/+]on Apr 7, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.52-9 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@QichenZhu 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]
Activity
melvin-bot commentedon Apr 1, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #83981
melvin-bot commentedon Apr 1, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Apr 1, 2026
👋 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:
OSBotify commentedon Apr 1, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: #83981 - "Fix report custom columns blockers" by @mukhrr (High confidence)
Related Issues: None
Recommendation: REVERT
PR #83981 introduced the Columns button feature and made significant changes to how columns are calculated and displayed in the expense report view. The bug is staging-only (the feature does not exist in production), occurs after clicking the new Columns button, and affects the UI layout/spacing.
Given that:
Reverting #83981 is the safest path to unblock the deploy.
Labels: Removing
DeployBlockerlabel (backend is not affected). KeepingDeployBlockerCash(frontend bug blocking App deploy).📋 Detailed Analysis
Evidence
Verification
MoneyRequestReportTransactionList.tsxwhich renders the transaction tablegetColumnsToShow()is called, converting from positional to named parameterscolumnsToShowcalculation logic including whenreportDetailsColumnsis usedRoot Cause
The PR made extensive changes to column handling:
getColumnsToShow()from positional to named parameters (destructured object)visibleColumnsparameter logic:(isExpenseReportViewFromIOUReport ? [] : (reportDetailsColumns ?? []))The spacing issue after clicking Columns likely stems from how the column widths are recalculated when
reportDetailsColumnschanges after user interaction with the Columns page. The PR introduced logic that conditionally usesreportDetailsColumnsbased onisExpenseReportViewFromIOUReport, which may cause layout shifts.Files Affected
/home/runner/_work/App/App/src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx(lines 262-273, 674-676)/home/runner/_work/App/App/src/libs/SearchUIUtils.ts(getColumnsToShow function signature change)MelvinBot commentedon Apr 1, 2026
Proposal
What is the root cause of that problem?
The column ordering differs between the default path (no saved columns) and the custom columns path (after clicking Columns → Save) in
getColumnsToShow()insrc/libs/SearchUIUtils.ts.Default path (before Save): The
ColumnVisibilitymap defines COMMENTS before TOTAL_AMOUNT (lines ~4593-4594). SinceObject.keys()preserves insertion order, the rendered column order ends with:..., COMMENTS (36px), TOTAL_AMOUNT (flex:1), placing Amount directly adjacent to the chevron.Custom path (after Save): The user's saved columns end with TOTAL_AMOUNT (from
REPORT_DETAILS_DEFAULT_COLUMNS). Then COMMENTS is auto-appended at the end (line ~4655). This produces:..., TOTAL_AMOUNT (flex:1), COMMENTS (36px), inserting the 36px COMMENTS column between Amount and the chevron.Additionally, the custom path always triggers — even when saving without changes — because the
arraysEqualcheck (line ~4635) compares againstTYPE_DEFAULT_COLUMNS.EXPENSE([RECEIPT, DATE, STATUS, MERCHANT, FROM, CATEGORY, TAG, TOTAL_AMOUNT]), which will never match the report details defaults ([RECEIPT, DATE, MERCHANT, CATEGORY, TAG, TOTAL_AMOUNT]).What changes do you think we should make in order to solve the problem?
In
getColumnsToShow()insrc/libs/SearchUIUtils.ts, when building the custom column result forisExpenseReportView, insert COMMENTS before TOTAL_AMOUNT instead of appending it at the end. This preserves the same relative order (COMMENTS before TOTAL_AMOUNT) as the default path, keeping the Amount column directly adjacent to the chevron in both states.Specifically, after building the result array from
filteredVisibleColumns, find the index of TOTAL_AMOUNT and insert COMMENTS before it (if COMMENTS isn't already in the array), rather than pushing it to the end.What alternative solutions did you explore? (Optional)
Render COMMENTS outside the columns array entirely — Since COMMENTS (chat bubble indicator) is always shown and is not user-configurable, it could be rendered as a fixed element alongside the chevron in
TransactionItemRow, rather than being part of the dynamic columns list. This would be a larger refactor but would permanently avoid ordering issues.Fix the
arraysEqualcomparison — UseREPORT_DETAILS_DEFAULT_COLUMNSinstead ofTYPE_DEFAULT_COLUMNS.EXPENSEwhenisExpenseReportViewis true. This would prevent the custom path from triggering when the user saves without changes, but wouldn't fix the ordering issue if the user actually customizes columns.Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.3 remaining items
m-natarajan commentedon Apr 1, 2026
Chrome / v9.3.51-5
Columns is absent
bandicam.2026-04-01.20-52-40-596.mp4
[-]Web - Expense - Distance between Amount column and chevron changes after applying column[/-][+][Due for payment 2026-04-14] Web - Expense - Distance between Amount column and chevron changes after applying column[/+]melvin-bot commentedon Apr 7, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Apr 7, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.52-9 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-04-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Apr 7, 2026
@QichenZhu 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]
melvin-bot commentedon Apr 7, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)