From a3abfb7510ce74512e1ee7ecd7ed614adebb6a32 Mon Sep 17 00:00:00 2001 From: Evgenii Kozlov Date: Mon, 17 Mar 2025 22:49:10 +0100 Subject: [PATCH] DROID-3448 Onboarding | Enhancement | Wording updates (#2166) --- .../signup/OnboardingMnemonicPhraseScreen.kt | 18 ++++++++++++++++-- .../signup/OnboardingSetProfileNameScreen.kt | 2 +- localization/src/main/res/values/strings.xml | 12 +++++++----- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/anytypeio/anytype/ui/onboarding/screens/signup/OnboardingMnemonicPhraseScreen.kt b/app/src/main/java/com/anytypeio/anytype/ui/onboarding/screens/signup/OnboardingMnemonicPhraseScreen.kt index f313929563..0244035470 100644 --- a/app/src/main/java/com/anytypeio/anytype/ui/onboarding/screens/signup/OnboardingMnemonicPhraseScreen.kt +++ b/app/src/main/java/com/anytypeio/anytype/ui/onboarding/screens/signup/OnboardingMnemonicPhraseScreen.kt @@ -84,6 +84,20 @@ fun PreviewMnemonicPhraseScreen() { ) } +@Preview +@Composable +fun PreviewMnemonicPhraseScreen2() { + val fakeMnemonic = "One Two Three Four Five Six Seven Eight Nine Ten Eleven Twelve" + MnemonicPhraseScreen( + state = OnboardingMnemonicViewModel.State.Mnemonic(fakeMnemonic), + reviewMnemonic = { /*TODO*/ }, + onCheckLaterClicked = { /*TODO*/ }, + copyMnemonicToClipboard = {}, + mnemonicColorPalette = emptyList(), + onGoToAppClicked = {} + ) +} + @OptIn(ExperimentalMaterial3Api::class) @Composable fun MnemonicPhraseScreen( @@ -190,7 +204,7 @@ fun MnemonicButtons( textAlign = TextAlign.Center ) OnBoardingButtonPrimary( - text = stringResource(id = R.string.onboarding_show_my_key), + text = stringResource(id = R.string.onboarding_tap_to_reveal), modifier = Modifier .fillMaxWidth() .padding(horizontal = 16.dp), @@ -199,7 +213,7 @@ fun MnemonicButtons( }, size = ButtonSize.Large ) OnBoardingButtonSecondary( - text = stringResource(id = R.string.onboarding_key_skip), + text = stringResource(id = R.string.onboarding_key_not_now), modifier = Modifier .fillMaxWidth() .padding( diff --git a/app/src/main/java/com/anytypeio/anytype/ui/onboarding/screens/signup/OnboardingSetProfileNameScreen.kt b/app/src/main/java/com/anytypeio/anytype/ui/onboarding/screens/signup/OnboardingSetProfileNameScreen.kt index 2a3c6e5612..42f3e43dc0 100644 --- a/app/src/main/java/com/anytypeio/anytype/ui/onboarding/screens/signup/OnboardingSetProfileNameScreen.kt +++ b/app/src/main/java/com/anytypeio/anytype/ui/onboarding/screens/signup/OnboardingSetProfileNameScreen.kt @@ -191,7 +191,7 @@ fun SetProfileNameNextButton( val focus = LocalFocusManager.current Box(modifier = modifier) { OnBoardingButtonPrimary( - text = stringResource(id = R.string.onboarding_get_my_key_button_text), + text = stringResource(id = R.string.done), onClick = { onNextClicked(text.value).also { focus.clearFocus(force = true) diff --git a/localization/src/main/res/values/strings.xml b/localization/src/main/res/values/strings.xml index 722ee7296f..148cab8b6a 100644 --- a/localization/src/main/res/values/strings.xml +++ b/localization/src/main/res/values/strings.xml @@ -1113,18 +1113,20 @@ Terms\u00A0of\u00A0Use " and " Privacy\u00A0Policy - New vault + I am new here Enter my Vault - I have a Key + Already have a Key Get my Key Enter your invite code If you don\'t have one just go to anytype.io\nand sign up to the waiting list. This is your Void It is an encrypted location for everything you create. Everything is stored on your device, and backed up to the distributed network. This is your Key - It gives you full ownership over your vault. It cannot be recovered. + It gives you full ownership over your vault. Show my Key + Tap to Reveal Skip + Not now Copy to clipboard Set your name Only seen by people you share something with. There is no central registry of these names. @@ -1135,8 +1137,8 @@ Entering the Void Your Key can\'t be empty - Read more - You can find this key later in Anytype settings + Read more about Key + You can find this key later in app settings What is the Key? It is represented by a recovery phrase – 12 random words from which your vault is magically generated on this device. Whomever knows the combination of these words owns your vault.