From c9726a43048fcc2319e4d1bdfbd6e0ac35631d4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Renaudeau?= Date: Tue, 26 Jun 2018 17:42:08 +0200 Subject: [PATCH] pixel push from wording sessions --- src/components/DashboardPage/EmptyState.js | 3 +- src/components/Onboarding/helperComponents.js | 1 + src/components/Onboarding/steps/Finish.js | 11 +++-- .../AddAccounts/steps/03-step-import.js | 17 ++------ src/config/cryptocurrencies.js | 4 +- static/i18n/en/app.yml | 11 +++-- static/i18n/en/onboarding.yml | 40 +++++++++---------- 7 files changed, 40 insertions(+), 47 deletions(-) diff --git a/src/components/DashboardPage/EmptyState.js b/src/components/DashboardPage/EmptyState.js index e4b8b4c4..5f976e06 100644 --- a/src/components/DashboardPage/EmptyState.js +++ b/src/components/DashboardPage/EmptyState.js @@ -53,7 +53,7 @@ class EmptyState extends PureComponent { - - {t('onboarding:finish.followUsLabel')} + + {socialMedia.map(socMed => )} diff --git a/src/components/modals/AddAccounts/steps/03-step-import.js b/src/components/modals/AddAccounts/steps/03-step-import.js index e12e337f..f263e8c7 100644 --- a/src/components/modals/AddAccounts/steps/03-step-import.js +++ b/src/components/modals/AddAccounts/steps/03-step-import.js @@ -257,23 +257,14 @@ export const StepImportFooter = ({ return account && account.operations.length > 0 }) - const addedAccountsCount = checkedAccountsIds.filter(id => { - const account = scannedAccounts.find(acc => acc.id === id) - return account && account.operations.length > 0 - }).length + const count = checkedAccountsIds.length const ctaWording = scanStatus === 'scanning' ? t('app:common.sync.syncing') - : willCreateAccount && willAddAccounts - ? `${t('app:addAccounts.cta.create')} / ${t('app:addAccounts.cta.import', { - count: addedAccountsCount, - })}` - : willCreateAccount - ? t('app:addAccounts.cta.create') - : willAddAccounts - ? t('app:addAccounts.cta.import', { count: addedAccountsCount }) - : t('app:common.close') + : willCreateAccount || willAddAccounts + ? t('app:addAccounts.cta.add', { count }) + : t('app:common.close') const willClose = !willCreateAccount && !willAddAccounts const onClick = willClose diff --git a/src/config/cryptocurrencies.js b/src/config/cryptocurrencies.js index 894cdeef..2667ddb7 100644 --- a/src/config/cryptocurrencies.js +++ b/src/config/cryptocurrencies.js @@ -31,5 +31,7 @@ const supported: CryptoCurrencyIds[] = [ ] export const listCryptoCurrencies = memoize((withDevCrypto?: boolean) => - listCC(withDevCrypto).filter(c => supported.includes(c.id)), + listCC(withDevCrypto) + .filter(c => supported.includes(c.id)) + .sort((a, b) => a.name.localeCompare(b.name)), ) diff --git a/static/i18n/en/app.yml b/static/i18n/en/app.yml index 7da263a7..3d94114d 100644 --- a/static/i18n/en/app.yml +++ b/static/i18n/en/app.yml @@ -125,8 +125,8 @@ emptyState: sidebar: text: Press the + button to add an account to your portfolio. dashboard: - title: 'Let’s set up your portfolio!' - desc: Open the Manager to install apps on your device or add accounts if your device already has apps installed. + title: 'Add accounts to your portfolio' + desc: Your portfolio has no accounts the first time Ledger Live is launched. Open the Manager to install apps on your Ledger device before you start adding accounts to your portfolio. buttons: addAccount: Add accounts installApp: Open Manager @@ -142,7 +142,7 @@ genuinecheck: addAccounts: title: Add accounts breadcrumb: - informations: Choose asset + informations: Crypto asset connectDevice: Connect device import: Select accounts finish: Confirmation @@ -162,9 +162,8 @@ addAccounts: noAccountToCreate: No {{currencyName}} account was found to create. somethingWentWrong: Something went wrong during synchronization, please try again. cta: - create: 'Add account' - import: 'Add account' # Remove - import_plural: 'Add accounts' + add: 'Add account' + add_plural: 'Add accounts' operationDetails: title: Operation details account: Account diff --git a/static/i18n/en/onboarding.yml b/static/i18n/en/onboarding.yml index f920583d..d813a43f 100644 --- a/static/i18n/en/onboarding.yml +++ b/static/i18n/en/onboarding.yml @@ -1,8 +1,8 @@ breadcrumb: selectDevice: Select device - selectPIN: Choose PIN + selectPIN: PIN code writeSeed: Recovery phrase - genuineCheck: Security check + genuineCheck: Security checklist setPassword: Encrypt data analytics: Analytics start: @@ -10,6 +10,7 @@ start: startBtn: Get started init: title: Get started with your Ledger device + desc: The unified crypto portfolio, backed by the security of your Ledger device. newDevice: title: Initialize a new Ledger device restoreDevice: @@ -38,13 +39,13 @@ selectPIN: note2: An 8-digit PIN code offers an optimum level of security. note3: Never use a device supplied with a PIN code or a 24-word recovery phrase. initialize: - title: Start initialization - Choose your PIN code + title: Choose your PIN code instructions: nano: step1: Connect the Ledger Nano S to your computer. step2: Press both buttons simultaneously as instructed on the screen. step3: Press the right button to select Configure as new device?. # Configure as new device?. - step4: 'Choose a PIN code between 4 and 8 digits long. Then select the checkmark (✓).' + step4: 'Choose a PIN code between 4 and 8 digits long followed by the checkmark (✓).' blue: step1: Connect the Ledger Blue to your computer. step2: Tap on Configure as new device. @@ -56,7 +57,7 @@ selectPIN: step1: Connect the Ledger Nano S to your computer. step2: Press both buttons simultaneously as instructed on the screen. step3: Press the left button to cancel Initialize as new device?. Press the right button to select Restore configuration?. # Initialize as new device? Restore configuration?. - step4: 'Choose a PIN code between 4 and 8 digits long. Then select the checkmark (✓).' + step4: 'Choose a PIN code between 4 and 8 digits long followed by the checkmark (✓).' blue: step1: Connect the Ledger Blue to your computer. step2: Tap on Restore configuration. # Restore configuration. @@ -87,14 +88,14 @@ writeSeed: step3: Repeat the process until the last word. disclaimer: note1: Carefully secure your 24-word recovery phrase out of sight. - note2: Ledger does not keep any backup of your recovery phrase. - note3: Make sure you are the sole holder of your recovery phrase. + note2: Make sure you are the sole holder of your recovery phrase. + note3: Ledger does not keep any backup of your recovery phrase. note4: Never use a device supplied with a recovery phrase or a PIN code. genuineCheck: - title: Final security check - descNano: Your Ledger Nano S should now display Your device is now ready. Before getting started, please confirm that - descBlue: Your Ledger Blue should now display Your device is now ready. Before getting started, please confirm that - descRestore: Before getting started, please confirm that + title: Security checklist + descNano: Before getting started, please confirm + descBlue: Before getting started, please confirm + descRestore: Before getting started, please confirm step1: title: Did you choose your PIN code by yourself? step2: @@ -103,18 +104,18 @@ genuineCheck: title: Do you have a genuine Ledger device? isGenuinePassed: Your device is genuine buttons: - genuineCheck: Genuine check + genuineCheck: Check now contactSupport: Ledger Support errorPage: ledgerNano: title: Oops, something went wrong... - desc: Go back to the security check or request Ledger Support assistance. + desc: Go back to the security checklist or request Ledger Support assistance. ledgerBlue: title: Oops, something went wrong... - desc: Go back to the security check or request Ledger Support assistance. + desc: Go back to the security checklist or request Ledger Support assistance. setPassword: title: Encrypt Ledger Live data - desc: Enhance your privacy. Set a password to encrypt Ledger Live data stored on your computer, including account names, balances, transactions and public addresses. + desc: Set a password to encrypt Ledger Live data stored on your computer, including account names, balances, transactions and public addresses. disclaimer: note1: Make sure to remember your password. Do not share it. note2: Losing your password requires resetting Ledger Live and re-adding accounts. @@ -130,9 +131,8 @@ analytics: desc: Enable analytics of anonymous data to help Ledger improve the user experience. This includes the operating system, language, firmware versions and the number of added accounts. sentryLogs: title: Report bugs - desc: Automatically send bug reports to help Ledger developers diagnose issues and improve Ledger Live performance. + desc: Automatically send reports to help Ledger fix bugs. finish: - title: Welcome to Ledger Live - desc: The unified crypto portfolio, backed by the security of your Ledger device. - openAppButton: Launch - followUsLabel: Follow us + title: Your device is ready! + desc: Proceed to your porfolio and start adding your accounts... + openAppButton: Open Ledger Live