migrate ReportScreen.js#24111
Conversation
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
Recheck |
0719827 to
5715e91
Compare
|
@neil-marcellini 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] |
|
In one of the videos there's a warning. It is because of a regression from another PR (not connected with my code), and has already been reported on slack. |
|
Recheck |
|
Bump @aimane-chnaif |
|
@SosenWiosen please fix conflict |
…js-to-function-component
|
Merged it and resolved conflicts. Still passes my tests. |
|
I have added displayName as i forgot about it earlier. |
|
recheck |
|
@SosenWiosen please fix conflict |
|
Fixed conflict :) @aimane-chnaif |
|
@aimane-chnaif Could you take a look? |
|
@aimane-chnaif Please take a look 🙏 |
|
Add attachment seems not working after merging main into this branch locally. Also happens on main so not blocker. ios.mov |
|
Another weird issue on mSafari. Also happens on main so not blocker Screen.Recording.2023-08-27.at.3.54.39.PM.mov |
Reviewer Checklist
Screenshots/VideosWebweb.movMobile Web - Chromemchrome.movMobile Web - Safarimsafari.movDesktopdesktop.moviOSios.movAndroidandroid.mov |
aimane-chnaif
left a comment
There was a problem hiding this comment.
There are many regressions from composer, popover but already happens on main, not caused by this PR.
Otherwise, looks good!
|
🎯 @aimane-chnaif, thanks for reviewing and testing this PR! 🎉 An E/App issue has been created to issue payment here: #26039. |
neil-marcellini
left a comment
There was a problem hiding this comment.
Some NABs but looks great overall. Thanks for your work.
| const chatWithAccountManager = useCallback(() => { | ||
| Navigation.navigate(ROUTES.getReportRoute(accountManagerReportID)); | ||
| }, [accountManagerReportID]); | ||
|
|
There was a problem hiding this comment.
NAB: Can these callbacks be declared inline instead, for simplicity?
|
✋ 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/neil-marcellini in version: 1.3.58-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.58-5 🚀
|
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 1.3.59-0 🚀
|
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.3.59-5 🚀
|
|
This PR introduced a regression fixed here: #27270 This line was, for some reason, removed while doing this migration: |
Details
This pull request migrates ReportScreen from being a class component to a functional component.
Fixed Issues
$ #16255
Tests
Offline tests
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
https://github.com/Expensify/App/assets/43684335/1a2e90a8-a6a6-4e67-90ec-a80e1491814a

Mobile Web - Chrome
android.chrome.test.mp4
Mobile Web - Safari
https://github.com/Expensify/App/assets/43684335/618324ab-b091-4923-bca2-cb98da92034a

Desktop
https://github.com/Expensify/App/assets/43684335/fafce4e8-e3c5-4d13-9b99-afd8d4e3f86d

iOS
https://github.com/Expensify/App/assets/43684335/8102730d-da5d-453e-81d0-59804082323d

Android
https://github.com/Expensify/App/assets/43684335/b7a5e9d0-610e-4c15-bc88-aa67c0a5e428
