Repository navigation
[NoQA] Copy category over from expense when Editing a Money Request - #27055
Conversation
|
@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] |
efb912d to
7420167
Compare
| } | ||
|
|
||
| // Always copy over the category for now until we have a way to edit it (Will be implemented in https://github.com/Expensify/App/issues/24464) | ||
| updatedTransaction.category = transaction.category; |
There was a problem hiding this comment.
Is this... required, we clone the original transaction at the start of this method so that would be included.
What we have to do is to add it as a param to the edit money request call and create a new getter for it and return it in the getTransactionDetails
Lines 1058 to 1071 in 67df8e9
Vit is right as always Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
Reviewer Checklist
Screenshots/VideosNo specific QA here. WebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
Co-authored-by: Vit Horacek <36083550+mountiny@users.noreply.github.com>
|
Updated! |
|
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
All tests were passing at the time |
|
🚀 Deployed to staging by https://github.com/mountiny in version: 1.3.69-0 🚀
|
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.3.69-2 🚀
|
|
🚀 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 🚀
|
@mountiny please review
Details
Right now this doesn't really do anything at all since categories are just going to be dropped by the API. However once categories are supported by the API this will ensure we can still call the
EditMoneyRequestcommand without resetting the category because there is no selector for it in NewDot (yet, this is coming in #24464)Fixed Issues
A part of #24464 and https://github.com/Expensify/Expensify/issues/312623
Tests/QA
Offline tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android