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

WIP feat(Onboarding) Implement new Login screen #17057

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

caybro
Copy link
Member

@caybro caybro commented Jan 10, 2025

What does the PR do

TODO:

  • "Unlock with seedphrase" flow
  • "Lost keycard" additional flows

Fixes #17049
Fixes #17081

Affected areas

Login screen

Architecture compliance

Screenshot of functionality (including design for comparison)

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

image

image

image

@caybro caybro force-pushed the feat/onboarding-new-login-screen branch 2 times, most recently from 544dd34 to f6b898d Compare January 10, 2025 19:27
caybro added a commit that referenced this pull request Jan 10, 2025
@status-im-auto
Copy link
Member

status-im-auto commented Jan 10, 2025

Jenkins Builds

Click to see older builds (128)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ f6b898d #3 2025-01-10 19:35:56 ~7 min macos/aarch64 🍎dmg
✔️ f6b898d #3 2025-01-10 19:37:59 ~9 min tests/nim 📄log
✔️ f6b898d #3 2025-01-10 19:41:44 ~13 min tests/ui 📄log
✔️ f6b898d #3 2025-01-10 19:46:21 ~18 min macos/x86_64 🍎dmg
✔️ f6b898d #3 2025-01-10 19:46:56 ~18 min linux-nix/x86_64 📦tgz
✔️ f6b898d #3 2025-01-10 19:50:50 ~22 min linux/x86_64 📦tgz
✔️ f6b898d #3 2025-01-10 19:52:07 ~23 min windows/x86_64 💿exe
✔️ 7be9676 #4 2025-01-10 21:43:36 ~6 min macos/aarch64 🍎dmg
✔️ 7be9676 #4 2025-01-10 21:46:18 ~9 min tests/nim 📄log
✔️ 7be9676 #4 2025-01-10 21:49:09 ~12 min tests/ui 📄log
✔️ 7be9676 #4 2025-01-10 21:53:42 ~16 min macos/x86_64 🍎dmg
✔️ 7be9676 #4 2025-01-10 21:54:32 ~17 min linux-nix/x86_64 📦tgz
✔️ 7be9676 #4 2025-01-10 21:57:22 ~20 min windows/x86_64 💿exe
✔️ 7be9676 #4 2025-01-10 21:58:00 ~21 min linux/x86_64 📦tgz
✔️ 401e2e0 #5 2025-01-10 22:34:16 ~6 min macos/aarch64 🍎dmg
✔️ 401e2e0 #5 2025-01-10 22:38:03 ~10 min tests/nim 📄log
✔️ 401e2e0 #5 2025-01-10 22:39:45 ~11 min tests/ui 📄log
✔️ 401e2e0 #5 2025-01-10 22:43:04 ~15 min macos/x86_64 🍎dmg
✔️ 401e2e0 #5 2025-01-10 22:43:11 ~15 min linux-nix/x86_64 📦tgz
✔️ 401e2e0 #5 2025-01-10 22:46:52 ~19 min linux/x86_64 📦tgz
✔️ 401e2e0 #5 2025-01-10 22:47:37 ~19 min windows/x86_64 💿exe
✔️ b688aae #6 2025-01-11 10:13:16 ~6 min macos/aarch64 🍎dmg
✔️ b688aae #6 2025-01-11 10:16:31 ~9 min tests/nim 📄log
✔️ b688aae #6 2025-01-11 10:20:14 ~13 min tests/ui 📄log
✔️ b688aae #6 2025-01-11 10:21:49 ~14 min macos/x86_64 🍎dmg
✔️ b688aae #6 2025-01-11 10:24:42 ~17 min linux-nix/x86_64 📦tgz
✔️ b688aae #6 2025-01-11 10:27:01 ~20 min windows/x86_64 💿exe
✔️ b688aae #6 2025-01-11 10:27:51 ~21 min linux/x86_64 📦tgz
✔️ c263dfc #7 2025-01-12 12:39:51 ~6 min macos/aarch64 🍎dmg
✔️ c263dfc #7 2025-01-12 12:43:45 ~10 min tests/nim 📄log
✔️ c263dfc #7 2025-01-12 12:46:56 ~13 min tests/ui 📄log
✔️ c263dfc #7 2025-01-12 12:48:37 ~15 min macos/x86_64 🍎dmg
✔️ c263dfc #7 2025-01-12 12:50:20 ~17 min linux-nix/x86_64 📦tgz
✔️ c263dfc #7 2025-01-12 12:54:19 ~20 min windows/x86_64 💿exe
✔️ c263dfc #7 2025-01-12 12:58:34 ~25 min linux/x86_64 📦tgz
✔️ 73ddd3b #8 2025-01-13 15:17:59 ~7 min macos/aarch64 🍎dmg
✔️ 73ddd3b #8 2025-01-13 15:19:14 ~8 min tests/nim 📄log
✔️ 73ddd3b #8 2025-01-13 15:23:41 ~13 min tests/ui 📄log
✔️ 73ddd3b #8 2025-01-13 15:25:50 ~15 min linux-nix/x86_64 📦tgz
✔️ 73ddd3b #8 2025-01-13 15:31:03 ~20 min macos/x86_64 🍎dmg
✔️ 73ddd3b #8 2025-01-13 15:31:39 ~20 min windows/x86_64 💿exe
✔️ 73ddd3b #8 2025-01-13 15:35:32 ~24 min linux/x86_64 📦tgz
✔️ 0557b49 #9 2025-01-13 21:01:11 ~7 min macos/aarch64 🍎dmg
✔️ 0557b49 #9 2025-01-13 21:03:05 ~9 min tests/nim 📄log
✔️ 0557b49 #9 2025-01-13 21:06:12 ~12 min tests/ui 📄log
✔️ 0557b49 #9 2025-01-13 21:06:41 ~12 min macos/x86_64 🍎dmg
✔️ a9fecc4 #10 2025-01-13 21:16:07 ~4 min macos/aarch64 🍎dmg
✔️ a9fecc4 #10 2025-01-13 21:20:08 ~8 min tests/nim 📄log
✔️ a9fecc4 #10 2025-01-13 21:22:42 ~11 min macos/x86_64 🍎dmg
✔️ a9fecc4 #10 2025-01-13 21:24:32 ~12 min tests/ui 📄log
✔️ a9fecc4 #10 2025-01-13 21:32:07 ~20 min linux-nix/x86_64 📦tgz
✔️ a9fecc4 #10 2025-01-13 21:35:23 ~23 min windows/x86_64 💿exe
✔️ a9fecc4 #10 2025-01-13 21:35:23 ~23 min linux/x86_64 📦tgz
✔️ 5e00603 #12 2025-01-14 10:01:15 ~7 min macos/aarch64 🍎dmg
✔️ 5e00603 #12 2025-01-14 10:02:28 ~8 min tests/nim 📄log
✔️ 5e00603 #12 2025-01-14 10:07:01 ~13 min tests/ui 📄log
✔️ 5e00603 #12 2025-01-14 10:11:35 ~17 min macos/x86_64 🍎dmg
✔️ 5e00603 #12 2025-01-14 10:11:56 ~18 min linux-nix/x86_64 📦tgz
✔️ 5e00603 #12 2025-01-14 10:14:37 ~20 min linux/x86_64 📦tgz
✔️ 5e00603 #12 2025-01-14 10:20:10 ~26 min windows/x86_64 💿exe
✔️ 589e17c #13 2025-01-14 18:32:14 ~5 min macos/aarch64 🍎dmg
✔️ 589e17c #13 2025-01-14 18:35:24 ~8 min tests/nim 📄log
589e17c #13 2025-01-14 18:38:58 ~12 min tests/ui 📄log
✔️ 589e17c #13 2025-01-14 18:39:46 ~12 min macos/x86_64 🍎dmg
✔️ 0157c62 #14 2025-01-14 18:48:35 ~4 min macos/aarch64 🍎dmg
✔️ 0157c62 #14 2025-01-14 18:53:44 ~9 min tests/nim 📄log
✔️ 0157c62 #14 2025-01-14 18:55:15 ~11 min tests/ui 📄log
✔️ 0157c62 #14 2025-01-14 18:55:18 ~11 min macos/x86_64 🍎dmg
✔️ 0157c62 #14 2025-01-14 19:04:16 ~20 min linux/x86_64 📦tgz
✔️ 0157c62 #14 2025-01-14 19:06:23 ~22 min linux-nix/x86_64 📦tgz
✔️ 0157c62 #14 2025-01-14 19:06:40 ~22 min windows/x86_64 💿exe
e788759 #15 2025-01-15 20:44:42 ~4 min macos/aarch64 📄log
✔️ e788759 #15 2025-01-15 20:48:28 ~8 min tests/nim 📄log
e788759 #15 2025-01-15 20:52:04 ~12 min tests/ui 📄log
✔️ e788759 #15 2025-01-15 20:52:47 ~12 min macos/x86_64 🍎dmg
✔️ e788759 #15 2025-01-15 20:58:40 ~18 min linux-nix/x86_64 📦tgz
✔️ e788759 #15 2025-01-15 21:01:08 ~21 min windows/x86_64 💿exe
✔️ e788759 #15 2025-01-15 21:01:13 ~21 min linux/x86_64 📦tgz
✔️ e788759 #16 2025-01-15 21:07:39 ~11 min tests/ui 📄log
8f2112d #16 2025-01-16 10:36:31 ~3 min macos/aarch64 📄log
✔️ 8f2112d #16 2025-01-16 10:42:51 ~9 min tests/nim 📄log
✔️ 8f2112d #17 2025-01-16 10:44:34 ~11 min tests/ui 📄log
✔️ 8f2112d #16 2025-01-16 10:44:50 ~11 min macos/x86_64 🍎dmg
✔️ 8f2112d #16 2025-01-16 10:53:46 ~20 min linux/x86_64 📦tgz
✔️ 8f2112d #16 2025-01-16 10:54:20 ~20 min windows/x86_64 💿exe
✔️ 8f2112d #16 2025-01-16 10:54:40 ~21 min linux-nix/x86_64 📦tgz
✔️ 3d87833 #17 2025-01-16 11:15:53 ~5 min macos/aarch64 🍎dmg
✔️ 3d87833 #17 2025-01-16 11:19:07 ~8 min tests/nim 📄log
✔️ 3d87833 #17 2025-01-16 11:21:37 ~11 min macos/x86_64 🍎dmg
3d87833 #18 2025-01-16 11:23:30 ~12 min tests/ui 📄log
✔️ 3d87833 #17 2025-01-16 11:27:39 ~17 min linux-nix/x86_64 📦tgz
✔️ 3d87833 #17 2025-01-16 11:29:51 ~19 min windows/x86_64 💿exe
✔️ 3d87833 #17 2025-01-16 11:30:55 ~20 min linux/x86_64 📦tgz
✔️ bf1d7e1 #18 2025-01-16 19:00:12 ~6 min macos/aarch64 🍎dmg
✔️ bf1d7e1 #18 2025-01-16 19:02:18 ~8 min tests/nim 📄log
bf1d7e1 #19 2025-01-16 19:03:33 ~9 min tests/ui 📄log
✔️ bf1d7e1 #18 2025-01-16 19:06:43 ~12 min macos/x86_64 🍎dmg
✔️ bf1d7e1 #18 2025-01-16 19:14:20 ~20 min linux-nix/x86_64 📦tgz
✔️ bf1d7e1 #18 2025-01-16 19:14:54 ~20 min windows/x86_64 💿exe
✔️ bf1d7e1 #18 2025-01-16 19:15:40 ~21 min linux/x86_64 📦tgz
✔️ 6ae95f6 #19 2025-01-16 19:30:21 ~5 min macos/aarch64 🍎dmg
✔️ 6ae95f6 #19 2025-01-16 19:32:07 ~7 min tests/nim 📄log
✔️ 6ae95f6 #19 2025-01-16 19:35:35 ~10 min macos/x86_64 🍎dmg
✔️ 6ae95f6 #20 2025-01-16 19:36:59 ~12 min tests/ui 📄log
✔️ 6ae95f6 #19 2025-01-16 19:45:37 ~21 min linux-nix/x86_64 📦tgz
✔️ 6ae95f6 #19 2025-01-16 19:46:37 ~22 min linux/x86_64 📦tgz
✔️ 6ae95f6 #19 2025-01-16 19:47:35 ~22 min windows/x86_64 💿exe
✔️ 3e8ee44 #20 2025-01-17 16:13:34 ~5 min macos/aarch64 🍎dmg
✔️ 3e8ee44 #20 2025-01-17 16:17:21 ~9 min tests/nim 📄log
✔️ 3e8ee44 #20 2025-01-17 16:21:00 ~12 min macos/x86_64 🍎dmg
✔️ 3e8ee44 #21 2025-01-17 16:21:18 ~13 min tests/ui 📄log
✔️ 3e8ee44 #20 2025-01-17 16:26:48 ~18 min linux-nix/x86_64 📦tgz
✔️ 3e8ee44 #20 2025-01-17 16:29:15 ~21 min linux/x86_64 📦tgz
✔️ 3e8ee44 #20 2025-01-17 16:29:22 ~21 min windows/x86_64 💿exe
✔️ bb03c20 #21 2025-01-17 16:44:17 ~4 min macos/aarch64 🍎dmg
✔️ bb03c20 #21 2025-01-17 16:50:55 ~11 min macos/x86_64 🍎dmg
✔️ bb03c20 #21 2025-01-17 16:52:59 ~13 min tests/nim 📄log
bb03c20 #22 2025-01-17 16:55:16 ~15 min tests/ui 📄log
✔️ bb03c20 #21 2025-01-17 16:59:55 ~20 min linux-nix/x86_64 📦tgz
✔️ bb03c20 #21 2025-01-17 17:00:25 ~20 min windows/x86_64 💿exe
✔️ bb03c20 #21 2025-01-17 17:01:45 ~21 min linux/x86_64 📦tgz
✔️ 740cdcb #22 2025-01-17 17:15:23 ~5 min macos/aarch64 🍎dmg
✔️ 740cdcb #22 2025-01-17 17:18:46 ~8 min tests/nim 📄log
✔️ 740cdcb #22 2025-01-17 17:21:28 ~11 min macos/x86_64 🍎dmg
740cdcb #23 2025-01-17 17:22:24 ~12 min tests/ui 📄log
✔️ 740cdcb #22 2025-01-17 17:28:33 ~18 min windows/x86_64 💿exe
✔️ 740cdcb #22 2025-01-17 17:29:03 ~19 min linux-nix/x86_64 📦tgz
✔️ 740cdcb #22 2025-01-17 17:30:27 ~20 min linux/x86_64 📦tgz
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ f9242cd #23 2025-01-17 20:58:35 ~6 min macos/aarch64 🍎dmg
✔️ f9242cd #23 2025-01-17 21:01:22 ~9 min tests/nim 📄log
✔️ f9242cd #23 2025-01-17 21:03:09 ~11 min macos/x86_64 🍎dmg
✔️ f9242cd #24 2025-01-17 21:05:16 ~13 min tests/ui 📄log
✔️ f9242cd #23 2025-01-17 21:11:14 ~19 min windows/x86_64 💿exe
✔️ f9242cd #23 2025-01-17 21:12:00 ~20 min linux-nix/x86_64 📦tgz
✔️ f9242cd #23 2025-01-17 21:12:46 ~20 min linux/x86_64 📦tgz
✔️ 8eed24e #24 2025-01-18 17:19:11 ~5 min macos/aarch64 🍎dmg
✔️ 8eed24e #24 2025-01-18 17:22:28 ~8 min tests/nim 📄log
✔️ 8eed24e #24 2025-01-18 17:25:13 ~11 min macos/x86_64 🍎dmg
✔️ 8eed24e #25 2025-01-18 17:26:22 ~12 min tests/ui 📄log
✔️ 8eed24e #24 2025-01-18 17:31:17 ~17 min linux-nix/x86_64 📦tgz
✔️ 8eed24e #24 2025-01-18 17:33:57 ~20 min windows/x86_64 💿exe
✔️ 8eed24e #24 2025-01-18 17:34:30 ~20 min linux/x86_64 📦tgz

caybro added a commit that referenced this pull request Jan 10, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from f6b898d to 7be9676 Compare January 10, 2025 21:36
caybro added a commit that referenced this pull request Jan 10, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from 7be9676 to 401e2e0 Compare January 10, 2025 22:27
caybro added a commit that referenced this pull request Jan 11, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from 401e2e0 to b688aae Compare January 11, 2025 10:06
caybro added a commit that referenced this pull request Jan 12, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from b688aae to c263dfc Compare January 12, 2025 12:33
@micieslak micieslak force-pushed the feat/onboarding-rework-1 branch 2 times, most recently from d5524fd to 35b8620 Compare January 13, 2025 11:27
caybro added a commit that referenced this pull request Jan 13, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from c263dfc to 73ddd3b Compare January 13, 2025 15:10
@anastasiyaig anastasiyaig force-pushed the feat/onboarding-rework-1 branch from 29ce4b0 to 43a5b68 Compare January 13, 2025 15:24
caybro added a commit that referenced this pull request Jan 13, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from 73ddd3b to 0557b49 Compare January 13, 2025 20:53
caybro added a commit that referenced this pull request Jan 13, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from 0557b49 to a9fecc4 Compare January 13, 2025 21:11
Base automatically changed from feat/onboarding-rework-1 to master January 14, 2025 09:49
caybro added a commit that referenced this pull request Jan 14, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from a9fecc4 to 5e00603 Compare January 14, 2025 09:53
caybro added a commit that referenced this pull request Jan 14, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from 5e00603 to 589e17c Compare January 14, 2025 18:26
caybro added a commit that referenced this pull request Jan 14, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from 589e17c to 0157c62 Compare January 14, 2025 18:43
caybro added a commit that referenced this pull request Jan 15, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from 0157c62 to e788759 Compare January 15, 2025 20:39
caybro added a commit that referenced this pull request Jan 16, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from e788759 to 8f2112d Compare January 16, 2025 10:33
caybro added a commit that referenced this pull request Jan 16, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from 8f2112d to 3d87833 Compare January 16, 2025 11:10
caybro added a commit that referenced this pull request Jan 16, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from 3d87833 to bf1d7e1 Compare January 16, 2025 18:53
caybro added a commit that referenced this pull request Jan 16, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from bf1d7e1 to 6ae95f6 Compare January 16, 2025 19:24
Copy link
Member

@jrainville jrainville left a comment

Choose a reason for hiding this comment

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

Nice work

@@ -226,9 +229,15 @@ Item {

// Some component validations:
if(text.length !== d.currentPinIndex)
console.error("StatusPinInput input management error. Current pin length must be "+ text.length + "and is " + d.currentPinIndex)
console.error("StatusPinInput input management error. Current pin length must be "+ text.length + " and is " + d.currentPinIndex)
Copy link
Member

Choose a reason for hiding this comment

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

Does QML support strings using backticks?
If so, this would be cleaner:

Suggested change
console.error("StatusPinInput input management error. Current pin length must be "+ text.length + " and is " + d.currentPinIndex)
console.error(`StatusPinInput input management error. Current pin length must be ${text.length} and is ${ d.currentPinIndex}`)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah it does; existing code so didn't touch it more than I wanted :)

required property var loginAccountsModel

property bool biometricsAvailable: Qt.platform.os === Constants.mac
required property bool isBiometricsLogin // FIXME should come from the loginAccountsModel for each profile separately?
Copy link
Member

Choose a reason for hiding this comment

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

I just checked and indeed, it is per account because it comes from localAccountSettings and it changes depending on the selected profile

proc setSelectedLoginAccount*(self: Controller, keyUid: string, isKeycardAccount: bool) =
  ...
  let selectedAccount = self.getSelectedLoginAccount()
  singletonInstance.localAccountSettings.setFileName(selectedAccount.name)

Copy link
Member Author

Choose a reason for hiding this comment

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

But wtf... how can this work when we are not logged in yet 🤔

Currently it's evaluated based on:

isBiometricsLogin: localAccountSettings.storeToKeychainValue === Constants.keychain.storedValue.store

localAccountSettings

Copy link
Member Author

Choose a reason for hiding this comment

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

I mean, in the context of the login screen, this doesn't make sense, as we are not logged in yet

Copy link
Member

@jrainville jrainville Jan 17, 2025

Choose a reason for hiding this comment

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

This settings are not encrypted. It's what you can find in Status/qt. sensitive_settings are the settings for when you are logged in

Copy link
Member Author

Choose a reason for hiding this comment

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

This settings are not encrypted. It's what you can find in Status/qt. sensitive_settings are the settings for when you are logged in

Ok, but how does the particular setting get associated with another profile (one that's not yet logged in)?

image: model.thumbnailImage
colorId: model.colorId
colorHash: model.colorHash
// keycardLocked // FIXME needed here too? should be coming from the model imo
Copy link
Member

Choose a reason for hiding this comment

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

What happens if this is set to true? Does it mean that it uses a keycard or that the keycard is locked?

Copy link
Member Author

@caybro caybro Jan 17, 2025

Choose a reason for hiding this comment

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

The latter, we can arrive there after too many failed PIN attempts

Copy link
Member Author

Choose a reason for hiding this comment

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

But I verified with Ben that it's not needed in the combo (that keycard may not be inserted yet); will remove

caybro added a commit that referenced this pull request Jan 17, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from 6ae95f6 to 3e8ee44 Compare January 17, 2025 16:07
caybro added a commit that referenced this pull request Jan 17, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from 3e8ee44 to bb03c20 Compare January 17, 2025 16:39
caybro added a commit that referenced this pull request Jan 17, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from bb03c20 to 740cdcb Compare January 17, 2025 17:09
caybro added a commit that referenced this pull request Jan 17, 2025
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from 740cdcb to f9242cd Compare January 17, 2025 20:51
@caybro caybro force-pushed the feat/onboarding-new-login-screen branch from f9242cd to 8eed24e Compare January 18, 2025 17:13
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] Fix the animation glitch in dark theme [Onboarding] Implement new Login screen
3 participants