Refactor fetchIOUReportByID#13556
Conversation
| // This is expected and we return early as no further processing can be done. | ||
| return; | ||
| } | ||
| return getSimplifiedIOUReport(iouReportData, chatReportID); |
There was a problem hiding this comment.
This is still used in syncChatAndIOUReports. We can remove it once PayWithWallet is refactored
|
@mollfpr @Julesssss One of you needs to 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] |
|
@mollfpr please hold on testing this until the API changes are in staging! |
mountiny
left a comment
There was a problem hiding this comment.
Nice! code looks good to me, gonna test tomorrow hopefully
| // This is expected and we return early as no further processing can be done. | ||
| return; | ||
| } | ||
| return getSimplifiedIOUReport(iouReportData, chatReportID); |
Reviewer Checklist
Screenshots/VideosWeb13556.Web.movMobile Web - ChromeMobile Web - SafariDesktop13556.Desktop.moviOS13556.iOS.movAndroid13556.Android.mov |
mountiny
left a comment
There was a problem hiding this comment.
Tested well for me locally
Julesssss
left a comment
There was a problem hiding this comment.
Looks good, I just left a question because I can't figure out why THIS component needs the iouReport prop.
|
Can we clean this up? App/src/pages/iou/IOUDetailsModal.js Lines 149 to 150 in a414d1a |
|
@mollfpr removed the iou prop! |
|
Just a curiosity, in detail, mentioned that now we using |
|
@mollfpr nice catch! That was the first solution that I implemented and I forgot to update the description to reflect the new improved solution. I updated it now, so it's correct! |
mollfpr
left a comment
There was a problem hiding this comment.
LGTM 👍
Will test it when the API hit the staging!
|
Updated checklist and test well on Web, Desktop, iOS, and Android. I can't go through the mWeb testing because my IP is still not whitelisted. I believe the result will be the same... |
|
@mollfpr Thank you very much, I think that sounds fine to me. @luacmartins There are some merge conflicts 😢 |
mountiny
left a comment
There was a problem hiding this comment.
I have tested this in mWeb locally and it was a pass, although even locally sending messages quickly is super slow for some reason.
Screen.Recording.2022-12-19.at.15.12.08.mp4
|
Since Web-E is not in prod yet and PayWithWallet might be merged today, I'll hold this PR so we can also remove this |
mountiny
left a comment
There was a problem hiding this comment.
@luacmartins Thank you, this is no ton hold anymore as the Web PR hit production.
I think we can make that follow up clean up in a new PR just to also keep the concerns separate, maybe we can wait for the PayWithWallet to get to production and confirm there are no regressions.
Performance Comparison Report 📊Significant Changes To DurationThere are no entries Meaningless Changes To DurationShow entries
Show details
|
|
🚀 Deployed to production by @yuwenmemon in version: 1.2.42-2 🚀
|
|
@luacmartins Could you pull the BZ of the issue to help wrap this up? Thank you! |
|
@mollfpr handling it in the issue, sorry realized it is internal, but we are on track cc @puneetlath |
|
Handling payment via this E/app issue #13896 |
Details
Removes
fetchIOUReportByIDsince that data is returned inOpenReportandReadOldestActioncc @Julesssss @mountiny
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/249195
Tests
Should be tested with the Web-E PR
Offline tests
N/A
QA Steps
Same as test 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.Screenshots/Videos
Web
web.mov
Mobile Web - Chrome
chrome.mov
Mobile Web - Safari
safari.mov
Desktop
desktop.mov
iOS
ios.mov
Android
android.mov