feat: migrate VerifyIdentity to ts#34338
feat: migrate VerifyIdentity to ts#34338mountiny merged 2 commits intoExpensify:vit-tieredBankAccountFlowfrom
Conversation
|
@shubham1206agra 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] |
src/pages/ReimbursementAccount/VerifyIdentity/VerifyIdentity.tsx
Outdated
Show resolved
Hide resolved
| if (!onfidoData) { | ||
| return; | ||
| } |
There was a problem hiding this comment.
Have you tested before/after flow with this new condition? I just want to make sure it's okay that we skip 2 methods calls, even before it was probably called without onfido data.
There was a problem hiding this comment.
it's going to be there, this is just to satisfy the TS change to onFinished, as this step is unlike the others within the flow and would require a refactor in my opinion (already discussed), however this is just the migration part. (Onfido itself needs to be migrated to provide proper typings)
There was a problem hiding this comment.
It still looks strange. I've checked the code, and it looks like onFinished is never called with onfido data (or with any data). So your submit function will never execute methods below. Am I wrong?
There was a problem hiding this comment.
if I understand correctly, it will be called with arguments https://github.com/Expensify/App/blob/vit-tieredBankAccountFlow/src/components/Onfido/BaseOnfidoWeb.js#L82 but implicitly. onFinished is just an alias for submit, which in turn is the onSuccess there
|
Looks good! We are going to test and review as part of the feature branch |
This PR introduces migrated VerifyIdentity step to TS
Details
Fixed Issues
$ #30442
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)StyleUtils.getBackgroundAndBorderStyle(theme.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
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop