-
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
withFullPolicy refactor redux #11155
Conversation
Merge conflict removed and ready for review @youssef-lr |
src/components/RoomNameInput.js
Outdated
@@ -114,7 +111,6 @@ RoomNameInput.defaultProps = defaultProps; | |||
|
|||
export default compose( | |||
withLocalize, | |||
withFullPolicy, | |||
withOnyx({ | |||
reports: { |
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.
Might be out of scope of this PR but I'm curious, are these Onyx keys needed in this components?
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.
Doesn't look like it. I'll remove those too since its a quick improvement
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.
Tests well and code LGTM! But probably best to get a second review in case I missed something.
PR Reviewer Checklist
|
@youssef-lr pushed the change for removing those unused onyx keys. I think you might need to check off the boxes in the OP to get the checklist to pass @techievivek you mind giving this an extra review as well? |
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.
Looks good to me. 🎉
@techievivek looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
Tests were passing and the checklist was all good. |
✋ 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 @techievivek in version: 1.2.6-0 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.2.6-0 🚀
|
Details
This is a redo of this original PR that was reverted due to a regression with custom unit functionality on the Reimburse expenses page.
In addition to the changes detailed in that PR I've also fixed the way
withPolicy
is being used in theWorkspaceReimbursePage
andWorkspaceReimburseView
so that the policy is properly connected and passed through to the View.Fixed Issues
$ https://github.com/Expensify/Expensify/issues/217650
Tests
Verify you can navigate to the following pages and view policy data on them without issue
Verify you can navigate to the following pages without issue
Verify functionality on the Reimburse expenses page
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)QA Steps
Same as Tests
Screenshots
Web
Screen.Recording.2022-09-20.at.6.10.02.PM.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android