-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Conversation
The modal got really crowded and the preparation step had only been shown for fractions of a second anyways. The "loading" message is now part of the next step.
Changes Unknown when pulling a94bbea on jr-email-verification into ** on master**. |
// You should have received a copy of the GNU General Public License | ||
// along with Parity. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
import { stringify } from 'querystring'; |
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 would suggest at least breaking this out into -
- React-specific (useless for libraries)
- Verification/use specific
/* along with Parity. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
.list li { |
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.
As above, from a library perspective styles here are a no-no. It is up to the display to determine how it should look.
@@ -17,6 +17,19 @@ | |||
import { stringify } from 'querystring'; | |||
import React from 'react'; | |||
|
|||
import styles from './styles.css'; |
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.
See style comment.
return smsVerification; | ||
return verification; | ||
} | ||
get emailVerification () { |
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.
Extra space here between the 2 would be appreciated.
@@ -25,41 +25,31 @@ import { fromWei } from '~/api/util/wei'; | |||
import { Form, Input } from '~/ui'; | |||
import { nullableProptype } from '~/util/proptypes'; | |||
|
|||
import { termsOfService } from '../../../3rdparty/sms-verification'; | |||
import * as sms from '../../../3rdparty/sms-verification'; |
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.
Use ~/3rdparty/...
rather so we don't need to clean it up later
We might want to bundle the code in `3rdparty`. React & presentational components don't belong in there. At the same time, the terms of service are strictly related to the use of these external services. We decided to not bundle them, but still keep them in a file called `terms-of-service.js`. The commit also moves the "how it works" section into the presentational part in `modals/Verification`.
Tests failing on build. |
Changes Unknown when pulling c439445 on jr-email-verification into ** on master**. |
const methods = { | ||
sms: { | ||
label: 'SMS Verification', key: 0, value: 'sms', | ||
description: (<p className={ styles.noSpacing }>It will be stored on the blockchain that you control a phone number (not <em>which</em>).</p>) |
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.
Not a crisis for this PR since this one straddled the boundary between merges, but going forward when touching components change the text into FormattedMessages
.
The PR adds another verification method:
The process is integrated into the verification modal. In the beginning, the user choses a verification method. @tjsaw is working on the terms of service.
When the verification is done, a contract compatible with
Certifier.sol
will store the hash of the email address.I tried to reuse as much of the code in
modals/Verification/store.js
as possible, although that makes it a bit harder to understand. I'm also not a fan of the inheritance used bysms-store.js
andemail-store.js
. I'm open for proposals.