Skip to content

Rename Search "Date" filter to "Created date" and column to "Created" for expense reports - #99216

Merged
JS00001 merged 34 commits into
Expensify:mainfrom
David-2002065:update/98148-created-date-labels
Sep 21, 2026
Merged

JS00001 merged 34 commits into
Expensify:mainfrom
David-2002065:update/98148-created-date-labels

Conversation

@David-2002065

@David-2002065 David-2002065 commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

Renames the Search date label for the types whose date column is a non-editable created timestamp: type:expense-report and type:task. Following the design call (@dubielzyk-expensify), the short Created is 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 full Created date. Every other type keeps Date: invoice, expense and trip render the editable transaction date, chat has no date column, and the opened single-report table plus every non-Search surface keep Date too.

The rename is gated on a single shared predicate (isCreatedDateType). The column-header builders emit Created; getSearchColumnTranslationKey (Sort by / Edit columns / saved search / Export current view CSV) and the filter-menu label emit Created date. The date column is widened to w80 (from w62) only for those types so the longer Created header doesn't clip against its active-sort caret. getTableMinWidth follows the actual rendered width of the fixed DATE cell (62, or 80 for the widened Created column) instead of the previous 48, which was stale drift from when the cell rendered at w52. The date: query key and sortBy wire value never change, so saved searches, deep links and optimistic rows keep working, so only visible labels move.

Update (per @trjExpensify + @FitseTLT): scope settled on the types whose date column is a non-editable created timestamp: expense-report and task. Invoice keeps Date because on NewDot its date column shows the editable transaction date, so Created would mislabel it.

Fixed Issues

$ #98148
PROPOSAL: #98148 (comment)

Tests

Rename applies to type:expense-report and type:task only (their date column is a non-editable created timestamp). expense, invoice, trip and chat keep Date everywhere, as does the opened single-report table and every non-Search surface.

A. Renamed types: table column header reads Created, every other label reads Created date (do this for BOTH Expense reports and Tasks)

  1. Open Search and switch the type to Expense reports, then repeat all of the below with type Tasks.
  2. Table column header reads Created (not Date), and the header is not clipped by its sort caret when you sort by it. This is the only place the short Created appears.
  3. Open the Filters bar → the date filter row label reads Created date. Apply a date filter and confirm the applied-filter chip in the filters bar reads Created date.
  4. Open the Sort by popup → the option reads Created date. Select it, then reopen the Display popup and confirm the Sort by summary row reads Created date.
  5. Open Edit columns → the column entry reads Created date.
  6. Open the advanced filters Date subpage (Filters → Date) → the page title reads Created date.
  7. Export current view → open the CSV and confirm the exported column header reads Created date.
  8. Save the current view (Save search) → open the saved search's applied-Displays list and confirm both Sort by and Columns show Created date.

B. Untouched types keep Date

  1. Switch the type to Expenses, Invoices, Trips and Chats. For each, verify the column header (where present), Filters row, applied chip, Sort by, Edit columns, Export CSV and Save search all still read Date. (Chats has no date column - just verify no Created label appears anywhere for it.)
  2. Confirm column alignment is unchanged for Expenses, Invoices and Trips - header and rows line up as before (this PR must not widen those).

C. Opened single report + unrelated labels

  1. Open a single expense report → its transaction table header and its Columns menu both still read Date.
  2. Verify an unrelated Date label outside Search (e.g. the IOU/transaction date field) is unchanged.
  • Verify that no errors appear in the JS console

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.

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

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
Image

The type:expense table keeps the Date column header. The rename only applies to the report-style types.

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.
@melvin-bot

melvin-bot Bot commented Aug 21, 2026

Copy link
Copy Markdown

Hey, I noticed you changed src/languages/en.ts in a PR from a fork. For security reasons, translations are not generated automatically for PRs from forks.

If you want to automatically generate translations for other locales, an Expensify employee will have to:

  1. Look at the code and make sure there are no malicious changes.
  2. Run the Generate static translations GitHub workflow. If you have write access and the K2 extension, you can simply click: [this button]

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 --help

Typically, you'd want to translate only what you changed by running npx bun ./scripts/generateTranslations.ts --compare-ref main

@melvin-bot
melvin-bot Bot requested review from arosiclair and joekaufmanexpensify and removed request for a team August 21, 2026 19:37
@melvin-bot

melvin-bot Bot commented Aug 21, 2026

Copy link
Copy Markdown

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

@melvin-bot
melvin-bot Bot removed the request for review from a team August 21, 2026 19:38
@David-2002065
David-2002065 marked this pull request as draft August 21, 2026 19:38

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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

codecov Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ Changes either increased or maintained existing code coverage, great job!

Files with missing lines Coverage Δ
src/components/Search/SearchStaticList.tsx 41.41% <ø> (ø)
src/components/Search/SearchTableHeader.tsx 48.91% <100.00%> (+0.56%) ⬆️
src/components/Search/SortableTableHeader.tsx 45.83% <ø> (ø)
...ents/TransactionItemRow/TransactionItemRowWide.tsx 98.46% <100.00%> (+0.01%) ⬆️
src/components/TransactionItemRow/index.tsx 95.23% <ø> (ø)
src/hooks/useSearchBulkActions.ts 75.93% <100.00%> (ø)
...rsContentPage/SearchAdvancedFiltersContentBase.tsx 0.00% <ø> (ø)
src/pages/Search/SearchColumnsPage.tsx 0.00% <ø> (ø)
src/styles/utils/index.ts 61.79% <100.00%> (+0.04%) ⬆️
...components/Search/FilterDropdowns/DisplayPopup.tsx 0.00% <0.00%> (ø)
... and 8 more
... and 8 files with indirect coverage changes

Comment thread src/components/ColumnsSettingsList.tsx Resolved
Comment thread src/libs/SearchUIUtils.ts Resolved
Comment thread src/libs/SearchUIUtils.ts Resolved
Comment thread src/libs/SearchUIUtils.ts Resolved
Comment thread src/styles/utils/index.ts Resolved
@David-2002065

Copy link
Copy Markdown
Contributor Author

@codex review

@David-2002065

Copy link
Copy Markdown
Contributor Author

Quick heads-up @FitseTLT: the red test (job 4) (NavigateTests, 3 workspace split-navigator cases) is a main-side flake, not this PR. main added the Insights tab to the tab navigator, which pushed WORKSPACE_NAVIGATOR from index 4 to 5, so those tests read undefined off the old hardcoded index. This branch doesn't touch navigation and NavigateTests here is identical to main - it's actually red on a bunch of unrelated PRs right now. There's already a dedicated fix for it in #101016 (looks the navigator up by name instead of index). Once that lands I'll re-sync main and it'll go green.

@FitseTLT

Copy link
Copy Markdown
Contributor

@sakluger a quick confirmation on #99216 (comment)

@FitseTLT

Copy link
Copy Markdown
Contributor

Conflicts @dilshodmackbook-sketch

@FitseTLT

Copy link
Copy Markdown
Contributor

@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
@David-2002065

Copy link
Copy Markdown
Contributor Author

Conflicts @dilshodmackbook-sketch

@FitseTLT done

…d-date-labels

# Conflicts:
#	tests/unit/TransactionGroupListItemTest.tsx
@FitseTLT

Copy link
Copy Markdown
Contributor

Ok @dilshodmackbook-sketch According to the above suggestions you should only apply Created for the table header and all others should be the full Created date Thx

@David-2002065

Copy link
Copy Markdown
Contributor Author

@FitseTLT done. only the table column header shows Created now, everything else (Sort by, Edit columns, saved search, CSV, filter row/chip, date subpage) reads the full Created date. tests + description updated to match, and merged main to clear the conflict

@sakluger

Copy link
Copy Markdown
Contributor

Sorry I missed all these tags! I think it looks great as is 👍.

@FitseTLT

Copy link
Copy Markdown
Contributor

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
@David-2002065

Copy link
Copy Markdown
Contributor Author

@FitseTLT done

@FitseTLT

Copy link
Copy Markdown
Contributor

@JS00001 to you

@JS00001

JS00001 commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Looking, thanks!

@JS00001
JS00001 merged commit 466f53a into Expensify:main Sep 21, 2026
36 of 38 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🚧 JS00001 has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/JS00001 in version: 9.4.91-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@MelvinBot

Copy link
Copy Markdown
Contributor

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, docs/articles/new-expensify/reports-and-expenses/Using-Reports-in-New-Expensify.md. It documented a single Date filter and a single Date column described as "When the report or expense was created" — wrong twice over after this PR, because the label differs on reports and because on expenses that column is the editable expense date, not a created timestamp.

What changed in the docs PR:

Location Change
Filter list Noted the Date filter is named Created date on the Expense Report and Task types
Column list Split the single Date bullet into Created date (the Edit columns name on Reports, with the shortened Created header called out) and Date (the editable expense date on Expenses)
FAQ Added why the label differs by type, and that the date: command and saved searches are unaffected
Keywords Added Created date filter, Created column, Date column renamed

No other article needed a change. Accounting-Search-Shortcuts.md documents expense-type shortcuts, Getting-Started-with-the-Spend-Page.md documents the table inside an open report, and Use-Search-Operators-to-Filter-and-Analyze.md documents the unchanged date: query key. All three correctly keep Date.

Label verification and caveats

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

  1. I could not assign the docs PR to you. GitHub reports your permission on Expensify/App as read, and it refuses both assignment and review requests for non-collaborators (422: Reviews may only be requested from collaborators). The HelpDot label is applied and the PR is a draft with Expensify/pullerbear requested. You are @-mentioned in the body, so you should still get the notification — please assign yourself, or ask someone with write access to assign you.

  2. I did not fix a pre-existing structural violation. That article uses 8 # headings; docs/HELP_AUTHORING_GUIDELINES.md allows only one plus # FAQ. Restructuring it is out of scope for a rename follow-up, so my additions are all ## under the existing layout. Worth a separate cleanup.

I also could not run npx cspell on the changed file — the command was blocked in this environment. The change is plain English with no new product nouns, so I do not expect a spelling failure, but CI will confirm.

@dilshodmackbook-sketch, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR Ready for review

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/lakchote in version: 9.4.91-3 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants