-
Couldn't load subscription status.
- Fork 5.4k
feat: update selectors to include internal accounts #21554
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: update selectors to include internal accounts #21554
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. |
|
No dependency changes detected. Learn more about Socket for GitHub ↗︎ 👍 No dependency changes detected in pull request |
|
https://airgap.it/ can be used to replicate this if a Keystone device isn't available @k-g-j |
…tps://github.com/MetaMask/metamask-extension into feat/update-selectors-to-include-internal-accounts
f46249b
|
@plasmacorral @AlexJupiter this is fixed in the latest commit |
b02f424 to
7f5ffd6
Compare
Builds ready [936937f]
Page Load Metrics (1492 ± 114 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
|
Manually tested chrome 117.0.5938.92 and firefox 120.0.1 and migrating from 11.5.2. Tested imported, Ledger, Trezor, QR, Lattice and Snap accounts with no remaining issues. Tests included NFT details, Account selection, Account connection, signature requests, transactions/activity detail, wallet overview, and editing approvals. |
Description
Currently, MetaMask faces tight coupling between its UI and the keyring-controller. The UI heavily relies on the keyring-controller's state while also amalgamating information from various sources, such as preferences and balances.
However, this approach presents some challenges. The keyring-controller must be aware of the UI's limitations, like the need for instant account list provision to avoid lag. Moreover, it takes on the responsibility of adding metadata to accounts, such as the associated keyring type, required for displaying account details.
To address these issues, the introduction of the accounts-controller comes into play as a new abstraction layer between the UI and the keyring-controller. This separation of responsibilities allows the keyring-controller to focus on two main tasks:
This PR creates new selectors for Internal Accounts and and updates some ui elements to use the selectors.
Depends on:
#21437
Related issues
Resolves https://github.com/MetaMask/accounts-planning/issues/136
Manual testing steps
Screenshots/Recordings
Pre-merge author checklist
Pre-merge reviewer checklist