-
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
Refactor Settlement Button for reuse in both Details and Confirm screens #6651
Conversation
Use recipient because it explains the significance of props.participants[0] better Define whether to use venmo or paypal via props; Clean up currency code changes lesss changes
575de5b
to
2f679df
Compare
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.
Wow, thanks for the refactor! This looks great
Thanks @nickmurray47 gonna merge this so we can unblock some of the other issues. @marcochavezf let me know if you have any thoughts and I can create a follow up to address them! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@marcaaron The changes look good, I found a minor issue though. My currency by default is MXN and when I change it to USD doesn't seem to reflect in the Screen.Recording.2021-12-09.at.15.28.49.mov |
Oh no, hmm did I break it? Can you check and see how it works on production? |
It looks like changing the currency there will update the IOU currency App/src/pages/iou/IOUCurrencySelection.js Lines 150 to 157 in c3b8d5a
Maybe @nickmurray47 knows what the expected behavior should be eventually. But seems like we were referring to the local currency before and not the IOU currency (at least for the IOU send feature) App/src/components/IOUConfirmationList.js Lines 137 to 139 in c1d2c39
That code is before my changes so I was just trying to keep the same functionality here - but perhaps you are right that it was incorrect. |
Yes, the |
Ah got it. So in that case, did we get this part wrong over here? App/src/pages/iou/IOUDetailsModal.js Lines 130 to 135 in c3b8d5a
When paying the IOU we use the currency on the "iou report", but should actually be looking at the user's local currency? |
Ah, sorry missed this earlier.
Yes, we should be using the user's local currency. |
🚀 Deployed to staging by @marcaaron in version: 1.1.19-5 🚀
|
🚀 Deployed to production by @Julesssss in version: 1.1.21-1 🚀
|
Heads up @marcaaron @marcochavezf! This PR caused a bug here: #12291. |
@jasperhuangg asked me to mention that we should be sure that all reusable components react accordingly to any prop updates. |
Statute of limitations. This PR is almost a year old 😄 @jasperhuangg do you have a summary somewhere? Which props changed broke stuff? Is there some way we can avoid this in the future? |
Looks like we cleared this up in the other issue, read on from here for more context |
Details
One part Send Money clean up step. One part prep for adding KYC triggers to all these flows.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/187943
Tests / QA Steps
This PR should not change any existing behavior. Still wrote up some regression tests here for where the flow is currently at to make sure I'm not blowing anything up.
Setup
Send Money case
+
menu[IOU]
and verify that you see this with the correct payment method selectedAdditional mobile only steps:
IOU case
+
menuAdditional mobile only steps:
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android