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(onbaording): implement basic functions for the new onboarding #17003

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

Conversation

jrainville
Copy link
Member

Fixes #16832

Implements all the needed basic Nim functions for the new onboarding.

They do no do anything just yet. They shall be integrated in another PR.

Everything compiles nonetheless.

Fixes #16832

Implements all the needed basic Nim functions for the new onboarding.

They do no do anything just yet. They shall be integrated in another commit.
@jrainville jrainville requested review from micieslak, caybro, alexjba and a team as code owners December 20, 2024 19:10
@jrainville jrainville changed the title feat(onbaording): implement basic function for the new onboarding feat(onbaording): implement basic functions for the new onboarding Dec 20, 2024
@status-im-auto
Copy link
Member

status-im-auto commented Dec 20, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ a54d864 #1 2024-12-20 19:16:55 ~6 min macos/aarch64 🍎dmg
✔️ a54d864 #1 2024-12-20 19:18:44 ~8 min tests/nim 📄log
✔️ a54d864 #1 2024-12-20 19:23:12 ~12 min tests/ui 📄log
✔️ a54d864 #1 2024-12-20 19:27:05 ~16 min macos/x86_64 🍎dmg
✔️ a54d864 #1 2024-12-20 19:28:58 ~18 min linux-nix/x86_64 📦tgz
✔️ a54d864 #1 2024-12-20 19:30:50 ~20 min linux/x86_64 📦tgz
✔️ a54d864 #1 2024-12-20 19:33:34 ~23 min windows/x86_64 💿exe

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.

LGTM overall

proc createAccountAndLogin*(self: Controller, password: string): string =
return self.accountsService.createAccountAndLogin(
password,
displayName = "",
Copy link
Member

Choose a reason for hiding this comment

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

Don't we want to still generate at least some displayName?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good question. I haven't tested yet since I've yet to integrate it. I imagine that if we set it to "", it will automatically default to the alias, which should be what we want.
I think for now the alias is the three word name, but we were already thinking of replacing it for the pubkey, and it's an easy change

mnemonic,
password,
recoverAccount,
displayName = "",
Copy link
Member

Choose a reason for hiding this comment

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

Same here

CreateProfileWithKeycardExistingSeedphrase,
LoginWithSeedphrase,
LoginWithSyncing,
LoginWithKeycard
Copy link
Member

Choose a reason for hiding this comment

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

My idea was to use the C++ enum here as the only source of truth (which I created in the other PR which is not merged yet ofc), and also in QML. Perhaps later :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah yeah. I didn't find an enum that was usable, so I created one, but I have nothing against getting rid of this one to share the same you have once I integrate.
Do you know how to access the enum from Nim?

QtProperty[int] keycardRemainingPinAttempts:
read = getKeycardRemainingPinAttempts
notify = keycardRemainingPinAttemptsChanged
proc setKeycardRemainingPinAttempts(self: View, keycardRemainingPinAttempts: int) =
Copy link
Member

Choose a reason for hiding this comment

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

This should probably not have a setter?

Copy link
Member

Choose a reason for hiding this comment

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

(same for some of the other props in this file too)

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] Create new Onboarding NIM backend
3 participants