Skip to content

Commit 68c5def

Browse files
committed
Revert "Adding recovery phrase video to onboarding process (#10717)"
This reverts commit 9e918b6.
1 parent 3d7fe9b commit 68c5def

File tree

17 files changed

+7
-379
lines changed

17 files changed

+7
-379
lines changed

app/_locales/en/messages.json

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1521,42 +1521,6 @@
15211521
"securitySettingsDescription": {
15221522
"message": "Privacy settings and wallet seed phrase"
15231523
},
1524-
"seedPhraseIntroSidebarBulletFour": {
1525-
"message": "Write down and store in multiple secret places."
1526-
},
1527-
"seedPhraseIntroSidebarBulletOne": {
1528-
"message": "Save in a password manager"
1529-
},
1530-
"seedPhraseIntroSidebarBulletThree": {
1531-
"message": "Store in a safe-deposit box."
1532-
},
1533-
"seedPhraseIntroSidebarBulletTwo": {
1534-
"message": "Store in a bank vault."
1535-
},
1536-
"seedPhraseIntroSidebarCopyOne": {
1537-
"message": "Your recovery phrase is the “master key” to your wallet and funds."
1538-
},
1539-
"seedPhraseIntroSidebarCopyThree": {
1540-
"message": "If someone asks for your recovery phrase, they are most likely trying to scam you."
1541-
},
1542-
"seedPhraseIntroSidebarCopyTwo": {
1543-
"message": "Never, ever share your recovery phrase, even with MetaMask!"
1544-
},
1545-
"seedPhraseIntroSidebarTitleOne": {
1546-
"message": "What is a recovery phrase?"
1547-
},
1548-
"seedPhraseIntroSidebarTitleThree": {
1549-
"message": "Should I share my recovery phrase?"
1550-
},
1551-
"seedPhraseIntroSidebarTitleTwo": {
1552-
"message": "How do I save my recovery phrase?"
1553-
},
1554-
"seedPhraseIntroTitle": {
1555-
"message": "Secure your wallet"
1556-
},
1557-
"seedPhraseIntroTitleCopy": {
1558-
"message": "Before getting started, watch this short video to learn about your recovery phrase and how to keep your wallet safe."
1559-
},
15601524
"seedPhrasePlaceholder": {
15611525
"message": "Separate each word with a single space"
15621526
},

app/images/videos/recovery-onboarding/subtitles-en.vtt

Lines changed: 0 additions & 116 deletions
This file was deleted.
-3.36 MB
Binary file not shown.

test/e2e/metamask-ui.spec.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,6 @@ describe('MetaMask', function () {
8383

8484
let seedPhrase;
8585

86-
it('renders the seed phrase intro screen', async function () {
87-
await driver.clickElement('.seed-phrase-intro__left button');
88-
await driver.delay(regularDelayMs);
89-
});
90-
9186
it('reveals the seed phrase', async function () {
9287
const byRevealButton =
9388
'.reveal-seed-phrase__secret-blocker .reveal-seed-phrase__reveal-button';

ui/app/components/ui/box/box.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
DISPLAY,
1010
JUSTIFY_CONTENT,
1111
SIZES,
12-
TEXT_ALIGN,
1312
} from '../../../helpers/constants/design-system';
1413

1514
const ValidSize = PropTypes.oneOf([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]);
@@ -71,7 +70,6 @@ export default function Box({
7170
borderStyle,
7271
alignItems,
7372
justifyContent,
74-
textAlign,
7573
display,
7674
width,
7775
height,
@@ -115,8 +113,6 @@ export default function Box({
115113
!display && (Boolean(justifyContent) || Boolean(alignItems)),
116114
[`box--justify-content-${justifyContent}`]: Boolean(justifyContent),
117115
[`box--align-items-${alignItems}`]: Boolean(alignItems),
118-
// text align
119-
[`box--text-align-${textAlign}`]: Boolean(textAlign),
120116
// display
121117
[`box--display-${display}`]: Boolean(display),
122118
// width & height
@@ -148,7 +144,6 @@ Box.propTypes = {
148144
borderStyle: PropTypes.oneOf(Object.values(BORDER_STYLE)),
149145
alignItems: PropTypes.oneOf(Object.values(ALIGN_ITEMS)),
150146
justifyContent: PropTypes.oneOf(Object.values(JUSTIFY_CONTENT)),
151-
textAlign: PropTypes.oneOf(Object.values(TEXT_ALIGN)),
152147
display: PropTypes.oneOf(Object.values(DISPLAY)),
153148
width: PropTypes.oneOf(Object.values(BLOCK_SIZES)),
154149
height: PropTypes.oneOf(Object.values(BLOCK_SIZES)),

ui/app/components/ui/box/box.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ $attributes: padding, margin;
129129

130130
// text
131131
@each $alignment in design-system.$text-align {
132-
&--text-align-#{$alignment} {
133-
text-align: $alignment;
134-
}
132+
text-align: $alignment;
135133
}
136134
}

ui/app/components/ui/box/box.stories.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
COLORS,
88
DISPLAY,
99
JUSTIFY_CONTENT,
10-
TEXT_ALIGN,
1110
} from '../../../helpers/constants/design-system';
1211
import Box from './box';
1312

@@ -39,7 +38,6 @@ export const box = () => {
3938
undefined,
4039
'display',
4140
)}
42-
textAlign={select('textAlign', TEXT_ALIGN, undefined, 'left')}
4341
alignItems={select('alignItems', ALIGN_ITEMS, undefined, 'display')}
4442
margin={select('margin', sizeKnobOptions, undefined, 'margin')}
4543
marginTop={select('marginTop', sizeKnobOptions, undefined, 'margin')}

ui/app/helpers/constants/routes.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ const INITIALIZE_IMPORT_WITH_SEED_PHRASE_ROUTE =
4545
const INITIALIZE_SELECT_ACTION_ROUTE = '/initialize/select-action';
4646
const INITIALIZE_SEED_PHRASE_ROUTE = '/initialize/seed-phrase';
4747
const INITIALIZE_BACKUP_SEED_PHRASE_ROUTE = '/initialize/backup-seed-phrase';
48-
const INITIALIZE_SEED_PHRASE_INTRO_ROUTE = '/initialize/seed-phrase-intro';
4948
const INITIALIZE_END_OF_FLOW_ROUTE = '/initialize/end-of-flow';
5049
const INITIALIZE_CONFIRM_SEED_PHRASE_ROUTE = '/initialize/seed-phrase/confirm';
5150
const INITIALIZE_METAMETRICS_OPT_IN_ROUTE = '/initialize/metametrics-opt-in';
@@ -119,7 +118,6 @@ const PATH_NAME_MAP = {
119118
[INITIALIZE_SEED_PHRASE_ROUTE]: 'Initialization Seed Phrase Page',
120119
[INITIALIZE_BACKUP_SEED_PHRASE_ROUTE]:
121120
'Initialization Backup Seed Phrase Page',
122-
[INITIALIZE_SEED_PHRASE_INTRO_ROUTE]: 'Initialization Seed Phrase Intro Page',
123121
[INITIALIZE_END_OF_FLOW_ROUTE]: 'End of Initialization Page',
124122
[INITIALIZE_CONFIRM_SEED_PHRASE_ROUTE]:
125123
'Initialization Confirm Seed Phrase Page',
@@ -180,7 +178,6 @@ export {
180178
NETWORKS_ROUTE,
181179
NETWORKS_FORM_ROUTE,
182180
INITIALIZE_BACKUP_SEED_PHRASE_ROUTE,
183-
INITIALIZE_SEED_PHRASE_INTRO_ROUTE,
184181
CONNECT_ROUTE,
185182
CONNECT_CONFIRM_PERMISSIONS_ROUTE,
186183
CONNECTED_ROUTE,

ui/app/pages/first-time-flow/create-password/create-password.component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import MetaFoxLogo from '../../../components/ui/metafox-logo';
55
import {
66
INITIALIZE_CREATE_PASSWORD_ROUTE,
77
INITIALIZE_IMPORT_WITH_SEED_PHRASE_ROUTE,
8-
INITIALIZE_SEED_PHRASE_INTRO_ROUTE,
8+
INITIALIZE_SEED_PHRASE_ROUTE,
99
} from '../../../helpers/constants/routes';
1010
import NewAccount from './new-account';
1111
import ImportWithSeedPhrase from './import-with-seed-phrase';
@@ -22,7 +22,7 @@ export default class CreatePassword extends PureComponent {
2222
const { isInitialized, history } = this.props;
2323

2424
if (isInitialized) {
25-
history.push(INITIALIZE_SEED_PHRASE_INTRO_ROUTE);
25+
history.push(INITIALIZE_SEED_PHRASE_ROUTE);
2626
}
2727
}
2828

ui/app/pages/first-time-flow/create-password/new-account/new-account.component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
22
import PropTypes from 'prop-types';
33
import Button from '../../../../components/ui/button';
44
import {
5-
INITIALIZE_SEED_PHRASE_INTRO_ROUTE,
5+
INITIALIZE_SEED_PHRASE_ROUTE,
66
INITIALIZE_SELECT_ACTION_ROUTE,
77
} from '../../../../helpers/constants/routes';
88
import TextField from '../../../../components/ui/text-field';
@@ -108,7 +108,7 @@ export default class NewAccount extends PureComponent {
108108
},
109109
});
110110

111-
history.push(INITIALIZE_SEED_PHRASE_INTRO_ROUTE);
111+
history.push(INITIALIZE_SEED_PHRASE_ROUTE);
112112
} catch (error) {
113113
this.setState({ passwordError: error.message });
114114
}

0 commit comments

Comments
 (0)