feat: add three report custom columns to expense tables#90937
Conversation
|
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 ts-node ./scripts/generateTranslations.ts --helpTypically, you'd want to translate only what you changed by running |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
8c290e3 to
228c41b
Compare
|
@shubham1206agra 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] |
My understanding is that we were adding all the missing columns from this template and not only the referenced ones:
@twisterdotcom am I right or did I misunderstand the issue's OP? |
|
Oh, ignore me. Now that I saw the issue title, I see I misunderstood it! |
flaviadefaria
left a comment
There was a problem hiding this comment.
From a product standpoint, the fix looks good to me.
228c41b to
2494d03
Compare
…e-custom-columns # Conflicts: # src/libs/SearchUIUtils.ts
|
Let me try asking Melvin this first before I bring in Franc/Carlos. @MelvinBot How does the IS allow freemarker to print report.submitterPayrollID when submitterPayrollID isn't natively stored in the report object? |
|
The same data is also accessible via the formula system as Supporting code references
|
|
@shubham1206agra Kind ping here. Thanks |
1 similar comment
|
@shubham1206agra Kind ping here. Thanks |
|
@twisterdotcom needs to pull an engineer here to get the fields working. @KJ21-ENG The table should hide the columns if the value is missing for all rows. Please work on that |
…e-custom-columns # Conflicts: # src/libs/SearchUIUtils.ts
…e-custom-columns # Conflicts: # src/libs/SearchUIUtils.ts
|
@twisterdotcom Kind Ping Here. Thanks. |
@twisterdotcom Kind Ping Here. Thanks. |
|
/codex review |
|
Hello, sorry for the delay. What do we need me for here? We need to do some backend work to make the custom field 2 value available? |
|
@twisterdotcom Yes, exactly. |
|
Posting in the Backend Contributor channel now: https://expensify.slack.com/archives/C086VHWPPUM/p1780050090461409 |
@twisterdotcom Did we get any response here? |
|
@twisterdotcom Thanks! |
|
@KioCoan Any update on this ? Thanks! |
|
@KJ21-ENG working on it. Should have a BE PR soon. |
|
@KioCoan Ping me once done so I can test FE chanegs. Thanks! |
|
@KJ21-ENG a few people are OOO this week, so the auto assigned reviewer change a couple times. I requested the timing for the updated queries and we should be progressing soon. |
|
@KioCoan Any update on this ? Thanks! |
|
I was able to get the updated queries timings, just waiting for the final review. |
Oh Great, Thanks! |
|
BE PR merged, it will be available in the next staging deploy. |
|
@KJ21-ENG BE changes are deployed. You should be good to go. |
Oh great, I will wrap up the rest of the things on my side and let @shubham1206agra know. |
|
@KJ21-ENG Conflicts |
Yes, I will resolve them |
…e-custom-columns # Conflicts: # src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx # src/libs/ReportUtils.ts # src/libs/SearchUIUtils.ts
|
@shubham1206agra Kind ping here. Thanks! |
Explanation of Change
Adds Custom Field 1, Custom Field 2, and International reimbursement IDs as configurable report custom columns for expense search, expense report search, and report details tables.
The new columns render from the report fields named in the issue only:
report.submitterUserID,report.submitterPayrollID, andreport.orderDealNumbers. Nopolicy.employeeListfallback is used.Fixed Issues
$ #90508
PROPOSAL: #90508 (comment)
Tests
Offline tests
N/A. This PR only adds display/sort support for existing report fields and does not add a new network write path.
QA Steps
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, 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.ScrollViewcomponent to make it scrollable when more elements are added to the page.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
Native uses narrow layout and the column picker is intentionally not exposed there.
Android: mWeb Chrome
mWeb uses narrow layout and the column picker is intentionally not exposed there.
iOS: Native
Native uses narrow layout and the column picker is intentionally not exposed there.
iOS: mWeb Safari
mWeb uses narrow layout and the column picker is intentionally not exposed there.
MacOS: Chrome / Safari
ezyZip.35.mp4