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

Integrate new logins flows happy paths #17137

Merged
merged 4 commits into from
Feb 4, 2025

Conversation

jrainville
Copy link
Member

What does the PR do

Fixes #17080

Based on top of #17127

Integrates the password and keycard flows

Affected areas

New login when the feature flag is enabled

Architecture compliance

Screenshot of functionality (including design for comparison)

  • I've checked the design and this PR matches it

Password login:

login.webm

Keycard login:

keycardlogin.webm

Impact on end user

Nothing without the feature flag.

With the flag, enables people to login using the new Login flows.
No (super) unhappy paths yet, so just login with password and PIN. Wrong password and login errors are supported.
Generating a password error is hard unless you hardcode one or try to mess up the migration

How to test

  • Enable the feature flag export FLAG_ONBOARDING_V2_ENABLED=1 && make run
  • Have a normal account (created whichever way) and try to login using password
  • Have a keycard account (created whichever way) and try to login using PIN

Risk

Tick one:

  • Low risk: 2 devs MUST perform testing as specified above and attach their results as comments to this PR before merging.
  • High risk: QA team MUST perform additional testing in the specified affected areas before merging.

Since it's behind the flag, no real risk. Worst case, some of the new flow has a bug or a missing edge case

@status-im-auto
Copy link
Member

status-im-auto commented Jan 28, 2025

Jenkins Builds

Click to see older builds (47)
Commit #️⃣ Finished (UTC) Duration Platform Result
67a41aa #1 2025-01-28 16:34:17 ~8 min linux/x86_64 📄log
✔️ 67a41aa #1 2025-01-28 16:34:44 ~8 min tests/nim 📄log
67a41aa #1 2025-01-28 16:35:43 ~9 min windows/x86_64 📄log
67a41aa #1 2025-01-28 16:36:04 ~10 min macos/x86_64 📄log
67a41aa #1 2025-01-28 16:39:21 ~13 min tests/ui 📄log
✔️ 67a41aa #1 2025-01-28 16:44:30 ~18 min linux-nix/x86_64 📦tgz
67a41aa #1 2025-01-29 08:00:04 ~15 hr macos/aarch64 📄log
✔️ 15b8543 #2 2025-01-29 19:09:38 ~5 min macos/aarch64 🍎dmg
15b8543 #2 2025-01-29 19:09:39 ~5 min macos/x86_64 📄log
✔️ 15b8543 #2 2025-01-29 19:12:30 ~8 min tests/nim 📄log
15b8543 #2 2025-01-29 19:12:50 ~9 min linux/x86_64 📄log
15b8543 #2 2025-01-29 19:14:44 ~11 min tests/ui 📄log
✔️ 15b8543 #2 2025-01-29 19:29:05 ~25 min linux-nix/x86_64 📦tgz
✔️ 15b8543 #2 2025-01-29 19:34:20 ~30 min windows/x86_64 💿exe
e4d1a89 #3 2025-01-29 19:42:22 ~4 min macos/x86_64 📄log
✔️ e4d1a89 #3 2025-01-29 19:42:32 ~4 min macos/aarch64 🍎dmg
e4d1a89 #3 2025-01-29 19:44:44 ~6 min linux/x86_64 📄log
✔️ e4d1a89 #3 2025-01-29 19:46:48 ~8 min tests/nim 📄log
✔️ e4d1a89 #3 2025-01-29 19:50:48 ~12 min tests/ui 📄log
✔️ e4d1a89 #3 2025-01-29 19:55:16 ~17 min linux-nix/x86_64 📦tgz
e3a548f #4 2025-01-29 20:02:30 ~4 min macos/x86_64 📄log
✔️ e3a548f #4 2025-01-29 20:04:18 ~6 min macos/aarch64 🍎dmg
e3a548f #4 2025-01-29 20:04:31 ~6 min linux/x86_64 📄log
✔️ e3a548f #4 2025-01-29 20:08:13 ~10 min tests/nim 📄log
✔️ e3a548f #4 2025-01-29 20:09:58 ~11 min tests/ui 📄log
✔️ e3a548f #4 2025-01-29 20:11:19 ~13 min linux-nix/x86_64 📦tgz
✔️ e3a548f #4 2025-01-29 20:34:14 ~36 min windows/x86_64 💿exe
✔️ 49940d9 #5 2025-02-04 11:50:54 ~7 min macos/aarch64 🍎dmg
✔️ 49940d9 #5 2025-02-04 11:52:56 ~9 min tests/nim 📄log
49940d9 #5 2025-02-04 11:54:17 ~10 min tests/ui 📄log
✔️ 49940d9 #5 2025-02-04 12:00:10 ~16 min macos/x86_64 🍎dmg
✔️ 49940d9 #5 2025-02-04 12:03:47 ~20 min linux-nix/x86_64 📦tgz
✔️ 49940d9 #5 2025-02-04 12:04:09 ~20 min linux/x86_64 📦tgz
✔️ 0bdc533 #6 2025-02-04 12:11:10 ~6 min macos/aarch64 🍎dmg
✔️ 0bdc533 #6 2025-02-04 12:13:46 ~9 min tests/nim 📄log
0bdc533 #6 2025-02-04 12:16:22 ~11 min tests/ui 📄log
✔️ 0bdc533 #6 2025-02-04 12:17:17 ~12 min macos/x86_64 🍎dmg
✔️ 4649f49 #8 2025-02-04 12:32:25 ~7 min macos/aarch64 🍎dmg
✔️ 4649f49 #8 2025-02-04 12:33:10 ~7 min tests/nim 📄log
4649f49 #8 2025-02-04 12:35:24 ~10 min tests/ui 📄log
✔️ 4649f49 #8 2025-02-04 12:40:34 ~15 min macos/x86_64 🍎dmg
✔️ 4649f49 #8 2025-02-04 12:43:45 ~18 min linux-nix/x86_64 📦tgz
✔️ 4649f49 #8 2025-02-04 12:47:47 ~22 min linux/x86_64 📦tgz
✔️ 4649f49 #8 2025-02-04 12:54:53 ~29 min windows/x86_64 💿exe
✔️ 4649f49 #9 2025-02-04 13:28:00 ~5 min macos/aarch64 🍎dmg
✔️ 4649f49 #9 2025-02-04 13:31:13 ~8 min tests/nim 📄log
4649f49 #9 2025-02-04 13:32:51 ~10 min tests/ui 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 729c711 #10 2025-02-04 13:39:00 ~4 min macos/aarch64 🍎dmg
✔️ 729c711 #10 2025-02-04 13:43:34 ~9 min tests/nim 📄log
729c711 #10 2025-02-04 13:44:20 ~10 min tests/ui 📄log
✔️ 729c711 #10 2025-02-04 13:46:40 ~12 min macos/x86_64 🍎dmg
✔️ 729c711 #10 2025-02-04 13:53:08 ~18 min linux-nix/x86_64 📦tgz
✔️ 729c711 #10 2025-02-04 13:56:32 ~22 min linux/x86_64 📦tgz
✔️ 729c711 #10 2025-02-04 14:02:23 ~28 min windows/x86_64 💿exe
✔️ a820612 #11 2025-02-04 14:35:40 ~5 min macos/aarch64 🍎dmg
✔️ a820612 #11 2025-02-04 14:38:48 ~8 min tests/nim 📄log
✔️ a820612 #11 2025-02-04 14:42:39 ~12 min macos/x86_64 🍎dmg
✔️ a820612 #11 2025-02-04 14:43:06 ~13 min tests/ui 📄log
✔️ a820612 #11 2025-02-04 14:47:14 ~17 min linux/x86_64 📦tgz
✔️ a820612 #11 2025-02-04 14:49:52 ~19 min linux-nix/x86_64 📦tgz
✔️ a820612 #11 2025-02-04 14:58:34 ~28 min windows/x86_64 💿exe

@jrainville jrainville force-pushed the feat/status-keycard-go-api-v2 branch from 6b598ce to 51baa19 Compare January 28, 2025 20:14
@jrainville jrainville requested a review from a team as a code owner January 28, 2025 20:14
@jrainville jrainville requested review from dlipicar and removed request for a team January 28, 2025 20:14
@jrainville jrainville linked an issue Jan 29, 2025 that may be closed by this pull request
@jrainville jrainville force-pushed the feat/status-keycard-go-api-v2 branch 2 times, most recently from 65416c6 to 78e4617 Compare January 29, 2025 18:05
jrainville added a commit that referenced this pull request Jan 29, 2025
@jrainville jrainville force-pushed the feat/new-onbaording-login-flows branch from 67a41aa to 15b8543 Compare January 29, 2025 19:03
jrainville added a commit that referenced this pull request Jan 29, 2025
@jrainville jrainville force-pushed the feat/new-onbaording-login-flows branch from 15b8543 to e4d1a89 Compare January 29, 2025 19:37
@jrainville jrainville force-pushed the feat/status-keycard-go-api-v2 branch from 78e4617 to ed4446e Compare January 29, 2025 19:56
jrainville added a commit that referenced this pull request Jan 29, 2025
@jrainville jrainville force-pushed the feat/new-onbaording-login-flows branch from e4d1a89 to e3a548f Compare January 29, 2025 19:57
Copy link
Member

@micieslak micieslak left a comment

Choose a reason for hiding this comment

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

Looks good in general 💪 Some points for consideration.

ui/main.qml Outdated Show resolved Hide resolved
ui/main.qml Outdated Show resolved Hide resolved
Comment on lines 451 to 453
if (error != "") {
// We should never be here since everything should be validated already
console.error("!!! ONBOARDING FINISHED WITH ERROR:", error)
// TODO show error
return
}
Copy link
Member

Choose a reason for hiding this comment

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

Yes, we don't need this check because of two resones

  • everything should be validated
  • even is not, nim side can reject the login as for any other login errors by emitting accountLoginError

@igor-sirotin igor-sirotin force-pushed the feat/status-keycard-go-api-v2 branch from ed4446e to 0061e2b Compare February 2, 2025 13:45
Copy link
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

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

Don't really have anything else than what @micieslak said

Besides the need for a rebase ;)

igor-sirotin pushed a commit that referenced this pull request Feb 4, 2025
@igor-sirotin igor-sirotin force-pushed the feat/new-onbaording-login-flows branch from e3a548f to 49940d9 Compare February 4, 2025 11:43
igor-sirotin pushed a commit that referenced this pull request Feb 4, 2025
@igor-sirotin igor-sirotin force-pushed the feat/new-onbaording-login-flows branch from 49940d9 to 0bdc533 Compare February 4, 2025 12:04
Base automatically changed from feat/status-keycard-go-api-v2 to master February 4, 2025 13:22
@igor-sirotin igor-sirotin force-pushed the feat/new-onbaording-login-flows branch from 4649f49 to 729c711 Compare February 4, 2025 13:33
@igor-sirotin
Copy link
Contributor

@micieslak please review, comments addressed 👌

Copy link
Member

@micieslak micieslak left a comment

Choose a reason for hiding this comment

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

LGTM!

@igor-sirotin igor-sirotin merged commit bf5de40 into master Feb 4, 2025
9 checks passed
@igor-sirotin igor-sirotin deleted the feat/new-onbaording-login-flows branch February 4, 2025 15:08
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.

[Onboarding] Integrate the new Login flows
5 participants