Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement seed phrase fallback flow #21090

Merged
merged 7 commits into from
Sep 19, 2024
Merged

Conversation

Parveshdhull
Copy link
Member

@Parveshdhull Parveshdhull commented Aug 20, 2024

original PR #20766

Designs: https://www.figma.com/design/V6nlpAWIf2e1XU8RJ9yQPe/Syncing-for-Mobile?node-id=3338-16100&node-type=CANVAS&t=yeQnRzRlEua9vV6V-0

depends on #21160 (PR merged)

status-go pr: status-im/status-go#5794

Leftover

image
As per design we also need to show profile name, but currently we don't have access to that. So only installation-id will be shown in more details bottom sheet.

Testing

  • Test happy path of syncing
  • Test fallback using correct seed phrase
  • Test fallback using different seed phrase

status: ready

@status-im-auto
Copy link
Member

status-im-auto commented Aug 20, 2024

Jenkins Builds

Click to see older builds (110)
Commit #️⃣ Finished (UTC) Duration Platform Result
dcd662b #1 2024-08-20 08:02:52 ~3 min tests 📄log
✔️ dcd662b #1 2024-08-20 08:06:57 ~7 min android-e2e 🤖apk 📲
✔️ dcd662b #1 2024-08-20 08:07:22 ~8 min android 🤖apk 📲
✔️ dcd662b #1 2024-08-20 08:09:35 ~10 min ios 📱ipa 📲
✔️ dd026f4 #3 2024-08-20 11:48:30 ~4 min tests 📄log
✔️ 4a2cc66 #4 2024-08-20 11:54:59 ~6 min tests 📄log
✔️ 4a2cc66 #4 2024-08-20 11:57:39 ~8 min ios 📱ipa 📲
✔️ 4a2cc66 #4 2024-08-20 11:57:47 ~9 min android-e2e 🤖apk 📲
✔️ 4a2cc66 #4 2024-08-20 11:58:12 ~9 min android 🤖apk 📲
✔️ bda232b #5 2024-08-20 14:06:51 ~4 min tests 📄log
✔️ bda232b #5 2024-08-20 14:09:22 ~7 min android-e2e 🤖apk 📲
✔️ bda232b #5 2024-08-20 14:10:58 ~8 min android 🤖apk 📲
✔️ bda232b #5 2024-08-20 14:11:01 ~8 min ios 📱ipa 📲
✔️ 8dbcff2 #7 2024-08-21 09:18:41 ~5 min tests 📄log
✔️ 8dbcff2 #7 2024-08-21 09:21:22 ~8 min android-e2e 🤖apk 📲
✔️ 8dbcff2 #7 2024-08-21 09:22:14 ~8 min android 🤖apk 📲
✔️ 8dbcff2 #7 2024-08-21 09:22:41 ~9 min ios 📱ipa 📲
✔️ 116effe #8 2024-08-30 09:52:43 ~4 min tests 📄log
✔️ 116effe #8 2024-08-30 09:55:33 ~7 min android-e2e 🤖apk 📲
✔️ 116effe #8 2024-08-30 09:56:04 ~7 min android 🤖apk 📲
✔️ f150b3b #9 2024-08-30 10:02:19 ~4 min tests 📄log
✔️ f150b3b #9 2024-08-30 10:05:23 ~7 min android-e2e 🤖apk 📲
✔️ f150b3b #9 2024-08-30 10:05:23 ~7 min android 🤖apk 📲
✔️ f150b3b #9 2024-08-30 10:06:54 ~9 min ios 📱ipa 📲
60c86e1 #10 2024-09-02 06:14:41 ~2 min tests 📄log
✔️ 60c86e1 #10 2024-09-02 06:19:15 ~7 min android-e2e 🤖apk 📲
✔️ 60c86e1 #10 2024-09-02 06:19:36 ~7 min android 🤖apk 📲
✔️ 60c86e1 #10 2024-09-02 06:21:32 ~9 min ios 📱ipa 📲
6b3d868 #11 2024-09-02 07:04:33 ~3 min tests 📄log
✔️ 6b3d868 #11 2024-09-02 07:07:34 ~6 min android-e2e 🤖apk 📲
✔️ 6b3d868 #11 2024-09-02 07:10:29 ~9 min ios 📱ipa 📲
3798c0d #12 2024-09-02 11:25:57 ~3 min tests 📄log
✔️ 3798c0d #12 2024-09-02 11:30:09 ~7 min android-e2e 🤖apk 📲
✔️ 3798c0d #12 2024-09-02 11:30:31 ~7 min android 🤖apk 📲
✔️ 3798c0d #12 2024-09-02 11:32:06 ~9 min ios 📱ipa 📲
47af03c #15 2024-09-02 12:14:32 ~2 min tests 📄log
909d7a3 #16 2024-09-02 12:19:43 ~3 min tests 📄log
✔️ 909d7a3 #16 2024-09-02 12:22:26 ~6 min android-e2e 🤖apk 📲
✔️ 909d7a3 #16 2024-09-02 12:25:14 ~9 min android 🤖apk 📲
✔️ 909d7a3 #16 2024-09-02 12:27:13 ~11 min ios 📱ipa 📲
✔️ d08c4fe #17 2024-09-03 07:14:35 ~4 min tests 📄log
✔️ d08c4fe #17 2024-09-03 07:16:38 ~6 min android-e2e 🤖apk 📲
✔️ d08c4fe #17 2024-09-03 07:18:00 ~7 min android 🤖apk 📲
✔️ d08c4fe #17 2024-09-03 07:20:39 ~10 min ios 📱ipa 📲
2cf316e #18 2024-09-03 09:01:46 ~2 min tests 📄log
✔️ 2cf316e #18 2024-09-03 09:06:38 ~7 min android-e2e 🤖apk 📲
✔️ 2cf316e #18 2024-09-03 09:07:04 ~7 min android 🤖apk 📲
✔️ 2cf316e #18 2024-09-03 09:08:55 ~9 min ios 📱ipa 📲
✔️ 8de051c #19 2024-09-03 10:19:24 ~4 min tests 📄log
✔️ 8de051c #19 2024-09-03 10:20:55 ~6 min android-e2e 🤖apk 📲
✔️ 89b1004 #20 2024-09-03 10:26:33 ~4 min tests 📄log
✔️ 89b1004 #20 2024-09-03 10:28:20 ~6 min android-e2e 🤖apk 📲
✔️ 89b1004 #20 2024-09-03 10:30:16 ~8 min android 🤖apk 📲
✔️ 89b1004 #20 2024-09-03 10:31:43 ~9 min ios 📱ipa 📲
✔️ 0b36516 #21 2024-09-03 11:42:34 ~5 min tests 📄log
✔️ 0b36516 #21 2024-09-03 11:46:49 ~9 min android 🤖apk 📲
✔️ 0b36516 #21 2024-09-03 11:48:30 ~11 min ios 📱ipa 📲
✔️ 27aa127 #22 2024-09-03 11:59:41 ~5 min tests 📄log
✔️ 27aa127 #22 2024-09-03 12:01:16 ~6 min android-e2e 🤖apk 📲
✔️ 27aa127 #22 2024-09-03 12:03:50 ~9 min android 🤖apk 📲
✔️ 27aa127 #22 2024-09-03 12:05:20 ~10 min ios 📱ipa 📲
✔️ fc4c406 #23 2024-09-03 12:22:45 ~4 min tests 📄log
✔️ fc4c406 #23 2024-09-03 12:25:47 ~7 min android-e2e 🤖apk 📲
✔️ fc4c406 #23 2024-09-03 12:26:06 ~8 min android 🤖apk 📲
✔️ fc4c406 #23 2024-09-03 12:27:32 ~9 min ios 📱ipa 📲
✔️ 1dc7682 #24 2024-09-03 13:30:57 ~5 min tests 📄log
✔️ 1dc7682 #24 2024-09-03 13:31:59 ~6 min android-e2e 🤖apk 📲
✔️ 1dc7682 #24 2024-09-03 13:34:54 ~9 min android 🤖apk 📲
✔️ 1dc7682 #24 2024-09-03 13:38:16 ~12 min ios 📱ipa 📲
✔️ b72e893 #25 2024-09-03 13:46:43 ~4 min tests 📄log
✔️ b72e893 #25 2024-09-03 13:49:42 ~7 min android-e2e 🤖apk 📲
✔️ b72e893 #25 2024-09-03 13:50:12 ~7 min android 🤖apk 📲
✔️ b72e893 #25 2024-09-03 13:56:39 ~14 min ios 📱ipa 📲
✔️ 4f1634b #27 2024-09-06 08:16:00 ~4 min tests 📄log
✔️ 114e4f2 #28 2024-09-06 08:22:27 ~4 min tests 📄log
✔️ 114e4f2 #28 2024-09-06 08:25:22 ~7 min android-e2e 🤖apk 📲
✔️ 114e4f2 #28 2024-09-06 08:25:57 ~7 min android 🤖apk 📲
✔️ 114e4f2 #28 2024-09-06 08:28:00 ~9 min ios 📱ipa 📲
✔️ 0d5f4c8 #29 2024-09-06 09:45:21 ~4 min tests 📄log
✔️ 0d5f4c8 #29 2024-09-06 09:47:15 ~6 min android-e2e 🤖apk 📲
✔️ 0d5f4c8 #29 2024-09-06 09:47:49 ~6 min android 🤖apk 📲
✔️ 0d5f4c8 #29 2024-09-06 09:54:04 ~12 min ios 📱ipa 📲
✔️ 094bdf8 #30 2024-09-06 10:21:44 ~4 min tests 📄log
✔️ 094bdf8 #30 2024-09-06 10:24:35 ~7 min android-e2e 🤖apk 📲
✔️ 094bdf8 #30 2024-09-06 10:24:57 ~7 min android 🤖apk 📲
✔️ 094bdf8 #30 2024-09-06 10:27:13 ~10 min ios 📱ipa 📲
✔️ a8fbe7e #31 2024-09-10 10:43:07 ~4 min tests 📄log
✔️ a8fbe7e #31 2024-09-10 10:46:25 ~7 min android-e2e 🤖apk 📲
✔️ a8fbe7e #31 2024-09-10 10:47:43 ~9 min android 🤖apk 📲
✔️ a8fbe7e #31 2024-09-10 10:50:16 ~11 min ios 📱ipa 📲
✔️ ed58ebd #32 2024-09-11 11:25:37 ~4 min tests 📄log
✔️ ed58ebd #32 2024-09-11 11:27:27 ~6 min android 🤖apk 📲
✔️ ed58ebd #32 2024-09-11 11:28:31 ~7 min android-e2e 🤖apk 📲
✔️ ed58ebd #32 2024-09-11 11:31:13 ~10 min ios 📱ipa 📲
✔️ 28d29ed #33 2024-09-11 11:36:21 ~4 min tests 📄log
✔️ 28d29ed #33 2024-09-11 11:37:55 ~6 min android-e2e 🤖apk 📲
✔️ 28d29ed #33 2024-09-11 11:39:24 ~8 min android 🤖apk 📲
✔️ 28d29ed #33 2024-09-11 11:43:13 ~11 min ios 📱ipa 📲
✔️ 69cb8d9 #34 2024-09-12 10:10:03 ~4 min tests 📄log
✔️ 69cb8d9 #34 2024-09-12 10:11:56 ~6 min android-e2e 🤖apk 📲
✔️ 69cb8d9 #34 2024-09-12 10:13:36 ~7 min android 🤖apk 📲
✔️ 69cb8d9 #34 2024-09-12 10:16:26 ~10 min ios 📱ipa 📲
✔️ 21f61aa #35 2024-09-13 14:02:36 ~4 min tests 📄log
✔️ 21f61aa #35 2024-09-13 14:05:14 ~7 min android-e2e 🤖apk 📲
✔️ 21f61aa #35 2024-09-13 14:05:42 ~7 min android 🤖apk 📲
✔️ 21f61aa #35 2024-09-13 14:08:24 ~10 min ios 📱ipa 📲
✔️ a9f11f1 #36 2024-09-16 07:29:33 ~4 min tests 📄log
✔️ a9f11f1 #36 2024-09-16 07:31:37 ~6 min android-e2e 🤖apk 📲
✔️ a9f11f1 #36 2024-09-16 07:33:17 ~8 min android 🤖apk 📲
✔️ a9f11f1 #36 2024-09-16 07:42:22 ~17 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ b8729e6 #37 2024-09-16 11:37:23 ~5 min tests 📄log
✔️ b8729e6 #37 2024-09-16 11:38:55 ~6 min android 🤖apk 📲
✔️ b8729e6 #37 2024-09-16 11:40:25 ~8 min android-e2e 🤖apk 📲
✔️ b8729e6 #37 2024-09-16 11:44:33 ~12 min ios 📱ipa 📲
✔️ 7d6bf2b #38 2024-09-19 09:05:25 ~5 min tests 📄log
✔️ 7d6bf2b #38 2024-09-19 09:06:10 ~6 min android-e2e 🤖apk 📲
✔️ 7d6bf2b #38 2024-09-19 09:07:31 ~7 min android 🤖apk 📲
✔️ 7d6bf2b #38 2024-09-19 09:16:02 ~16 min ios 📱ipa 📲

@Parveshdhull Parveshdhull force-pushed the feature/fallback-pairing-seed branch from dcd662b to 07cc9bf Compare August 20, 2024 11:41
@Parveshdhull Parveshdhull self-assigned this Aug 20, 2024
@Parveshdhull Parveshdhull changed the title [WIP]: Fallback flow for pairing [WIP]: Implement seed phrase fallback flow Aug 20, 2024
@Parveshdhull Parveshdhull force-pushed the feature/fallback-pairing-seed branch 5 times, most recently from bf1f5b6 to 8dbcff2 Compare August 21, 2024 09:13
@Parveshdhull Parveshdhull force-pushed the feature/fallback-pairing-seed branch 9 times, most recently from 47af03c to 909d7a3 Compare September 2, 2024 12:15
@Parveshdhull Parveshdhull force-pushed the feature/fallback-pairing-seed branch 4 times, most recently from 27aa127 to fc4c406 Compare September 3, 2024 12:17
@Parveshdhull Parveshdhull marked this pull request as ready for review September 3, 2024 12:19
Comment on lines 47 to 46
(defn- show-check-before-syncing
(defn- navigate-to-new-to-status
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to ignore this file. As its already reviewed in #21160

@Parveshdhull Parveshdhull requested review from ilmotta, qfrank and flexsurfer and removed request for ilmotta and qfrank September 3, 2024 12:23
@status-im-auto
Copy link
Member

100% of end-end tests have passed

Total executed tests: 51
Failed tests: 0
Expected to fail tests: 0
Passed tests: 51

Passed tests (51)

Click to expand

Class TestCommunityMultipleDeviceMergedTwo:

1. test_community_leave, id: 702845
Device sessions

2. test_community_mentions_push_notification, id: 702786
Device sessions

3. test_community_markdown_support, id: 702809
Device sessions

4. test_community_hashtag_links_to_community_channels, id: 702948
Device sessions

5. test_community_join_when_node_owner_offline, id: 703629
Device sessions

Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

1. test_1_1_chat_mute_chat, id: 703496
Device sessions

2. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783
Device sessions

3. test_1_1_chat_delete_via_long_press_relogin, id: 702784
Device sessions

Class TestWalletMultipleDevice:

1. test_wallet_send_asset_from_drawer, id: 727230
2. test_wallet_send_eth, id: 727229

Class TestWalletOneDevice:

1. test_wallet_add_remove_regular_account, id: 727231
Device sessions

Class TestActivityMultipleDevicePR:

1. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
Device sessions

Class TestCommunityOneDeviceMerged:

1. test_community_copy_and_paste_message_in_chat_input, id: 702742
Device sessions

2. test_community_navigate_to_channel_when_relaunch, id: 702846
Device sessions

3. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133
Device sessions

4. test_community_undo_delete_message, id: 702869
Device sessions

5. test_community_mute_community_and_channel, id: 703382
Device sessions

6. test_community_discovery, id: 703503
Device sessions

Class TestActivityCenterContactRequestMultipleDevicePR:

1. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851
Device sessions

2. test_activity_center_contact_request_decline, id: 702850
Device sessions

3. test_add_contact_field_validation, id: 702777
Device sessions

Class TestActivityMultipleDevicePRTwo:

1. test_activity_center_admin_notification_accept_swipe, id: 702958
Device sessions

2. test_activity_center_mentions, id: 702957
Device sessions

Class TestOneToOneChatMultipleSharedDevicesNewUi:

1. test_1_1_chat_edit_message, id: 702855
Device sessions

2. test_1_1_chat_message_reaction, id: 702730
Device sessions

3. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
Device sessions

4. test_1_1_chat_pin_messages, id: 702731
Device sessions

5. test_1_1_chat_text_message_delete_push_disappear, id: 702733
Device sessions

6. test_1_1_chat_push_emoji, id: 702813
Device sessions

7. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
Device sessions

8. test_1_1_chat_send_image_save_and_share, id: 703391
Device sessions

Class TestCommunityMultipleDeviceMerged:

1. test_community_emoji_send_copy_paste_reply, id: 702840
Device sessions

2. test_community_contact_block_unblock_offline, id: 702894
Device sessions

3. test_community_mark_all_messages_as_read, id: 703086
Device sessions

4. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
Device sessions

5. test_community_unread_messages_badge, id: 702841
Device sessions

6. test_community_message_delete, id: 702839
Device sessions

7. test_community_message_send_check_timestamps_sender_username, id: 702838
Device sessions

8. test_community_edit_delete_message_when_offline, id: 704615
Device sessions

9. test_community_one_image_send_reply, id: 702859
Device sessions

10. test_community_message_edit, id: 702843
Device sessions

11. test_community_several_images_send_reply, id: 703194
Device sessions

Class TestGroupChatMultipleDeviceMergedNewUI:

1. test_group_chat_reactions, id: 703202
Device sessions

2. test_group_chat_join_send_text_messages_push, id: 702807
Device sessions

3. test_group_chat_offline_pn, id: 702808
Device sessions

4. test_group_chat_pin_messages, id: 702732
Device sessions

5. test_group_chat_send_image_save_and_share, id: 703297
Device sessions

6. test_group_chat_mute_chat, id: 703495
Device sessions

Class TestDeepLinksOneDevice:

1. test_links_open_universal_links_from_chat, id: 704613
Device sessions

2. test_links_deep_links_profile, id: 702775
Device sessions

3. test_deep_links_communities, id: 739307
Device sessions

@Horupa-Olena
Copy link

Hi @Parveshdhull !
Thanks for your help with the PR.
The new screen is fine, but I noticed that the buttons on several screens have lost their color.
At first, I thought it was a glitch, but the issue is consistently reproducible. Could you check if the recent design changes might have affected the buttons?
1
2
3

@Parveshdhull
Copy link
Member Author

Hi, thank you for finding this issue. It's unlikely that it's related to the PR. But just to be sure are you facing this on Android? And on which flow, fresh account? Please can you confirm, that you tried another device?

@Horupa-Olena
Copy link

@Parveshdhull This reproduces on both platforms (Android, iOS) and only in the fallback flow, regardless of the account.
When I create an account, perform a successful sync, and restore, the buttons on these screens have color.

@Parveshdhull
Copy link
Member Author

hi @Horupa-Olena, Thank you for finding this issue. It should be fixed now

By the way, we missed this earlier, but it is also present in the Issue 2 video at 1:15.

@jrainville
Copy link
Member

@jrainville My point is that this process should be as simple and clear for users as possible, so they don't end up in a situation where they can't figure it out and just go looking for a more convenient app.

Because even for me, it's hard sometime to understand this complicated process after reviewing the design and our call. And for an average user, it would seem like an impossible task.

That's a good point. Maybe that's something we should bring up with designers to address soon after.

While the flows are currently correct, they are a bit confusing like you pointed out.

@Horupa-Olena
Copy link

@Parveshdhull Thank you for your fix. No issues from my side. PR is ready to be merged!

@Parveshdhull
Copy link
Member Author

@Parveshdhull Thank you for your fix. No issues from my side. PR is ready to be merged!

cc @qfrank

@qfrank
Copy link
Contributor

qfrank commented Sep 17, 2024

@Parveshdhull Thank you for your fix. No issues from my side. PR is ready to be merged!

cc @qfrank

waiting for PR approval from @igor-sirotin

@qfrank
Copy link
Contributor

qfrank commented Sep 19, 2024

@Parveshdhull Thank you for your fix. No issues from my side. PR is ready to be merged!

cc @qfrank

status-go changes merged @Parveshdhull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

9 participants