Refactor part of Wallet_Activate into VerifyIdentity#10053
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
…-identity # Conflicts: # src/libs/actions/Wallet.js
|
Conflicts fixed. On hold till the Web PR goes out to prod but this is ready for reviews @marcochavezf @marcaaron @francoisl! |
|
Off hold! |
|
The code LGTM but I can't test it locally because for some reason I'm not getting the
Not sure it's related to the problem, but I got only two addresses in the pre-requisite steps. Also I found an issue that I think is not related to the PR: When I try to fill out the |
I only had two addresses as well, and it worked. Is it possible you didn't mock the response from IDology here, and it failed at that step? Alternatively, you might be able to skip directly to the Onfido step by running this query (replace the bankAccountID with your wallet's ID): UPDATE bankAccounts SET additionalData = JSON_SET(COALESCE(NULLIF(additionalData, ''), '{}'), '$.currentStep', 'OnfidoStep') WHERE bankAccountID = XXX; |
MariaHCD
left a comment
There was a problem hiding this comment.
Not sure it's related to the problem, but I got only two addresses in the pre-requisite steps.
Nope, should be all good. I got two addresses as well :)
I can't test it locally because for some reason I'm not getting the Verify Identity page yet.
As @francoisl said, you'll need to mock the response from IDology here and you should be good to go.
Also I found an issue that I think is not related to the PR: When I try to fill out the Additional details (which is the first page that appears when I navigate to /enable-payments) the server error is not displayed in the front-end:
Thanks for catching that! Its probably related to the other refactor PR: https://github.com/Expensify/Web-Expensify/pull/34326. Working on a separate PR to fix that.
| <View style={[styles.flexRow, styles.ml2, styles.flexWrap, styles.flex1]}> | ||
| {!_.isEmpty(props.message) && props.isMessageHtml && <RenderHTML html={`<muted-text>${props.message}</muted-text>`} />} | ||
| class FormAlertWrapper extends React.Component { | ||
| renderMessage() { |
There was a problem hiding this comment.
This is missing a JSDoc with the @returns, but would recommend reverting most of these changes. They are unrelated to the current changes (I'm having trouble telling exactly what changed about this file otherwise) and I think we normally recommend to keep as much JSX inline as possible (though I'm not sure if this is established somewhere in the style guide or just clash of personal preference).
Thanks this helped! Also, I found in this SO that I had to enter |
|
✋ 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 @francoisl in version: 1.1.89-0 🚀
|


Hold on: https://github.com/Expensify/Web-Expensify/pull/34343
Details
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/218501
Tests
Pre-requisites:
Each one will return one or more
addressfields. For each of those, run:For the three addresses I got back, this means the actual commands I run are:
Tests:
/enable-payments, fill out the additional details formTo mock fixable errors in Onyx:
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */displayNamepropertythisproperly 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)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesSTYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */displayNamepropertythisproperly 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)QA Steps
Screenshots
Web
Added in test steps
Mobile Web