-
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
Personal bank account option is not present in Pay with Expensify menu #32423
Conversation
@aimane-chnaif 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] |
@@ -70,6 +75,8 @@ function AddPaymentMethodMenu({isVisible, onClose, anchorPosition, anchorAlignme | |||
ReportUtils.isExpenseReport(iouReport) || | |||
(ReportUtils.isIOUReport(iouReport) && !ReportActionsUtils.hasRequestFromCurrentAccount(lodashGet(iouReport, 'reportID', 0), lodashGet(session, 'accountID', 0))); | |||
|
|||
const canUsePersonalBankAccount = iou.id === CONST.IOU.TYPE.SEND; |
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.
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.
The IOU report should also include the Personal Bank Account option
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.
@aimane-chnaif Updated
@@ -122,5 +129,8 @@ export default compose( | |||
session: { | |||
key: ONYXKEYS.SESSION, | |||
}, | |||
iou: { | |||
key: ONYXKEYS.IOU, | |||
}, |
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.
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.
@dukenv0307 bump ^
I see you're currently working on lots of issues.
If you're not able to prioritize, we can open back to proposals
@dukenv0307 I agree with Aimane, please prioritize your PRs over making new proposals |
@aimane-chnaif Code updated. Thanks for your patience |
@aimane-chnaif let me know when this is ready, thank you 🙇 |
@aimane-chnaif Friendly bump to review the PR again. Thanks |
@dukenv0307 please merge main. |
After money request refactor, I think there should be solution without introducing new flag |
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 see send money is still using old flow, so I think your approach is fine for now
@@ -517,6 +517,7 @@ function MoneyRequestConfirmationList(props) { | |||
horizontal: CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.RIGHT, | |||
vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.BOTTOM, | |||
}} | |||
shouldShowPersonalBankAccountOption={shouldShowSettlementButton} |
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.
shouldShowPersonalBankAccountOption={shouldShowSettlementButton} | |
shouldShowPersonalBankAccountOption |
@aimane-chnaif Code updated |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safariweb.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.
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.
Thanks everyone!
✋ 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/mountiny in version: 1.4.14-0 🚀
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.14-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.4.14-6 🚀
|
Details
The Bank account option should present in the Pay with Expensify menu when sending money in USD
Fixed Issues
$ #32228
PROPOSAL: #32228 (comment)
Tests
Offline tests
QA Steps
PR 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)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
Android: Native
android-resize.mov
Android: mWeb Chrome
chrome-resize.mov
iOS: Native
ios-resize.mov
iOS: mWeb Safari
safari-resize.mov
MacOS: Chrome / Safari
web-resize.mov
MacOS: Desktop
desktop-resize.mov