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
Web - Spend - Paid date is truncated in table view #105276
Version Number: 9.5.24-5 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:#103956 Email or phone of affected tester (no customers):applausetester+ssndjois2jd1@applause.expensifail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.5 / Chrome App Component: Search
Action Performed:
Precondition:
There is at least one paid expense from previous year.
👋 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.
Root cause: The expanded "Group by" table never widens the Paid column for past-year dates. The column stays at 62px, so "Mar 12, 2025" gets cut off. The ungrouped table handles this correctly.
Recommendation: roll forward. The fix is about 15 lines across 3 files. A revert would remove a 20-file feature to fix one column width.
Each grouped transaction carries shouldShowYearPaid (SearchUIUtils.ts#L2043). However, neither TransactionGroupListExpanded.tsx nor GroupHeader.tsx reads it. As a result, paidColumnSize is undefined in the row and the cell stays narrow (TransactionItemRowWide.tsx#L170, #L310-L323).
The header and rows are both 62px, so the columns align and the text is just truncated.
Side note: Submitted, Approved, Posted and Exported have the same gap in expanded groups. Based on the code, they likely truncate past-year dates in production already. The PR copied that existing pattern. Fixing them in the same change is optional for this blocker.
The fix sizes the Paid column in expanded groups the same way as the ungrouped table: getGroupColumnWidthFlags will also check shouldShowYearPaid, and TransactionGroupListExpanded and GroupHeader will pass the size to the rows and the sub-header.
Submitted and Approved have the same gap in expanded groups (likely already on production), and it's the same few lines, so I can fix them in the same PR. Let me know if you'd rather keep it to Paid only.
Please re-state the problem that we are trying to solve in this issue.
In Spend > Expenses, when filtering for Paid expenses from a past year (e.g. Status > Paid, Date > Last year), grouping by any attribute (e.g. Group by > From), and displaying the Paid column, expanding a group shows the Paid date truncated with an ellipsis (e.g. Apr 1, ...) instead of showing the full date (Apr 1, 2025).
What is the root cause of that problem?
There are two related root causes introduced with the new Paid column in grouped table view:
In src/libs/SearchUIUtils.ts, inside processTransactionEntry (which computes preprocessing flags during classifyAndPreprocess), the logic checks report?.submitted and report?.approved for past-year dates, but does not check report?.paid:
constreport=data[`${ONYXKEYS.COLLECTION.REPORT}${transaction.reportID}`];if(!ctx.shouldShowYearSubmitted&&report?.submitted&&DateUtils.doesDateBelongToAPastYear(report.submitted)){ctx.shouldShowYearSubmitted=true;}if(!ctx.shouldShowYearApproved&&report?.approved&&DateUtils.doesDateBelongToAPastYear(report.approved)){ctx.shouldShowYearApproved=true;}// report?.paid check is missing!
Consequently, ctx.shouldShowYearPaid is not set to true for transactions in expense search, leaving transaction.shouldShowYearPaid as false.
In grouped layouts (src/components/Search/SearchList/ListItem/TransactionGroupListExpanded.tsx and GroupHeader.tsx), column sizing is derived via getGroupColumnWidthFlags:
getGroupColumnWidthFlags only evaluates transaction.shouldShowYear (for the created date), and ignores shouldShowYearPaid (as well as shouldShowYearSubmitted, shouldShowYearApproved, shouldShowYearPosted, shouldShowYearExported).
TransactionGroupListExpanded.tsx never calculates paidColumnSize or passes it to <TransactionItemRow>. It also omits shouldShowYearPaid when rendering <SearchTableHeader>.
GroupHeader.tsx omits shouldShowYearPaid when rendering <SearchTableHeader>.
Because paidColumnSize is undefined in <TransactionItemRow>, isPaidColumnWide evaluates to false in TransactionItemRowWide.tsx, applying narrow width variables.w62 (62px) instead of wide width variables.w102 (102px). A 4-digit year date cannot fit into 62px and gets truncated with an ellipsis.
What changes do you think we should make in order to solve the problem?
In src/libs/SearchUIUtils.ts:
In processTransactionEntry, add the check for report?.paid:
In GroupColumnWidthFlags and getGroupColumnWidthFlags, track and return shouldShowYearPaid, shouldShowYearSubmitted, shouldShowYearApproved, shouldShowYearPosted, and shouldShowYearExported across the group's transactions.
In src/components/Search/SearchList/ListItem/GroupHeader.tsx:
Pass shouldShowYearPaid, shouldShowYearSubmitted, shouldShowYearApproved, shouldShowYearPosted, and shouldShowYearExported from getGroupColumnWidthFlags to <SearchTableHeader>.
In src/components/Search/SearchList/ListItem/TransactionGroupListExpanded.tsx:
Derive paidColumnSize (as well as submittedColumnSize, approvedColumnSize, postedColumnSize, and exportedColumnSize) using the flags from getGroupColumnWidthFlags.
Pass shouldShowYearPaid to <SearchTableHeader>.
Pass paidColumnSize (and the other column sizes) to <TransactionItemRow>.
What alternative solutions did you explore? (Optional)
Relying solely on item.shouldShowYearPaid at the individual row level without updating getGroupColumnWidthFlags was considered. However, the table header in GroupHeader.tsx and the rows in TransactionGroupListExpanded.tsx must share the exact same column width calculation to prevent header and column misalignment when horizontal scrolling occurs.
What automated tests can you add to prevent this from re-occurring?
Add a unit test in tests/unit/Search/SearchUIUtilsTest.ts verifying that classifyAndPreprocess and getGroupColumnWidthFlags properly flag shouldShowYearPaid: true when transactions belong to a reimbursed report with a past-year paid date.
Activity
applause-bot commentedon Oct 28, 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/9ee0f4c76c3c6caf0cb76543641d04de8c1bde4130702e2593355b89bdc4eb7c
melvin-bot commentedon Oct 28, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #103956
melvin-bot commentedon Oct 28, 2026
@JS00001 @FitseTLT @garrettmknight you have been assigned to this deploy blocker because you reviewed the offending PR: #103956
melvin-bot commentedon Oct 28, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Oct 28, 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:
MelvinBot commentedon Oct 28, 2026
Deploy Blocker Analysis
Causing PR: feat: add a Paid column option to the Spend reports table (author
sam5235). High confidence. It is the only PR on Deploy Checklist: New Expensify 2026-10-27 that touches these files.Root cause: The expanded "Group by" table never widens the Paid column for past-year dates. The column stays at 62px, so "Mar 12, 2025" gets cut off. The ungrouped table handles this correctly.
Recommendation: roll forward. The fix is about 15 lines across 3 files. A revert would remove a 20-file feature to fix one column width.
SearchUIUtils.tsgetGroupColumnWidthFlags: addshouldShowYearPaid, set it fromtransaction.shouldShowYearPaid, and include it in the early-break check.TransactionGroupListExpanded.tsx: passshouldShowYearPaidtoSearchTableHeader, and passpaidColumnSize(WIDEorNORMAL) to eachTransactionItemRow.GroupHeader.tsx: passshouldShowYearPaidto its stickySearchTableHeaderso the header matches the rows.If a fix can't land in time, revert the PR.
Investigation details
isPaidColumnWideis set, otherwise 62px: styles/utils/index.ts#L2052-L2054.shouldShowYearPaidand passespaidColumnSizeto the row (TransactionListItemWide.tsx#L144, #L226). Its header does the same (SearchTableHeader.tsx#L718).shouldShowYearPaid(SearchUIUtils.ts#L2043). However, neitherTransactionGroupListExpanded.tsxnorGroupHeader.tsxreads it. As a result,paidColumnSizeisundefinedin the row and the cell stays narrow (TransactionItemRowWide.tsx#L170, #L310-L323).view run
JS00001 commentedon Oct 28, 2026
yeah we can demote, @FitseTLT @sam5235 lets fix this in a follow up please
sam5235 commentedon Oct 28, 2026
Thanks, I'll raise the follow-up PR today.
The fix sizes the Paid column in expanded groups the same way as the ungrouped table:
getGroupColumnWidthFlagswill also checkshouldShowYearPaid, andTransactionGroupListExpandedandGroupHeaderwill pass the size to the rows and the sub-header.Submitted and Approved have the same gap in expanded groups (likely already on production), and it's the same few lines, so I can fix them in the same PR. Let me know if you'd rather keep it to Paid only.
apoorv-xs commentedon Oct 28, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
In Spend > Expenses, when filtering for Paid expenses from a past year (e.g.
Status > Paid,Date > Last year), grouping by any attribute (e.g.Group by > From), and displaying thePaidcolumn, expanding a group shows the Paid date truncated with an ellipsis (e.g.Apr 1, ...) instead of showing the full date (Apr 1, 2025).What is the root cause of that problem?
There are two related root causes introduced with the new
Paidcolumn in grouped table view:src/libs/SearchUIUtils.ts, insideprocessTransactionEntry(which computes preprocessing flags duringclassifyAndPreprocess), the logic checksreport?.submittedandreport?.approvedfor past-year dates, but does not checkreport?.paid:Consequently,
ctx.shouldShowYearPaidis not set totruefor transactions in expense search, leavingtransaction.shouldShowYearPaidasfalse.src/components/Search/SearchList/ListItem/TransactionGroupListExpanded.tsxandGroupHeader.tsx), column sizing is derived viagetGroupColumnWidthFlags:getGroupColumnWidthFlagsonly evaluatestransaction.shouldShowYear(for the created date), and ignoresshouldShowYearPaid(as well asshouldShowYearSubmitted,shouldShowYearApproved,shouldShowYearPosted,shouldShowYearExported).TransactionGroupListExpanded.tsxnever calculatespaidColumnSizeor passes it to<TransactionItemRow>. It also omitsshouldShowYearPaidwhen rendering<SearchTableHeader>.GroupHeader.tsxomitsshouldShowYearPaidwhen rendering<SearchTableHeader>.Because
paidColumnSizeis undefined in<TransactionItemRow>,isPaidColumnWideevaluates tofalseinTransactionItemRowWide.tsx, applying narrow widthvariables.w62(62px) instead of wide widthvariables.w102(102px). A 4-digit year date cannot fit into 62px and gets truncated with an ellipsis.What changes do you think we should make in order to solve the problem?
src/libs/SearchUIUtils.ts:processTransactionEntry, add the check forreport?.paid:GroupColumnWidthFlagsandgetGroupColumnWidthFlags, track and returnshouldShowYearPaid,shouldShowYearSubmitted,shouldShowYearApproved,shouldShowYearPosted, andshouldShowYearExportedacross the group's transactions.src/components/Search/SearchList/ListItem/GroupHeader.tsx:shouldShowYearPaid,shouldShowYearSubmitted,shouldShowYearApproved,shouldShowYearPosted, andshouldShowYearExportedfromgetGroupColumnWidthFlagsto<SearchTableHeader>.src/components/Search/SearchList/ListItem/TransactionGroupListExpanded.tsx:paidColumnSize(as well assubmittedColumnSize,approvedColumnSize,postedColumnSize, andexportedColumnSize) using the flags fromgetGroupColumnWidthFlags.shouldShowYearPaidto<SearchTableHeader>.paidColumnSize(and the other column sizes) to<TransactionItemRow>.What alternative solutions did you explore? (Optional)
Relying solely on
item.shouldShowYearPaidat the individual row level without updatinggetGroupColumnWidthFlagswas considered. However, the table header inGroupHeader.tsxand the rows inTransactionGroupListExpanded.tsxmust share the exact same column width calculation to prevent header and column misalignment when horizontal scrolling occurs.What automated tests can you add to prevent this from re-occurring?
Add a unit test in
tests/unit/Search/SearchUIUtilsTest.tsverifying thatclassifyAndPreprocessandgetGroupColumnWidthFlagsproperly flagshouldShowYearPaid: truewhen transactions belong to a reimbursed report with a past-year paid date.Contributor details:
FitseTLT commentedon Oct 28, 2026
@JS00001 this problem already occurs for submitted and approved too should we fix that too?
melvin-bot commentedon Oct 28, 2026
@FitseTLT — to hire @sam5235 on Upwork, add the External label so a job is created and the offer is sent automatically.
JS00001 commentedon Oct 29, 2026
yeah lets fix for all of them