-
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
[CP stag]Skip rendering IOU pay action for non-send money flow if the user needs to enable wallet or add bank account #30112
Conversation
@jasperhuangg 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] |
Fixing the conflicts and testing the changes. |
I am seeing something weird. For some reason We seem to be loading the iouReport here: App/src/pages/home/report/ReportActionItem.js Lines 728 to 732 in fcee207
originalMessage.linkedReportID but it looks like the iouReportID info is actually on originalMessage.IOUReportID key.
|
Reviewer Checklist
Screenshots/VideosWebpayer.movpayee.movMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
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.
Confirmed system message shows when payee added bank and got paid
@danieldoglas 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] |
@mountiny Can you do the final review for this? We will need to CP this. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Skip rendering IOU pay action for non-send money flow if the user needs to enable wallet or add bank account (cherry picked from commit f42a195)
🚀 Cherry-picked to staging by https://github.com/mountiny in version: 1.3.89-3 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
@mountiny we have silver wallet only. Is this internal QA? |
Yes |
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.89-6 🚀
|
🚀 Deployed to staging by https://github.com/techievivek in version: 1.3.91-0 🚀
|
🚀 Deployed to production by https://github.com/marcaaron in version: 1.3.91-8 🚀
|
Details
Follow up to #30079 coming from https://expensify.slack.com/archives/C07J32337/p1697844844307529?thread_ts=1697843073.603539&cid=C07J32337
For money request flow we create two IOU actions on the iou report. One is of type
create
and the other of typepay
. So let's see how these actions are rendered on the frontend if the payee is on silver wallet(aka we add theisWaitingOnBankAccount
status to the iou report).ReportActionItem
component as a result else block gets executed for this and we render another system message asking user to add theirbank account
as that is the default message if the report hasisWaitingOnBankAccount
property set.So we now have two system messages so I have updated the code to prevent rendering any content if the IOU action type is pay and it is not a send money flow and if the user needs to add their wallet or bank account.
Fixed Issues
$ #30075
PROPOSAL:
Tests
Offline tests
QA Steps
Same as test 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)/** 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
MacOS: Chrome / Safari
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Desktop