Skip to content

Commit 3697f63

Browse files
authored
Fix syncing flow navigation and designs (#21884)
1 parent ba8cf8e commit 3697f63

File tree

6 files changed

+23
-20
lines changed

6 files changed

+23
-20
lines changed

src/status_im/contexts/onboarding/intro/view.cljs

-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
[quo/bottom-actions
7474
(cond->
7575
{:container-style (style/bottom-actions-container (safe-area/get-bottom))
76-
:actions :two-vertical-actions
7776
:description :bottom
7877
:description-text [terms]}
7978

src/status_im/contexts/onboarding/syncing/progress/style.cljs

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@
2121
:background-color (when-not in-onboarding? colors/neutral-80-opa-80-blur)})
2222

2323
(defn page-illustration
24-
[width]
24+
[width pairing-progress?]
2525
{:flex 1
2626
:width width
2727
:align-items :center
28+
:margin-vertical (when pairing-progress? 24)
2829
:align-self :center
2930
:justify-content :center})

src/status_im/contexts/onboarding/syncing/progress/view.cljs

+16-13
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@
1818
[quo/text-combinations
1919
{:container-style {:margin-top 56 :margin-horizontal 20}
2020
:title (i18n/label (if pairing-progress?
21-
:t/sync-devices-title
21+
:t/sync-profile-title
2222
:t/sync-devices-error-title))
23-
:description (i18n/label (if pairing-progress?
24-
:t/sync-devices-sub-title
25-
:t/sync-devices-error-sub-title))
23+
:description (when-not pairing-progress?
24+
(i18n/label :t/sync-devices-error-sub-title))
2625
:title-accessibility-label :progress-screen-title
2726
:description-accessibility-label :progress-screen-sub-title}])
2827

@@ -43,30 +42,29 @@
4342
(defn try-again-button
4443
[profile-color logged-in?]
4544
[quo/bottom-actions
46-
{:actions (if logged-in? :one-action :two-actions)
45+
{:actions (if logged-in? :one-action :two-vertical-actions)
4746
:blur? true
48-
:button-one-label (i18n/label :t/recovery-phrase)
49-
:button-one-props {:type :primary
47+
:container-style {:height (when-not logged-in? 116)}
48+
:button-two-label (i18n/label :t/use-recovery-phrase)
49+
:button-two-props {:type :primary
5050
:accessibility-label :try-seed-phrase-button
5151
:customization-color profile-color
52-
:container-style {:flex 1}
5352
:size 40
5453
:on-press navigate-to-enter-seed-phrase}
55-
(if logged-in? :button-one-label :button-two-label)
54+
:button-one-label
5655
(i18n/label :t/try-again)
57-
(if logged-in? :button-one-props :button-two-props)
56+
:button-one-props
5857
{:type (if logged-in? :primary :grey)
5958
:accessibility-label :try-again-later-button
6059
:customization-color profile-color
61-
:container-style {:flex 1}
6260
:size 40
6361
:on-press #(try-again logged-in?)}}])
6462

6563
(defn- illustration
6664
[pairing-progress?]
6765
[rn/image
6866
{:resize-mode :contain
69-
:style (style/page-illustration (:width (rn/get-window)))
67+
:style (style/page-illustration (:width (rn/get-window)) pairing-progress?)
7068
:source (resources/get-image (if pairing-progress? :syncing-devices :syncing-wrong))}])
7169

7270
(defn view
@@ -83,7 +81,12 @@
8381
[quo/page-nav {:type :no-title :background :blur}]
8482
[page-title pairing-progress?]
8583
[illustration pairing-progress?]
86-
(when-not (pairing-progress pairing-status)
84+
(if pairing-progress?
85+
[quo/information-box
86+
{:type :default
87+
:blur? true
88+
:style {:margin-vertical 11 :margin-horizontal 12}}
89+
(i18n/label :t/sync-devices-sub-title)]
8790
[try-again-button profile-color logged-in?])]))
8891

8992
(defn view-onboarding

src/status_im/contexts/profile/login/events.cljs

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
[:dispatch [:centralized-metrics/track :metric/keycard-login]])]
8383
(cond
8484
pairing-completed?
85-
[[:dispatch [:update-theme-and-init-root :screen/onboarding.syncing-results]]]
85+
[[:dispatch [:onboarding/finish-onboarding false]]]
8686

8787
(get db :onboarding/new-account?)
8888
[[:dispatch [:onboarding/finalize-setup]]

translations/en.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -2517,14 +2517,15 @@
25172517
"sync-code-generated": "Sync code generated",
25182518
"sync-devices-complete-sub-title": "Your devices are now in sync",
25192519
"sync-devices-complete-title": "Device sync complete!",
2520-
"sync-devices-error-sub-title": "Make sure both devices are powered on and connected to the internet.",
2521-
"sync-devices-error-title": "Oops, something’s wrong",
2520+
"sync-devices-error-sub-title": "Try again and double-check the instructions",
2521+
"sync-devices-error-title": "Oops, something’s wrong!",
25222522
"sync-devices-result-sub-title": "Your devices are now in sync",
2523-
"sync-devices-sub-title": "Please keep both devices switched on and connected to the internet until sync is complete",
2523+
"sync-devices-sub-title": "Please keep both devices switched on and connected to the same network until sync is complete.",
25242524
"sync-devices-title": "Syncing devices...",
25252525
"sync-in-progress": "Syncing...",
25262526
"sync-new-device": "Sync new device",
25272527
"sync-or-recover-profile": "Sync or recover profile",
2528+
"sync-profile-title": "Syncing profile...",
25282529
"sync-settings": "Sync settings",
25292530
"sync-synced": "In sync",
25302531
"sync-your-profile": "Sync your profile",

translations/ja.json

-1
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,6 @@
19131913
"sync-code-generated": "同期コードが生成されました",
19141914
"sync-devices-complete-sub-title": "お使いのデバイスが同期されました",
19151915
"sync-devices-complete-title": "デバイスの同期が完了しました!",
1916-
"sync-devices-error-sub-title": "両方のデバイスの電源がオンになっていて、インターネットに接続されていることを確認してください。",
19171916
"sync-devices-error-title": "おっと、何かが間違っています",
19181917
"sync-devices-result-sub-title": "お使いのデバイスが同期されました",
19191918
"sync-devices-sub-title": "同期が完了するまで、両方のデバイスの電源を入れ、インターネットに接続したままにしてください。",

0 commit comments

Comments
 (0)