Skip to content

Align report details custom columns#93530

Draft
zhenzheng1-ctrl wants to merge 1 commit into
Expensify:mainfrom
zhenzheng1-ctrl:fix-report-details-column-availability
Draft

Align report details custom columns#93530
zhenzheng1-ctrl wants to merge 1 commit into
Expensify:mainfrom
zhenzheng1-ctrl:fix-report-details-column-availability

Conversation

@zhenzheng1-ctrl

Copy link
Copy Markdown

Summary

Align the Report Details custom column list with the expense Search custom columns for transaction-level fields that can vary within a report.

This adds the missing Report Details options for:

  • Posted
  • Attendees
  • Total per attendee
  • Original amount

It also adds a shared availability config so future expense custom columns require an explicit Search vs Report Details decision, and updates getColumnsToShow() so the newly selectable data-driven columns are not filtered out when a transaction has the relevant data.

Issue: #93522

Tests

  • npx prettier --check src/CONST/index.ts src/libs/SearchUIUtils.ts tests/unit/Search/SearchUIUtilsTest.ts
  • git diff --check HEAD~1..HEAD

I also attempted a targeted Jest run:

  • npx jest tests/unit/Search/SearchUIUtilsTest.ts --runInBand -t "selected report detail columns|expense search and report details columns aligned"

The Jest suite did not start in this local Windows sparse checkout because module resolution failed before test execution:

  • Cannot find module '@react-navigation/native' from 'src/libs/ReportUtils.ts'

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.

1 participant