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

feat(onboarding)_: add a notification when importing old account #6255

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jrainville
Copy link
Member

Needed for status-im/status-desktop#17028

When a user imports an old account, we start fetching the backups. Now, we show an activity center notification to let the user know, because the onboarding doesn't block during the fetching anymore, so it happens in the background.

After a timeout, the notification turns into a failure state (full or partial). The user can then restart the fetching.

I added a test to validate the logic of calculating if the fetching was a success. That logic used to be in Nim.

@status-im-auto
Copy link
Member

status-im-auto commented Jan 15, 2025

Jenkins Builds

Click to see older builds (24)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ cc655fc #1 2025-01-15 18:50:52 ~4 min ios 📦zip
✖️ cc655fc #1 2025-01-15 18:50:58 ~4 min tests 📄log
✔️ cc655fc #1 2025-01-15 18:51:50 ~5 min macos 📦zip
✔️ cc655fc #1 2025-01-15 18:52:02 ~5 min linux 📦zip
✔️ cc655fc #1 2025-01-15 18:52:13 ~5 min macos 📦zip
✔️ cc655fc #1 2025-01-15 18:52:19 ~5 min windows 📦zip
✔️ cc655fc #1 2025-01-15 18:52:33 ~5 min android 📦aar
✔️ cc655fc #1 2025-01-15 18:53:17 ~6 min tests-rpc 📄log
✔️ 4ed5c9a #2 2025-01-15 19:09:31 ~3 min macos 📦zip
✔️ 4ed5c9a #2 2025-01-15 19:09:39 ~3 min windows 📦zip
✔️ 4ed5c9a #2 2025-01-15 19:10:40 ~4 min ios 📦zip
✔️ 4ed5c9a #2 2025-01-15 19:10:52 ~5 min linux 📦zip
✔️ 4ed5c9a #2 2025-01-15 19:11:12 ~5 min macos 📦zip
✔️ 4ed5c9a #2 2025-01-15 19:12:06 ~6 min android 📦aar
✔️ 4ed5c9a #2 2025-01-15 19:12:57 ~7 min tests-rpc 📄log
✔️ 4ed5c9a #2 2025-01-15 19:37:23 ~31 min tests 📄log
✔️ 4ed5c9a #3 2025-01-21 18:33:07 ~3 min macos 📦zip
✔️ 4ed5c9a #3 2025-01-21 18:33:26 ~3 min ios 📦zip
✔️ 4ed5c9a #3 2025-01-21 18:35:04 ~5 min macos 📦zip
✔️ 4ed5c9a #3 2025-01-21 18:35:13 ~5 min linux 📦zip
✔️ 4ed5c9a #3 2025-01-21 18:35:15 ~5 min windows 📦zip
✔️ 4ed5c9a #3 2025-01-21 18:35:20 ~5 min android 📦aar
✔️ 4ed5c9a #3 2025-01-21 18:36:10 ~6 min tests-rpc 📄log
✖️ 4ed5c9a #3 2025-01-21 18:47:32 ~17 min tests 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ b8a3d32 #4 2025-01-23 16:50:03 ~3 min macos 📦zip
✔️ b8a3d32 #4 2025-01-23 16:50:43 ~4 min ios 📦zip
✔️ b8a3d32 #4 2025-01-23 16:51:32 ~4 min windows 📦zip
✔️ b8a3d32 #4 2025-01-23 16:53:09 ~6 min macos 📦zip
✔️ b8a3d32 #4 2025-01-23 16:56:53 ~10 min android 📦aar
✔️ b8a3d32 #4 2025-01-23 16:58:40 ~12 min linux 📦zip
✖️ b8a3d32 #4 2025-01-23 17:00:06 ~13 min tests-rpc 📄log
✔️ b8a3d32 #4 2025-01-23 17:25:07 ~38 min tests 📄log
✔️ 746cb48 #5 2025-01-24 15:49:12 ~3 min macos 📦zip
✔️ 746cb48 #5 2025-01-24 15:49:46 ~4 min windows 📦zip
✔️ 746cb48 #5 2025-01-24 15:49:53 ~4 min ios 📦zip
✔️ 746cb48 #5 2025-01-24 15:50:57 ~5 min linux 📦zip
✔️ 746cb48 #5 2025-01-24 15:51:08 ~5 min macos 📦zip
✔️ 746cb48 #5 2025-01-24 15:51:31 ~5 min android 📦aar
✔️ 746cb48 #5 2025-01-24 15:51:47 ~6 min tests-rpc 📄log
✔️ 746cb48 #5 2025-01-24 16:17:12 ~31 min tests 📄log

Copy link

codecov bot commented Jan 15, 2025

Codecov Report

Attention: Patch coverage is 67.46988% with 27 lines in your changes missing coverage. Please review.

Project coverage is 61.90%. Comparing base (e71fdbc) to head (746cb48).

Files with missing lines Patch % Lines
protocol/messenger.go 66.66% 7 Missing and 6 partials ⚠️
protocol/messenger_backup_handler.go 70.27% 4 Missing and 7 partials ⚠️
protocol/messenger_mailserver.go 50.00% 1 Missing and 1 partial ⚠️
protocol/messenger_testing_utils.go 66.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6255      +/-   ##
===========================================
+ Coverage    61.84%   61.90%   +0.06%     
===========================================
  Files          843      843              
  Lines       111287   111368      +81     
===========================================
+ Hits         68824    68942     +118     
+ Misses       34497    34467      -30     
+ Partials      7966     7959       -7     
Flag Coverage Δ
functional 21.63% <14.45%> (+0.08%) ⬆️
unit 60.35% <67.46%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
protocol/activity_center.go 89.47% <ø> (ø)
protocol/wakusync/progress_response.go 86.66% <ø> (+86.66%) ⬆️
protocol/messenger_testing_utils.go 60.55% <66.66%> (+0.24%) ⬆️
protocol/messenger_mailserver.go 47.67% <50.00%> (+1.41%) ⬆️
protocol/messenger_backup_handler.go 55.98% <70.27%> (+6.88%) ⬆️
protocol/messenger.go 64.37% <66.66%> (+0.50%) ⬆️

... and 34 files with indirect coverage changes

Base automatically changed from feat/new-onbaording to develop January 21, 2025 18:29
@jrainville jrainville force-pushed the feat/new-onboarding-fetching-notification branch from 4ed5c9a to b8a3d32 Compare January 23, 2025 16:46
Needed for status-im/status-desktop#17028

When a user imports an old account, we start fetching the backups. Now, we show an activity center notification to let the user know, because the onboarding doesn't block during the fetching anymore, so it happens in the background.

After a timeout, the notification turns into a failure state (full or partial). The user can then restart the fetching.

I added a test to validate the logic of calculating if the fetching was a success. That logic used to be in Nim.
@jrainville jrainville force-pushed the feat/new-onboarding-fetching-notification branch from b8a3d32 to 746cb48 Compare January 24, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants