-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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(snap-keyring): handle displayAccountNameSuggestion
flag
#30531
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
displayAccountNameSuggestion
flagdisplayAccountNameSuggestion
flag
displayConfirmation: boolean = true, | ||
displayAccountNameSuggestion: boolean = true, |
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.
For future reviewers: The displayConfirmation
was wrongly set to false
. Now with this change, all pre-installed Snaps will have to send this flag while emitting the AccountCreated
event.
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.
Note: The change mentioned in the comment above was reverted because it requires a change in snap-watch-only
. It will be handled in a separate PR once the Snap is updated.
displayAccountNameSuggestion
flagdisplayAccountNameSuggestion
flag
Builds ready [d05e715]
Page Load Metrics (1526 ± 59 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
Just to complement my approval, here's a video of my testing: Screen.Recording.2025-02-25.at.10.26.30.mov |
Description
This PR handles the
displayAccountNameSuggestion
flag that can be set by pre-installed Snaps in theaccountCreated
event.Related issues
Fixes: https://github.com/MetaMask/accounts-planning/issues/829
Manual testing steps
Update a pre-installed Snap to set
displayAccountNameSuggestion
to false:Build the Snap and add a resolution in the extension's
package.json
:Start the extension:
yarn && yarn start:flask
Create an account
The account name dialog should not be shown
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist