-
Notifications
You must be signed in to change notification settings - Fork 7
Ledger UI: Onboarding #402
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
base: ledger-ui-authorization
Are you sure you want to change the base?
Conversation
8d7950a to
17c7160
Compare
d588630 to
272504f
Compare
59bf256 to
90d6ca5
Compare
TalDerei
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the onboarding UI changes are more extensive than necessary. The helper slices could have largely remained intact, but this PR opts for a unified restructuring, folding those helper slices into a single consolidated onboarding slice. I won't block on this for the interest of time.
| setPhraseLength: (phraseLength: 12 | 24) => { | ||
| const { phrase: existingPhrase } = get().onboarding.importPhrase; | ||
|
|
||
| const phrase = new Array<string>(phraseLength).map((_, i) => existingPhrase[i] ?? ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comment: this is safer
const phrase = Array.from({ length: phraseLength }, (_, i) => existingPhrase[i] ?? '');can we make this change?
This PR implements the user interface and onboarding flow for Ledger hardware wallet support. Building on the foundation custody infrastructure, this adds the UI components and onboarding flows. Note: This PR has been split - authorization slice changes have been moved to PR #403.
Key Changes
apps/extension/src/routes/page/onboarding/custody/connect-ledger.tsx:39-88Onboarding