Adding recovery phrase video to onboarding process#10717
Conversation
|
😎 😎 😎 |
|
note: video is delivered as part of extension, adds ~3mb (seems reasonable) |
|
how to intlize video? is it possible to include and specify alternate audio tracks? |
@kumavis see https://consensys.slack.com/archives/GETEW1V4M/p1616604943116400 for relevant discussion, I think we'll follow up on this |
c2d4231 to
88a1873
Compare
Builds ready [88a1873]
Page Load Metrics (604 ± 26 ms)
|
| return ( | ||
| <DragDropContextProvider backend={HTML5Backend}> | ||
| <div className="first-time-flow__wrapper"> | ||
| <div className={`first-time-flow__wrapper ${introClass}`}> |
There was a problem hiding this comment.
When we modify the rest of the onboarding flow to follow the new designs, we can just bake rules directly in to first-time-flow__wrapper. Presently, it doesn't play so nicely with the new video screen
88a1873 to
f0c6beb
Compare
Builds ready [f0c6beb]
Page Load Metrics (690 ± 36 ms)
|
brad-decker
left a comment
There was a problem hiding this comment.
Looks awesome, a few change reqs but overall very excited about this landing.
| // Routes | ||
| import { INITIALIZE_SEED_PHRASE_ROUTE } from '../../../../helpers/constants/routes'; | ||
|
|
||
| export default class SeedPhraseIntro extends PureComponent { |
There was a problem hiding this comment.
[REQ] We don't want to extend the pattern of using class components and splitting into containers/components. Could you refactor this into a functional component?
There was a problem hiding this comment.
Force of habit ;) Can do!
|
|
||
| return ( | ||
| <div className="seed-phrase-intro__sidebar"> | ||
| <div className="seed-phrase-intro__sidebar-block"> |
There was a problem hiding this comment.
Try to use <Box> for some of these divs. Box is a layout component with various props for controlling size/spacing/layout.
There was a problem hiding this comment.
Using box where it seems to make sense now
| </div> | ||
| </div> | ||
| <div className="seed-phrase-intro__sidebar-block"> | ||
| <div className="seed-phrase-intro__sidebar-title"> |
There was a problem hiding this comment.
Try using <Typography> and semantic html tags like heading tags/p tags/span tags where appropriate.
| &__sidebar { | ||
| padding: 15px; | ||
| border-radius: 8px; | ||
| border: 1px solid #d6d9dc; |
There was a problem hiding this comment.
Don't use hex codes, match them to the color from the design system colors file. In this case $ui-2. https://github.com/MetaMask/metamask-extension/blob/12c614cc14fa9a146170e1989726deb758da310b/ui/app/css/design-system/colors.scss#L78-L110
| } | ||
| } | ||
|
|
||
| &__title { |
There was a problem hiding this comment.
This class, for example, can be expressed with Typography
<Typography color={COLORS.BLACK} variant={TYPOGRAPHY.H1} boxProps={{ marginTop: 0, marginBottom: 4 }} >There was a problem hiding this comment.
Done, and this rule removed as a result
brad-decker
left a comment
There was a problem hiding this comment.
Oops, was meant to hit req changes ;P
f0c6beb to
963d4ea
Compare
Builds ready [963d4ea]
Page Load Metrics (521 ± 42 ms)
|
963d4ea to
e0438df
Compare
|
Changes pushed cc: @brad-decker |
db60d3d to
b2a29b5
Compare
Builds ready [b2a29b5]
Page Load Metrics (631 ± 72 ms)
|
brad-decker
left a comment
There was a problem hiding this comment.
LGTM, just a question
| </ul> | ||
| </Box> | ||
| <Box marginBottom={4}> | ||
| <span className="seed-phrase-intro__sidebar-title"> |
There was a problem hiding this comment.
Question: Why could the sidebar-title class items not be converted into Typography components?
There was a problem hiding this comment.
seed-phrase-intro__sidebar-title css removed and elements converted to use the Typography component 👍
Adding english subtitles
b2a29b5 to
512393b
Compare
Builds ready [512393b]
Page Load Metrics (571 ± 48 ms)
|
Builds ready [a61a66a]
Page Load Metrics (585 ± 45 ms)
|
Related: #10244
Manual testing steps: