From 398c30e9ed32a02b8c881efdd9d7ee07fbca6a64 Mon Sep 17 00:00:00 2001 From: Icaro Motta Date: Wed, 18 Dec 2024 12:36:54 -0300 Subject: [PATCH] chore: Give non-destructive instructions when Keycard migration failed (#21843) --- src/status_im/contexts/keycard/migrate/fail/view.cljs | 8 ++++---- translations/en.json | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/status_im/contexts/keycard/migrate/fail/view.cljs b/src/status_im/contexts/keycard/migrate/fail/view.cljs index beb0d3f53e..f680ba8aaf 100644 --- a/src/status_im/contexts/keycard/migrate/fail/view.cljs +++ b/src/status_im/contexts/keycard/migrate/fail/view.cljs @@ -13,7 +13,7 @@ customization-color (rf/sub [:profile/customization-color])] [:<> [quo/page-top - {:title (i18n/label :t/failed-to-migrate-key-pair) + {:title (i18n/label :t/something-didnt-go-as-planned) :description :context-tag :context-tag {:full-name profile-name :profile-picture profile-picture @@ -24,9 +24,9 @@ {:resize-mode :contain :source (resources/get-image :keycard-migration-failed)}]] [quo/divider-label (i18n/label :t/what-you-can-do)] - [quo/markdown-list {:description (i18n/label :t/log-out-remove-profile)}] - [quo/markdown-list {:description (i18n/label :t/recover-status-profile)}] + [quo/markdown-list {:description (i18n/label :t/keycard-migration-failed-instruction-1)}] + [quo/markdown-list {:description (i18n/label :t/keycard-migration-failed-instruction-2)}] [quo/bottom-actions {:actions :one-action - :button-one-label (i18n/label :t/log-out-remove) + :button-one-label (i18n/label :t/logout) :button-one-props {:on-press #(rf/dispatch [:profile/logout])}}]])) diff --git a/translations/en.json b/translations/en.json index 1d35280da4..a6ce3ab03c 100644 --- a/translations/en.json +++ b/translations/en.json @@ -1386,6 +1386,8 @@ "keycard-is-frozen-reset": "Reset with PUK", "keycard-is-frozen-title": "Keycard is frozen", "keycard-locked": "Keycard is locked", + "keycard-migration-failed-instruction-1": "Try logging out and logging back in with Keycard; everything might work fine.", + "keycard-migration-failed-instruction-2": "If the key pair hasn’t migrated to Keycard, remove your profile, and recover it using your recovery phrase.", "keycard-not-empty": "Keycard is not empty", "keycard-onboarding-finishing-header": "Finishing up", "keycard-onboarding-intro-header": "Store your keys on Keycard", @@ -2427,6 +2429,7 @@ "slippage-should-be-more-than-0": "Slippage should be more than 0", "slow": "Slow", "something-about-you": "Something about you", + "something-didnt-go-as-planned": "Something didn't go as planned", "something-went-wrong": "Something went wrong", "something-went-wrong-please-try-again-later": "Something went wrong. Modify swap parameters or try again later.", "soon": "Soon",