-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Description
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
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 Owner
Current Issue Owner: @truph01Metadata
Metadata
Labels
Type
Projects
Status