Conversation
a15c406 to
68cdc38
Compare
whymarrh
left a comment
There was a problem hiding this comment.
I left a few comments inline. Also, if we're removing the notices should we also remove the components and files (the notices/ directory?) associated with them?
app/_locales/en/messages.json
Outdated
| "message": "Be careful with your seed phrase — there have been reports of websites that attempt to imitate MetaMask. MetaMask will never spontaneously ask for your seed phrase!" | ||
| }, | ||
| "protectYourKeysMessage2": { | ||
| "message": "Keep your phrase safe. If you see something phishy, or you’re uncertain about a website, email support@metamask.io." |
There was a problem hiding this comment.
Should "phishy" here be "fishy"? Fishy seems like actual word[1][2][3][4] for this context?
Also, do we want to have the period at the end of the sentence following the email address? I don't have a strong opinion either way, but it could be confusing to some users who will inevitably copy and paste the address with a period.
test/e2e/beta/run-all.sh
Outdated
| export PATH="$PATH:./node_modules/.bin" | ||
|
|
||
| shell-parallel -s 'npm run ganache:start -- -b 2' -x 'sleep 5 && static-server test/e2e/beta/contract-test --port 8080' -x 'sleep 5 && mocha test/e2e/beta/metamask-beta-ui.spec' | ||
| # shell-parallel -s 'npm run ganache:start -- -b 2' -x 'sleep 5 && static-server test/e2e/beta/contract-test --port 8080' -x 'sleep 5 && mocha test/e2e/beta/metamask-beta-ui.spec' |
There was a problem hiding this comment.
Why are we disabling these tests?
| } | ||
|
|
||
| toggleTermsCheck = () => { | ||
| this.setState({ |
There was a problem hiding this comment.
We should prefer the updater function argument here. That is,
this.setState((prevState) => ({
termsChecked: !prevState.termsChecked,
})| {termsChecked ? <i className="fa fa-check fa-2x" /> : null} | ||
| </div> | ||
| <span className="first-time-flow__checkbox-label"> | ||
| I agree to the Terms Of Service |
There was a problem hiding this comment.
Should we extract this into a message string?
| } | ||
|
|
||
| toggleTermsCheck = () => { | ||
| this.setState({ |
There was a problem hiding this comment.
We should prefer the updater function argument here. That is,
this.setState((prevState) => ({
termsChecked: !prevState.termsChecked,
})| {termsChecked ? <i className="fa fa-check fa-2x" /> : null} | ||
| </div> | ||
| <span className="first-time-flow__checkbox-label"> | ||
| I agree to the Terms Of Service |
There was a problem hiding this comment.
Should we extract this into a message string?
| type="confirm" | ||
| className="first-time-flow__button" | ||
| onClick={() => history.push(INITIALIZE_NOTICE_ROUTE)} | ||
| onClick={async () => { |
There was a problem hiding this comment.
Why is this handler async?
| history.push(DEFAULT_ROUTE) | ||
| }} | ||
| > | ||
| { 'All Done' } |
There was a problem hiding this comment.
Can we inline all of the strings in this component? Or maybe we should even extract them into message strings?
| import React, { PureComponent } from 'react' | ||
| import PropTypes from 'prop-types' | ||
| import Button from '../../../button' | ||
| import { INITIALIZE_CREATE_PASSWORD_ROUTE, INITIALIZE_NOTICE_ROUTE, INITIALIZE_IMPORT_WITH_SEED_PHRASE_ROUTE } from '../../../../routes' |
There was a problem hiding this comment.
Nitpick: can we split this import onto multiple lines?
| { 'Import Wallet' } | ||
| </div> | ||
| <div className="select-action__button-text-small"> | ||
| { 'Import your existing wallet using a 12 word seed phrase' } |
There was a problem hiding this comment.
Should we extract the messages in this component into message strings?
|
@whymarrh noticed related code removed in 275f7c247 |
app/_locales/en/messages.json
Outdated
app/_locales/en/messages.json
Outdated
There was a problem hiding this comment.
Nit: can we factor out the bullet?
app/_locales/en/messages.json
Outdated
There was a problem hiding this comment.
Nit: can we factor out the bullet?
app/_locales/en/messages.json
Outdated
There was a problem hiding this comment.
Nit: can we factor out the bullet?
There was a problem hiding this comment.
Nit: also s/Metamask/MetaMask/
app/_locales/en/messages.json
Outdated
There was a problem hiding this comment.
Nit: s/find them/find it/ I think? Or maybe s/back it up/back them up/ if that works?
app/_locales/en/messages.json
Outdated
There was a problem hiding this comment.
Nit: should we drop "spontaneously"? Below we have yourUniqueAccountImageDescription3 plainly saying never.
51fb72b to
5771a6f
Compare



fixes #6163
Final design decisions pending. Tests will be updated once design decisions finalized.