-
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
Display correct message when editing distance requests #27979
Conversation
@cubuspl42 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] |
src/libs/actions/IOU.js
Outdated
}, | ||
}); | ||
|
||
// Step 4: Comput the IOU total and update the report preview message (and report header) so LHN amount owed is correct. |
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.
Typo?
route: {}, | ||
}; | ||
|
||
// This component is responsible for grabbing the transactionID from the IOU key |
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.
Is it some magic I'm not familiar with? This component seems to do nothing beyond forwarding the route
property
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.
Or was this comment copy-pasted?
Well, it's a big one. To be honest, I'm not completely sure I'm experienced enough to review the high-level decisions here. I left minor comments and can help with the testing. |
Ah! Don't worry too much about it. It looks big because it comes from #26141 's branch. Once that one merges, it will become simple :) |
@cubuspl42 Ready for review! Should be waaaay simpler now 😁 |
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.
Looks great, assuming the C+ testing goes well! There's one JSDoc that needs to be updated.
src/libs/ReportUtils.js
Outdated
/** | ||
* Get the proper message schema for modified expense message. | ||
* | ||
* @param {String} newValue | ||
* @param {String} oldValue | ||
* @param {String} valueName | ||
* @param {Boolean} valueInQuotes | ||
* @returns {String} | ||
*/ |
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.
Looks like this was pasted from above but you forgot to update it
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!
I don't have access to the steps nor the screenshot... Maybe they can be copied here? |
Huh. Weird. Here are the test steps:
|
@Gonals I just don't have access to https://github.com/Expensify/Web-Expensify, but that's typical for C+ team, I think. The screenshot still doesn't work, but maybe I'll figure things out without it |
Ah, gotcha! Yeah, try creating it from newDot doing The message should say: |
@Gonals Would you please merge I'm having trouble going past pressing "+" (I always test with latest |
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.
Looks good and tests well on web at least. In the interest of urgency I'm going to ask for another C+ in Slack to complete the checklist.
Screen.Recording.2023-10-02.at.10.47.39.AM.mov
that is unrelated to this PR. it's a bug on |
Reviewer Checklist
Screenshots/Videos |
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.
@neil-marcellini LGTM!
@techievivek 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] |
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.3.77-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.77-7 🚀
|
Can I have an Expensify employee provide a payment summary so that I can get @rushatgabhane paid? |
Payment summary: $500 to @rushatgabhane for the PR review. |
$500 payment approved for @rushatgabhane based on summary above. |
Details
Fixed Issues
$ #27630
PROPOSAL:
Tests
Distance
.Offline tests
None
QA Steps
Distance
.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