Skip to content

[Due for payment 2026-04-14] Web - Expense - Distance between Amount column and chevron changes after applying column #86820

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.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:

  1. Go to staging.new.expensify.com
  2. Go to workspace chat.
  3. Create two expenses.
  4. Open the report.
  5. Click Columns.
  6. 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.

Workaround:

Unknown

Platforms:

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

Screenshots/Videos

Image
Bug7118426_1774990958601.21.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @QichenZhu

Activity

  1. added
    DeployBlockerCash
    Daily
    Bug
    DeployBlocker
    on Apr 1, 2026
  2. melvin-bot commented on Apr 1, 2026

    @melvin-bot

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

  3. melvin-bot commented on Apr 1, 2026

    @melvin-bot

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

  4. github-actions commented on Apr 1, 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.
  5. OSBotify commented on Apr 1, 2026

    @OSBotify
    Contributor

    🔍 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:

    1. The causing PR is clearly identified and directly related to the affected feature
    2. The bug is cosmetic/UI but affects user experience
    3. This is a new feature that can be safely reverted without affecting existing functionality
    4. 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).

    📋 Detailed Analysis

    Evidence

    Verification

    • PR Fix report custom columns blockers #83981 modifies MoneyRequestReportTransactionList.tsx which renders the transaction table
    • The PR added a new "Columns" button in lines 674-676
    • The PR changed how getColumnsToShow() is called, converting from positional to named parameters
    • The PR modified columnsToShow calculation logic including when reportDetailsColumns is used

    Root Cause

    The PR made extensive changes to column handling:

    1. Added the Columns button that navigates to column settings
    2. Changed getColumnsToShow() from positional to named parameters (destructured object)
    3. Modified the visibleColumns parameter logic: (isExpenseReportViewFromIOUReport ? [] : (reportDetailsColumns ?? []))
    4. 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.

    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)
  6. removed
    DeployBlocker
    on Apr 1, 2026
  7. MelvinBot commented on Apr 1, 2026

    @MelvinBot
    Contributor

    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() 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)

    1. 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.

    2. 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.

  8. 3 remaining items

  9. m-natarajan commented on Apr 1, 2026

    @m-natarajan

    Chrome / v9.3.51-5
    Columns is absent

    bandicam.2026-04-01.20-52-40-596.mp4
  10. removed
    DeployBlockerCash
    on Apr 2, 2026
  11. added
    Weekly
    Awaiting Payment
    and removed
    Hourly
    on Apr 7, 2026
  12. 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
  13. removed
    Reviewing
    on Apr 7, 2026
  14. melvin-bot commented on Apr 7, 2026

    @melvin-bot

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

  15. melvin-bot commented on Apr 7, 2026

    @melvin-bot

    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:

    • @QichenZhu requires payment through NewDot Manual Requests
    • @mukhrr requires payment (Needs manual offer from BZ)
  16. melvin-bot commented on Apr 7, 2026

    @melvin-bot

    @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]

  17. melvin-bot commented on Apr 7, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

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

Metadata

Metadata

Labels

Awaiting PaymentBugEngineeringWeekly

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions