-
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
Workspaces in money request modal #17132
Conversation
…MoneyRequestModal
…MoneyRequestModal
@fedirjh @techievivek One of you needs to 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] |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-04-11.at.6.32.21.AM.movMobile Web - ChromeScreen.Recording.2023-04-12.at.5.29.30.PM.movMobile Web - SafariSimulator.Screen.Recording.-.iPhone.14.-.2023-04-11.at.06.48.23.mp4DesktopScreen.Recording.2023-04-11.at.6.38.59.AM.moviOSSimulator.Screen.Recording.-.iPhone.14.-.2023-04-11.at.06.44.42.mp4AndroidScreen.Recording.2023-04-11.at.6.58.07.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.
I have addressed this minor bug . Over All code LGTM.
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.
Looking great! Let's just address @fedirjh's comments and we should be good here.
I think that we should update testing steps so that it's clear to QA and they don't fail this PR:
- Verify that you can initiate a money request to the workspace using the global create --note that tapping the
Request $X
button in the final step won't do anything for now since we are still implementing this feature - Verify that you can initiate a money request to the workspace using the plus button from the workspace chat -- note that tapping the
Request $X
button in the final step won't do anything for now since we are still implementing this feature - Verify that you can complete a money request from any person using the global create -- tapping the
Request $X
button should work in this case - Verify that you can complete a money request from any person using the plus button from the direct chat -- tapping the
Request $X
button should work in this case
Co-authored-by: Fedi Rajhi <[email protected]>
Co-authored-by: Fedi Rajhi <[email protected]>
@Julesssss @fedirjh @luacmartins @mountiny Love all your feedback! |
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!
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 and tests well 🚀
✋ 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/Julesssss in version: 1.3.1-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/Julesssss in version: 1.3.1-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.1-3 🚀
|
This PR caused a bug #18708. The filtered reports here App/src/libs/OptionsListUtils.js Line 101 in 9754a32
isOwnPolicyExpenseChat to only get the workspace report and drop the other 1:1 policy expense reports.
|
}], | ||
payPalMeAddress: lodashGet(details, 'payPalMeAddress', ''), | ||
phoneNumber: lodashGet(details, 'phoneNumber', ''), | ||
})); |
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.
Just wondering: Any reason we didn't add isMoneyRequestReport: true
here? Since I believe this is only used in money request 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.
Maybe because of the split case, since those don't create an IOU/Expense report for the group chat?
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.
innnnnnnnnnnnnnnnnnnnnnnteresting that would make sense :D
return { | ||
...expenseReport, | ||
keyForList: expenseReport.policyID, | ||
text: expenseReport.displayName, |
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.
Not exactly a regression but we shouldn't have used expenseReport.displayName
here because the display name is not necessary the policy name. The display name is the policy name only if you are the policy expense chat owner.
This worked fine with money request because you are the only one who can see the participants list (and that's only at the creation phase). But that's not the case with split action.
icons: [{ | ||
source: policyExpenseChatAvatarSource, | ||
name: expenseReport.displayName, | ||
type: CONST.ICON_TYPE_WORKSPACE, | ||
}], |
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.
We should have used the already existing createOption
to generate these options. Using the icons object like this caused #28731
Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/270683
Tests
Request $X
button in the final step won't do anything for now since we are still implementing this featureRequest $X
button in the final step won't do anything for now since we are still implementing this featureRequest $X
button should work in this caseRequest $X
button should work in this caseOffline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
web.mov
Mobile Web - Chrome
chrome.mobile.mov
Mobile Web - Safari
safari.mobile.mov
Desktop
desktop.mov
iOS
ios.native.mov
Android
android.native.mov