Skip to content

[CFI] [$1000] Add custom columns to the report details view #82252

@JS00001

Description

@JS00001

Coming from: expensify.slack.com/archives/C03U7DCU4/p1768343665411189

We'd like to add support for custom columns in the report details page


Updating the design for the report details page layout

Start by removing the 'Report Layout' option from the 'More' menu in the report details RHP
Move the group by category/tag list option to the report details page as a dropdown
Add the 'Columns' button to the top of the report details page as well

Image

Adding functionality

When the user clicks Customize columns, we will open the same columns RHP as we do on the search page.

We will refactor SearchColumnsPage.tsx to be a common component (which will take in a list of current columns). When the user saves the changes in the report details column RHP, we will call SetReportDetailsColumns with the new value for the columns

We will support the same columns functionality as the reports page, including dragging to re-order, selecting and un-selecting columns, and horizontal scrolling (when needed) in the report view


Storing the users preferences

Unlike custom columns in the reports page, we will store the users report layout preferences (column-wise) on the account level. We return a NVP named reportDetailsColumns that is an array of strings (column Ids). To store the users preferences/update the NVP, we've added a new command:

New API Command Details
Command Name: SetReportDetailsColumns
Params:
string authToken
string columns - The json stringified value of the columns to show. This is an array of column ids (strings)

Issue OwnerCurrent Issue Owner: @truph01

Metadata

Metadata

Labels

ExternalAdded to denote the issue can be worked on by a contributorNewFeatureSomething to build that is a new item.ReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions