-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Report Fields Beta #44695
Remove Report Fields Beta #44695
Conversation
@c3024 PR is ready for your review! |
|
Reviewer Checklist
Screenshots/Videos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -2586,7 +2579,7 @@ function getMoneyRequestReportName(report: OnyxEntry<Report>, policy?: OnyxEntry | |||
const reportFields = isReportSettled ? report?.fieldList : getReportFieldsByPolicyID(report?.policyID ?? '-1'); | |||
const titleReportField = getFormulaTypeReportField(reportFields ?? {}); | |||
|
|||
if (titleReportField && report?.reportName && reportFieldsEnabled(report)) { | |||
if (titleReportField && report?.reportName && isPaidGroupPolicyExpenseReport(report)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop