-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
feat: migrate onfido web component from class to functioncal #28815
feat: migrate onfido web component from class to functioncal #28815
Conversation
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.
lgtm
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
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.
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
main
and 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
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.
Alright, thanks and I agree @MrMuzyk please add proof of testing all platforms 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 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
web.mov
Mobile Web - Chrome
n/a
Mobile Web - Safari
ios.safari.mov
Desktop
n/a
iOS
n/a
Android
n/a