-
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
fix: Report fields row is not grayed out when added/edited offline #44827
Conversation
Merge main to fix branch
cc @rezkiy37 @waterim @shubham1206agra @rushatgabhane can you please review this PR as well? thanks |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
@mollfpr I am not sure, but I think this falls under regression. |
@shubham1206agra Yeah it seems regression from #43943. @mountiny How do we resolve this? Should we handle the issue as a regular issue, since we already have selected solution. |
@mollfpr I think ideally we handle it with @rushatgabhane or @shubham1206agra who help with the project Can I offer you $50 for help with the proposal? @shubham1206agra @rushatgabhane who can take this review? |
Sounds good to me. |
@@ -64,13 +64,14 @@ function WorkspaceReportFieldsPage({ | |||
if (!policy) { | |||
return []; | |||
} | |||
return Object.values(filteredPolicyFieldList).map((reportField) => ({ | |||
return Object.entries(filteredPolicyFieldList).map(([reportKey, reportField]) => ({ |
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.
return Object.entries(filteredPolicyFieldList).map(([reportKey, reportField]) => ({ | |
return Object.entries(filteredPolicyFieldList).map(([reportFieldKey, reportField]) => ({ |
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.
I have renamed reportKey to reportFieldKey.
I think this PR will be implemented differently. |
Details
Fixed Issues
$ #44798
PROPOSAL: #44798 (comment)
Tests
Precondition: User should have beta access
Verify that added report field is no longer grayed out
Verify that no errors appear in the JS console
Offline tests
QA Steps
Same as Test steps
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.mp4
Android: mWeb Chrome
Android.chrome.mp4
iOS: Native
iOS.mp4
iOS: mWeb Safari
iOS.safari.mp4
MacOS: Chrome / Safari
desktop.web.mp4
MacOS: Desktop
Desktop.mp4