feat: migrate KYCWall class component to functional#28798
feat: migrate KYCWall class component to functional#28798bondydaa merged 11 commits intoExpensify:mainfrom
Conversation
| continue(event, iouPaymentType) { | ||
| if (this.state.shouldShowAddPaymentMenu) { | ||
| this.setState({shouldShowAddPaymentMenu: false}); | ||
| const continueAction = (event, iouPaymentType) => { |
There was a problem hiding this comment.
btw had to change the name as continue is a forbidden keyword
|
LGTM The only thing im wondering about is the It seems really hacky together with the |
|
@abdulrahuman5196 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] |
|
@Swor71 What are the tests for this? There is none in author's checklist? |
|
@abdulrahuman5196 hey, apologies for missing that part, added the steps now |
| ); | ||
| } | ||
|
|
||
| KYCWall.propTypes = propTypes; |
There was a problem hiding this comment.
Functional components are expected to have a displayName value
There was a problem hiding this comment.
@abdulrahuman5196 I am aware of this, however this component is exported from the index.js file which has the displayName https://github.com/Expensify/App/blob/main/src/components/KYCWall/index.js#L17
Would you like me to add that line to this component as well?
EDIT: I've actually added the displayName for the base component as well
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-10-12.at.7.34.26.PM.mp4Mobile Web - ChromeScreen.Recording.2023-10-12.at.7.43.10.PM.mp4Mobile Web - SafariScreen.Recording.2023-10-12.at.7.42.08.PM.mp4DesktopScreen.Recording.2023-10-12.at.8.00.18.PM.mp4iOSScreen.Recording.2023-10-12.at.7.48.44.PM.mp4AndroidScreen.Recording.2023-10-12.at.7.49.09.PM.mp4 |
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours. @bondydaa
🎀 👀 🎀
C+ Reviewed
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #16170 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
@bondydaa Kindly run the workflows before review/merging. |
|
@abdulrahuman5196 @bondydaa |
|
looks like conflicts |
|
@bondydaa |
|
@abdulrahuman5196 @bondydaa |
|
✋ 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/bondydaa in version: 1.3.88-1 🚀
|
|
this started causing a crash so we reverted it here #30110 |
|
The bigger reason for the revert is we have a conference starting sunday which we've been testing specifically the flows of #29573 to ensure they work for that event. I should have held this PR initially but wasn't thinking when I merged it. |
|
🚀 Deployed to staging by https://github.com/bondydaa in version: 1.3.88-1 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.3.88-11 🚀
|
Details
Migration of
KYCWallclass component to functional oneFixed Issues
$ #16170
PROPOSAL:
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
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android