Skip to content

Commit f041efe

Browse files
committed
updated tour texts
1 parent 287b2e7 commit f041efe

File tree

5 files changed

+14
-12
lines changed

5 files changed

+14
-12
lines changed

src/components/Tour.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
<WorldCheckIcon />
4444
</template>
4545
<template v-slot:account_icon>
46-
<svg width="14" height="21" style="height: inherit; margin-bottom: -3px;" fill="none"
46+
<svg width="14" height="21" style="height: inherit; margin-bottom: -3px;"
47+
fill="none"
4748
xmlns="http://www.w3.org/2000/svg">
4849
<g opacity=".7">
4950
<rect x=".75" y=".75" width="12.5" height="19.5"

src/lib/tour/onboarding/03_FirstTransactionStep.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function getFirstTransactionStep({ isSmallScreen, txsLen }: IOnboardingGe
6464
: '.vue-recycle-scroller__item-view:nth-child(2)'}`;
6565
},
6666
content: getOnboardingTexts(OnboardingTourStep.FIRST_TRANSACTION)[
67-
txsLen.value <= 1 ? 'default' : 'alternative'],
67+
txsLen.value === 1 ? 'default' : 'alternative'],
6868
params: {
6969
get placement() {
7070
return isSmallScreen.value ? 'bottom-start' : 'left';

src/lib/tour/onboarding/05_WalletBalanceStep.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { useAddressStore } from '@/stores/Address';
12
import { useBtcAddressStore } from '@/stores/BtcAddress';
23
import { defaultTooltipModifiers } from '..';
34
import { IOnboardingGetStepFnArgs, ITourStep, IWalletHTMLElements, OnboardingTourStep } from '../types';
@@ -41,7 +42,8 @@ export function getWalletBalanceStep({ isSmallScreen }: IOnboardingGetStepFnArgs
4142
};
4243

4344
const { accountBalance: btcAccountBalance } = useBtcAddressStore();
44-
const hasBitcoin = () => btcAccountBalance.value > 0;
45+
const { accountBalance: nimAccountBalance } = useAddressStore();
46+
const hasOnlyNim = () => nimAccountBalance.value > 0 && btcAccountBalance.value === 0;
4547

4648
return {
4749
path: '/',
@@ -50,7 +52,7 @@ export function getWalletBalanceStep({ isSmallScreen }: IOnboardingGetStepFnArgs
5052
return `${IWalletHTMLElements.ACCOUNT_OVERVIEW_BALANCE} .balance-distribution
5153
${!isSmallScreen.value ? '.btc .tooltip .bar' : ''}`;
5254
},
53-
content: getOnboardingTexts(OnboardingTourStep.WALLET_BALANCE)[!hasBitcoin() ? 'default' : 'alternative'],
55+
content: getOnboardingTexts(OnboardingTourStep.WALLET_BALANCE)[hasOnlyNim() ? 'default' : 'alternative'],
5456
params: {
5557
get placement() {
5658
return isSmallScreen.value ? 'bottom' : 'right';

src/lib/tour/onboarding/07_AccountOptionsStep.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,20 @@ export function getAccountOptionsStep({ isSmallScreen, isLargeScreen }: IOnboard
4646
return isLargeScreen.value ? '/accounts' : '/accounts?sidebar=true';
4747
},
4848
tooltip: {
49-
target: IWalletHTMLElements.MODAL_PAGE,
49+
get target() {
50+
return isSmallScreen.value ? IWalletHTMLElements.MODAL_ACCOUNT_PICTURE : IWalletHTMLElements.MODAL_PAGE;
51+
},
5052
content: getOnboardingTexts(OnboardingTourStep.ACCOUNT_OPTIONS).default,
5153
params: {
5254
get placement() {
53-
return isSmallScreen.value ? 'top' : 'right';
55+
return isSmallScreen.value ? 'bottom-start' : 'right';
5456
},
5557
get modifiers() {
5658
return [
5759
{
5860
name: 'offset',
5961
options: {
60-
offset: [0, 16],
62+
offset: [isSmallScreen.value ? -13.5 : 0, 16],
6163
},
6264
},
6365
{

src/lib/tour/onboarding/OnboardingTourTexts.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ const texts: ITourStepTexts<OnboardingTourStep> = {
4444
$t('Currently you have 100% NIM, and no BTC.'),
4545
],
4646
alternative: [
47-
// TODO Implement this
4847
$t('Check the bar-chart to see how your addresses compose your total balance.'),
4948
],
5049
},
@@ -64,14 +63,12 @@ const texts: ITourStepTexts<OnboardingTourStep> = {
6463
[OnboardingTourStep.ACCOUNT_OPTIONS]: {
6564
default: [
6665
$t('Create, switch and log out of accounts.'),
67-
$t('All security relevant actions can be found here too.'),
66+
$t('Security options and backup can be found here.'),
6867
],
6968
},
70-
// TODO Review these
7169
[OnboardingTourStep.BACKUP_OPTION_FROM_OPTIONS]: {
7270
default: [
73-
$t('You can always create a new backup.'),
74-
$t('Simply click your account and select ‘Create backup’.'),
71+
$t('You can always create a new backup. Simply click your account and select ‘Create backup’.'),
7572
],
7673
},
7774
[OnboardingTourStep.ONBOARDING_COMPLETED]: {

0 commit comments

Comments
 (0)