Remove Report Fields Beta#44695
Conversation
|
@c3024 PR is ready for your review! |
|
|
Reviewer Checklist
Screenshots/Videos |
| const titleReportField = getFormulaTypeReportField(reportFields ?? {}); | ||
|
|
||
| if (titleReportField && report?.reportName && reportFieldsEnabled(report)) { | ||
| if (titleReportField && report?.reportName && isPaidGroupPolicyExpenseReport(report)) { |
There was a problem hiding this comment.
These checks need to be updated from isPaidGroupPolicyExpenseReport to isControlPolicyExpenseReport
Report fields are going to be a control only feature (unless it's the title field)
There was a problem hiding this comment.
@thienlnam hi, this logic seems to actually check for the title field and return the report name according to formula. So we probably do want this as it is right now?
Same for this line which is creating an optimistic report and getting the title field.
The check on this line and is for showing the Report Fields in the MoneyReportView. Changing this to isControlPolicyExpenseReport means we would hide the title field, since the render logic is coupled with report fields. I could fix it if you suggest (We would change the getAvailableReportFields to two functions, one which returns the title, other handling remaining fields)
If we change the check, it might flag as a regression since Report Fields are still configurable on OldDot for Collect Policies:
Video
Screen.Recording.2024-07-12.at.9.01.23.AM.mov
There was a problem hiding this comment.
Ah yeah that's a fair point about how they are coupled right now. In that case, we probably don't need to do anything right now - we'll handle that later when we remove it from collect polcies
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/thienlnam in version: 9.0.7-3 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|






Details
Fixed Issues
$ #44621
PROPOSAL: #44621 (comment)
Tests
Prerequisite:
Configure Custom Report Fields for a paid policy.Offline tests
Same as Tests step
QA Steps
Same as Tests step
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop