feat: migrate onfido web component from class to functioncal - #28815
Conversation
|
@cubuspl42 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] |
|
There's a guideline not to leave the QA Steps empty. When in doubt, you can fill in only the QA Steps, and in the "Tests" section, write "Same as QA Steps". Actually, in this case, "Use staging server" is something that makes sense only for Dev, so I guess you can write |
| super(props); | ||
| this.baseOnfido = null; | ||
| } | ||
| const Onfido = (props) => { |
There was a problem hiding this comment.
prefer props deconstructing
|
Would you upload screenshots/videos for other platforms? I would be especially interested in a video for Android / Chrome. |
|
Ive pushed fixes and updated description. Ive added recording for mobile safari. @cubuspl42 Screen.Recording.2023-10-05.at.14.13.26.mov |
|
@MrMuzyk Yes, I had similar results. It's interesting because it's inconsistent between iOS/Safari and Android/Chrome. Still, I could guess that this is a weird way to say "we detected this is a dev environment and we don't like it", but I'm not sure why would it be platform-specific. |
Reviewer Checklist
Screenshots/VideosWebmigrateOnfidoWebsiteToFunctional-web.mp4Mobile Web - ChromemigrateOnfidoWebsiteToFunctional-android-web-compressed.mp4Mobile Web - SafarimigrateOnfidoWebsiteToFunctional-ios-web.mp4DesktopmigrateOnfidoWebsiteToFunctional-desktop.mp4iOSmigrateOnfidoWebsiteToFunctional-ios.mp4AndroidmigrateOnfidoWebsiteToFunctional-android-compressed.mp4 |
jakub-trzebiatowski
left a comment
There was a problem hiding this comment.
I approve with the following notes:
- For some platforms, screenshots/videos aren't provided by the contributor
- I leave the decision whether this is a blocker to you; I think we can proceed. I covered all platforms
- There is a problem with testing on Android Chrome, when an error is shown about the outdated browser, even when the browser is up-to-date. This is not a regression compared to
mainand might be a problem with testing in the development environment.- I think we can assume this is not related to this refactoring (as the chance is really small) and focus on testing this on staging
Please try to cover all platforms with screenshots, or preferably, videos next time
|
✋ 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/mountiny in version: 1.3.79-0 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.79-5 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.79-5 🚀
|
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.79-5 🚀
|
Details
Migrating Onfido index.webstie.js component from class to functional
Fixed Issues
$ #16179
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
web.mov
Mobile Web - Chrome
n/a
Mobile Web - Safari
ios.safari.mov
Desktop
n/a
iOS
n/a
Android
n/a