-
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 BaseOnfidoWeb.js to functional component #20142
Conversation
@youssef-lr 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] |
@allroundexperts I assigned you as a C+ reviewer. please re-assign another C+ member if you don't have a bandwidth 🙇 I also assigned you to the GH issue connected to this PR. |
Reviewer Checklist
Screenshots/Videos |
![]() @hayata-suenaga I'm getting this error. Seems like you're passing |
@hayata-suenaga Do you have any update here? |
will work on the fix today 🙇 |
On it today! |
Hi @hayata-suenaga!
|
# Conflicts: # src/components/Onfido/BaseOnfidoWeb.js
ah we don't run prettier pre-commit? didn't know that |
this is a component only for web. We don't have to include screenshots for other platforms |
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.
Looks good. Thanks @hayata-suenaga!
@roryabraham 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 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.
Lint is failing, otherwise LGTM
✋ 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/roryabraham in version: 1.3.42-0 🚀
|
@hayata-suenaga Should we QA this PR? Can you pls update QA steps if Yes |
yes we want to QA this. ah I forgot to move the QA section title to the test section (they're the same) sorry about that |
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.42-26 🚀
|
Details
Fixed Issues
$ #16177
PROPOSAL: N/A
Tests / QA
The component migrated is used to initialize Onfido. The purpose of the following test steps is to make sure that Onfido identity verification flow is triggered correctly. The component is only used on Web and Desktop. You don't need to test this flow on native mobile platforms (i.e. iOS and Android).
Log in to NewDot with an account that hasn't completed the KYC flow
Go to
http://localhost:8080/settings/payments/enable-payments (development)
https://staging.new.expensify.com/settings/payments/enable-payments (staging)
If you're testing on desktop, put the following URL to your web browser and wait to be prompted to switch to desktop app. If you're not prompted, comment out the
return
statement here.On the personal details form, input the following values.
Test data is taken from this SO
first name: Alberta
last name: Charleson
last four digits of SSN: 3333
For other fields, input any values
Click the
Save & continue
buttonOn
Verify identity
page that is shown, clickContinue
Confirm the term and condition from Onfido is shown. Click
Accept
Confirm you're prompted to choose a Passport or Driver's license to verify your identity
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
Mobile Web - Chrome
N/A
Mobile Web - Safari
N/A
Desktop
iOS
N/A
Android
N/A