-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
refactor: workspace-invite-page to function component #22646
refactor: workspace-invite-page to function component #22646
Conversation
@Santhosh-Sellavel 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] |
@s-alves10 Please check carefully before committing changes. You can check lint before committing using the command |
Can you take a look at the PR again? |
Again lint issues |
Sorry |
Please check again |
@s-alves10 it ran into conflict again please check! |
@s-alves10 Sorry for the delay here. Let's try and get this merged by tomorrow. |
Reviewer Checklist
Screenshots/VideosiOS & Mobile Web - SafariSimulator.Screen.Recording.-.iPhone.14.-.2023-07-19.at.06.05.47.mp4Android & Mobile Web - ChromeScreen.Recording.2023-07-19.at.6.06.49.AM.mov |
Can you check this console error, Screen.Recording.2023-07-19.at.5.57.56.AM.mov |
@Santhosh-Sellavel |
src/libs/PolicyUtils.js
Outdated
function getExcludedUsers(policyMembers, personalDetails) { | ||
const memberEmailsToExclude = [...CONST.EXPENSIFY_EMAILS]; | ||
_.each(policyMembers, (policyMember, accountID) => { | ||
// Policy members that are pending delete or have errors are not valid and we should show them in the invite options (don't exclude them). | ||
if (policyMember.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE || !_.isEmpty(policyMember.errors)) { | ||
return; |
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.
JS Doc is missing here
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.
@s-alves10 Can you fix this alone, please?
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.
done
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, just a couple of items for you to look at!
Approving to get a review from @pecanoro!
bump @pecanoro! |
I replied to both comments for clarification. |
Please take a look again |
@s-alves10 @Santhosh-Sellavel Did you both retest the PR after all the changes? I did and it seems to be working but making sure I am not the only one that tested it after the last commits |
@pecanoro I didn't yet I'll retest again, and let you know! |
@pecanoro |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Tested well for me too! |
🚀 Deployed to staging by https://github.com/pecanoro in version: 1.3.46-0 🚀
|
🚀 Deployed to staging by https://github.com/pecanoro in version: 1.3.47-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.46-2 🚀
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.3.47-6 🚀
|
Details
WorkspaceInvitePage
was refactored to function componentFixed Issues
$ #16305
PROPOSAL: #16305 (comment)
Tests
Next
andInvite
buttonsOffline tests
Next
andInvite
buttonsQA Steps
Next
andInvite
buttonsPR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
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)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
Web
16305_mac_chrome.mp4
Mobile Web - Chrome
16305_android_chrome.mp4
Mobile Web - Safari
16305_ios_safari.mp4
Desktop
16305_mac_desktop.mp4
iOS
16305_ios_native.mp4
Android
16305_android_native.mp4