-
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
Add ability to request money from iou and expense report #27133
Conversation
@narefyev91 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] |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chrome8mb.video-ryH-w75iY91x.mp4Mobile Web - Safariios-web.movDesktopdesktop.moviOS8mb.video-7SV-xlOCc0Cy.mp4Androidandroid.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.
Did not see any issues with current implementation
Works well!
If nothing else needed here - LGTM
🎀 👀 🎀 C+ reviewed
src/libs/actions/IOU.js
Outdated
@@ -562,8 +562,11 @@ function createDistanceRequest(report, participant, comment, created, transactio | |||
* @param {Object} [receipt] | |||
*/ | |||
function requestMoney(report, amount, currency, created, merchant, payeeEmail, payeeAccountID, participant, comment, receipt = undefined) { | |||
// If the report is iou or expense report, we should get the chat report of this to pass to getMoneyRequestInformation function | |||
const isMoneyRequestReport = ReportUtils.isMoneyRequestReport(report); | |||
const currentReport = isMoneyRequestReport ? ReportUtils.getReport(report.chatReportID) : report; |
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 think it would be better to call it like this:
const currentReport = isMoneyRequestReport ? ReportUtils.getReport(report.chatReportID) : report; | |
const chatReport = isMoneyRequestReport ? ReportUtils.getReport(report.chatReportID) : report; |
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.
It overlaps with chatReport below.
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.
currentChatReport
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.
Updated with merging the newest main.
Co-authored-by: Vit Horacek <[email protected]>
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!
I will wait til next deploy with this one to mitigate huge checklist |
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!
✋ 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.3.70-0 🚀
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.3.70-8 🚀
|
@JmillsExpensify This because BE return participant as empty array for this report that makes |
Oh interesting. I'm surprised we didn't see that in the PR phase, any insight into why? |
Update: Disregard last comment. Based on internal discussion, it looks like we've since made a change to the backend that has since broken this. I'll work on finding the offending PR so we can figure out what went wrong. |
Details
Fixed Issues
$ #27075
PROPOSAL: #27075 (comment)
Tests
Pre-condition: Already have a report preview that isn't approved or paid
Offline tests
QA Steps
Pre-condition: Already have a report preview that isn't approved or paid
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
Screencast.from.11-09-2023.16.07.01.webm
Mobile Web - Chrome
Record_2023-09-11-16-13-46.mp4
Mobile Web - Safari
Screen.Recording.2023-09-11.at.16.18.02.mp4
Desktop
Screen.Recording.2023-09-11.at.16.29.13.mov
iOS
Screen.Recording.2023-09-11.at.16.16.06.mp4
Android
27075.mp4