Clean up MoneyRequestModal#16976
Conversation
Reviewer Checklist
Screenshots/VideosWeb16976.Web.mp4Mobile Web - Chrome16976.mWeb-Chrome.mp4Mobile Web - Safari16976.mWeb-Safari.mp4Desktop16976.Desktop.mp4iOS16976.iOS.mp4Android16976.Android.mp4 |
| } | ||
| }, [props.iou]); | ||
|
|
||
| useEffect(() => { |
There was a problem hiding this comment.
Wouldn't this one still be in use?
There was a problem hiding this comment.
Ah yeah this useEffect is something still works. I was looking to see how far back when we decided to add this because I wasn't sure it was being useful (just changes the currency to current location)
But I can add it back - I was a little overzealous on the refactoring and removing old code
|
@thienlnam Since you mention that App/src/pages/iou/MoneyRequestModal.js Lines 52 to 53 in b4ed202 App/src/pages/iou/MoneyRequestModal.js Line 94 in b4ed202 Line 38 in b4ed202 |
|
bump @thienlnam for response on the reviews |
|
Thanks! Will also address Luthfi's comments soon. Though going to put this on hold because now that we're adding back this offline code it is being refactored to add a useOnNetworkReconnect hook in https://github.com/Expensify/App/pull/17400/files |
|
Okay addressed, ready for another review |
|
Self-merging since reviewers both approved! |
|
✋ 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/thienlnam in version: 1.3.14-0 🚀
|
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.3.14-14 🚀
|
Details
None of this stuff is used - I modified the API to always send back an error response, and even then nothing happened because props.iou.creatingIOUTransaction is not used or set anywhere
Fixed Issues
$ #16942
PROPOSAL: GH_LINK_ISSUE(COMMENT)
Tests
This is gutting some unused functionality of the IOUModal so lets test the main flows in all sorts of ways
You've selected the maximum number (8) of participants.Verify that the nothing about the IOU functionality has changed
Verify that no errors appear in the JS console
Offline tests
Requesting money when offline should create the IOU in the pending state:
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)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.2023-04-27.at.3.36.40.PM.mov
Mobile Web - Chrome
Screen.Recording.2023-04-27.at.3.37.40.PM.mov
Mobile Web - Safari
Desktop
Screen.Recording.2023-04-27.at.3.39.11.PM.mov
iOS
Android