-
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
Bring back send money option for newDot #28321
Conversation
Deploying with Cloudflare Pages
|
@eVoloshchak 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] |
@techievivek, just to make sure, is this supposed to just add a 'Send Money' option and all of the subsequent flow will be added later? Screen.Recording.2023-10-05.at.13.25.19.mov |
Hmm, that's odd that is not expected, it should actually show the option to pay the amount. Let me verify this on my end. |
@eVoloshchak That should be fixed now, looks like we were only redirecting to request page |
@@ -126,7 +126,7 @@ function MoneyRequestParticipantsPage({iou, selectedTab, route}) { | |||
ref={(el) => (optionsSelectorRef.current = el)} | |||
participants={iou.participants} | |||
onAddParticipants={IOU.setMoneyRequestParticipants} | |||
navigateToRequest={(option) => navigateToRequestStep(CONST.IOU.MONEY_REQUEST_TYPE.REQUEST, option)} | |||
navigateToRequest={(option) => navigateToRequestStep(iouType.current, 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.
Will this be different based on who is looking at the iou?
For instance, if I try to send you money will this be a MONEY_REQUEST_TYPE.REQUEST
for you and a MONEY_REQUEST_TYPE.SEND
for me?
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.
This is part of the flow when a user taps on the send money button on either global create or on a DM. So it solely depends on the option you have selected in the beginning. So if a userA started the flow then it will always be a Send
request for them and this page doesn't actually come into the picture for userB.
For instance, if I try to send you money will this be a MONEY_REQUEST_TYPE.REQUEST for you and a MONEY_REQUEST_TYPE.SEND for me?
I think we figure this out by the accountID and managerID, manager seems to be the payer and accountID is the payee.
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-10-06.at.13.13.24.movMobile Web - Chromescreen-20231006-132526.mp4Mobile Web - SafariScreen.Recording.2023-10-06.at.13.29.59.movDesktopScreen.Recording.2023-10-06.at.13.50.21.moviOSScreen.Recording.2023-10-06.at.13.28.13.movAndroidscreen-20231006-155727.mp4 |
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.
One last thing, there is an error in console when you select a person to send the money to (i.e. http://localhost:8082/send/new/participants)
Also, this isn't related to this PR, but we might change IOUParticipantsPage
to MoneyRequestParticipantsPage
on this line
@eVoloshchak, I am unable to reproduce the console error. What steps did you take to produce that error? |
Screen.Recording.2023-10-06.at.15.02.21.mov |
Screen.Recording.2023-10-06.at.6.35.59.PM.movAm I doing something wrong here? Anyway, I think |
@eVoloshchak Made the |
src/pages/iou/steps/MoneyRequstParticipantsPage/MoneyRequestParticipantsPage.js
Outdated
Show resolved
Hide resolved
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
@marcochavezf 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] |
Oops conflicts |
Fixing the conflict so we can get this merged ASAP. |
@marcochavezf resolved the conflicts. Ready for a review. |
It can't be merged because the PR is still marked with changes requested cc @joelbettner |
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.
🥳
So excited for 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. |
@aimane-chnaif Interesting, when I was testing this it looked just fine to me. Maybe it could be a result of my subsequent commits. |
🚀 Deployed to staging by https://github.com/joelbettner in version: 1.3.81-0 🚀
|
🚀 Deployed to staging by https://github.com/joelbettner in version: 1.3.83-0 🚀
|
This PR resulted in #29318 |
Details
Updated the code to bring back
Send Money
option on global create and DM chat reports. Also, tested the send money option with gold wallet that we recently launched.Fixed Issues
$ #25960
PROPOSAL: N/A
Tests
send money
option.Send money
option in global create.Pay with Expensify
.Offline tests
N/A
QA Steps
send money
option.Send money
option in global create.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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android