-
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
Clean up MoneyRequestModal #16976
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 |
src/pages/iou/MoneyRequestModal.js
Outdated
} | ||
}, [props.iou]); | ||
|
||
useEffect(() => { |
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.
Wouldn't this one still be in use?
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.
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 |
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.
LGTM and tests well 🚀
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)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
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