Fix: IOU - No error message when changing amount of a paid request #33880
Conversation
Reviewer Checklist
Screenshots/VideosAndroid: NativeCleanShot.2024-01-04.at.12.13.06.mp4Android: mWeb ChromeCleanShot.2024-01-04.at.12.16.47.mp4iOS: NativeCleanShot.2024-01-04.at.11.43.00.mp4iOS: mWeb SafariCleanShot.2024-01-04.at.11.27.26.mp4MacOS: Chrome / SafariCleanShot.2024-01-04.at.11.22.16.mp4MacOS: DesktopCleanShot.2024-01-04.at.11.44.26.mp4 |
|
cc @Pujan92 There is still missing screenshot for Mobile Web - Chrome. |
Thanks, Added! |
| failureData.push({ | ||
| onyxMethod: Onyx.METHOD.MERGE, | ||
| key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${transactionThread.reportID}`, | ||
| value: { | ||
| [updatedReportAction.reportActionID]: { | ||
| errors: ErrorUtils.getMicroSecondOnyxError('iou.error.genericEditFailureMessage'), | ||
| }, | ||
| }, | ||
| }); |
There was a problem hiding this comment.
@Pujan92 To dry code, I think we can update the previous block to :
failureData.push({
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${transactionThread.reportID}`,
value: {
[updatedReportAction.reportActionID]: {
...updatedReportAction,
errors: ErrorUtils.getMicroSecondOnyxError('iou.error.genericEditFailureMessage'),
},
},
});There was a problem hiding this comment.
Yes @fedirjh , somehow I missed that. Done.
fedirjh
left a comment
There was a problem hiding this comment.
Looks good and tests well.
|
✋ 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/nkuoch in version: 1.4.22-0 🚀
|
|
🚀 Deployed to staging by https://github.com/nkuoch in version: 1.4.22-0 🚀
|
|
🚀 Deployed to production by https://github.com/thienlnam in version: 1.4.22-6 🚀
|
Details
#33799
Fixed Issues
$ #33799
PROPOSAL: #33799 (comment)
Tests
Offline tests
N/A
QA Steps
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
Screen.Recording.2024-01-03.at.21.40.40.mp4
Mobile Web - Chrome
Mobile Web - Safari
Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2024-01-03.at.22.28.19.mp4
Desktop
iOS
Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2024-01-03.at.22.20.59.mp4
Android