-
Notifications
You must be signed in to change notification settings - Fork 3k
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
migrate ReportScreen.js #24111
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 |
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.
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. |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
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