Repository navigation
Rename Search "Date" filter to "Created date" and column to "Created" for expense reports - #99216
Conversation
Add dedicated search.filters.createdDate / search.filters.created keys (all 11 locales), repoint FILTER_VIEW_MAP[DATE] and getSearchColumnTranslationKey plus the three SearchTableHeader builders, and widen the narrow DATE column (w62 -> w80) so "Created" + sort arrow fit without truncation. common.date is left untouched.
getTableMinWidth adds 48 for DATE vs 72 for SUBMITTED/APPROVED/POSTED; the "Created" header needs the same room, so bump it to 72 to keep the fixed cell width (w80) and the horizontal-scroll min-width consistent.
Per the issue clarification, keep "Date" for type:expense (and the opened single-report table) and show "Created"/"Created date" only for type:expense-report. Thread the active Search type through the date label sources (getSearchColumnTranslationKey, filter-menu labels via getFilterViewLabelKey) and gate the DATE column widening on expense-report.
Asserts getSearchColumnTranslationKey, getFilterViewLabelKey, the expense column builder and getTableMinWidth all keep "Date" for every type except expense-report, so the scoped behavior can't silently regress to all types.
…stay Date) Per the team clarification (invoice is treated like a report, trip is an expense), the report-style rename now covers type:invoice as well as type:expense-report. Introduce an isCreatedDateType(type) predicate (expense-report OR invoice) and use it at every date-label source: getSearchColumnTranslationKey, getFilterViewLabelKey, getTableMinWidth, the SortableTableHeader isDateColumnCreated prop, and getExpenseHeaders (now type-aware so shared expense/trip/opened-report callers stay on Date).
…n misalignment) The header/min-width for type:invoice now render the wider Created column, but invoice results render through ExpenseFlatSearchView -> TransactionItemRow (the same transaction-row path as expense), whose DATE cell was fixed at w62. That left the invoice header at w80 while its rows stayed w62 -> misaligned columns. Thread an isDateColumnCreated flag from ExpenseFlatSearchView (true only for type:invoice) through TransactionListItem -> TransactionItemRow to the DATE cell so rows match the header. The opened single-report table passes nothing (defaults false), so it stays on the narrow Date column.
|
Hey, I noticed you changed If you want to automatically generate translations for other locales, an Expensify employee will have to:
Alternatively, if you are an external contributor, you can run the translation script locally with your own OpenAI API key. To learn more, try running: npx bun ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
|
@arosiclair Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a205a3b023
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
… with the widened Created header
|
@codex review |
|
Quick heads-up @FitseTLT: the red |
|
@sakluger a quick confirmation on #99216 (comment) |
|
Conflicts @dilshodmackbook-sketch |
|
@trjExpensify No getting a response from @sakluger So should we proceed assuming your view is correct? |
…d-date-labels # Conflicts: # src/components/Search/FilterDropdowns/SortByPopup.tsx
@FitseTLT done |
…d-date-labels # Conflicts: # tests/unit/TransactionGroupListItemTest.tsx
|
Ok @dilshodmackbook-sketch According to the above suggestions you should only apply |
…d-date-labels # Conflicts: # tests/unit/TransactionGroupListItemTest.tsx
|
@FitseTLT done. only the table column header shows |
|
Sorry I missed all these tags! I think it looks great as is 👍. |
|
conflicts @dilshodmackbook-sketch |
…d-date-labels # Conflicts: # src/languages/de.ts # src/languages/el.ts # src/languages/es.ts # src/languages/fr.ts # src/languages/it.ts # src/languages/ja.ts # src/languages/nl.ts # src/languages/pl.ts # src/languages/pt-BR.ts # src/languages/zh-hans.ts
|
@FitseTLT done |
|
@JS00001 to you |
|
Looking, thanks! |
|
🚧 JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.4.91-0 🚀
|
|
Yes, help site changes are required. Draft PR: Docs updates for E/A#99216 rename Search Date column to Created date One article was wrong, What changed in the docs PR:
No other article needed a change. Label verification and caveatsLabels were verified in the running app, not read off the diff. On the Expense Report type: column header Created; Filters row, Sort by and Edit columns all Created date. On the Expense type: Date everywhere. Toolbar controls confirmed as Filters, Display, Save, Create; Filters type options confirmed as Expense, Expense Report, Chat, Trip, Task. Screenshots are in the docs PR body. Two things to flag:
I also could not run @dilshodmackbook-sketch, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.4.91-3 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
Renames the Search date label for the types whose date column is a non-editable created timestamp:
type:expense-reportandtype:task. Following the design call (@dubielzyk-expensify), the shortCreatedis used only for the table column header; every other label source (Sort by, Edit columns, saved search, Export current view CSV, the filter row/chip and the filter subpage title) uses the fullCreated date. Every other type keepsDate:invoice,expenseandtriprender the editable transaction date,chathas no date column, and the opened single-report table plus every non-Search surface keepDatetoo.The rename is gated on a single shared predicate (
isCreatedDateType). The column-header builders emitCreated;getSearchColumnTranslationKey(Sort by / Edit columns / saved search / Export current view CSV) and the filter-menu label emitCreated date. The date column is widened tow80(fromw62) only for those types so the longerCreatedheader doesn't clip against its active-sort caret.getTableMinWidthfollows the actual rendered width of the fixed DATE cell (62, or80for the widened Created column) instead of the previous48, which was stale drift from when the cell rendered atw52. Thedate:query key andsortBywire value never change, so saved searches, deep links and optimistic rows keep working, so only visible labels move.Fixed Issues
$ #98148
PROPOSAL: #98148 (comment)
Tests
Rename applies to
type:expense-reportandtype:taskonly (their date column is a non-editable created timestamp).expense,invoice,tripandchatkeepDateeverywhere, as does the opened single-report table and every non-Search surface.A. Renamed types: table column header reads
Created, every other label readsCreated date(do this for BOTHExpense reportsandTasks)Expense reports, then repeat all of the below with typeTasks.Created(notDate), and the header is not clipped by its sort caret when you sort by it. This is the only place the shortCreatedappears.Created date. Apply a date filter and confirm the applied-filter chip in the filters bar readsCreated date.Created date. Select it, then reopen the Display popup and confirm the Sort by summary row readsCreated date.Created date.Created date.Created date.Created date.B. Untouched types keep
DateExpenses,Invoices,TripsandChats. For each, verify the column header (where present), Filters row, applied chip, Sort by, Edit columns, Export CSV and Save search all still readDate. (Chats has no date column - just verify noCreatedlabel appears anywhere for it.)Expenses,InvoicesandTrips- header and rows line up as before (this PR must not widen those).C. Opened single report + unrelated labels
Date.Datelabel outside Search (e.g. the IOU/transaction date field) is unchanged.Offline tests
Same as Tests. This is a pure relabel with no API calls, so behavior is identical online and offline.
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2026-08-23.at.11.13.57.mov
Android: mWeb Chrome
PR99216_mWeb_responsive.mp4
iOS: Native
Screen.Recording.2026-08-23.at.12.03.23.mov
iOS: mWeb Safari
PR99216_mWeb_responsive.mp4
MacOS: Chrome / Safari
demo-video.mp4
The
type:expensetable keeps theDatecolumn header. The rename only applies to the report-style types.