fix: remove btc account from permission connect lists#25980
fix: remove btc account from permission connect lists#25980montelaidev merged 18 commits intodevelopfrom
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. |
f72235d to
b37090e
Compare
...ponents/multichain/connect-accounts-modal/__snapshots__/connect-accounts-modal.test.tsx.snap
Outdated
Show resolved
Hide resolved
ui/components/multichain/connect-accounts-modal/connect-accounts-modal.tsx
Show resolved
Hide resolved
Co-authored-by: Charly Chevalier <charly.chevalier@consensys.net>
There was a problem hiding this comment.
PR Summary
This PR filters out BTC accounts from the permission connect list to ensure only EVM-compatible accounts are displayed.
ui/components/multichain/connect-accounts-modal/connect-accounts-modal.tsx: Filters out non-EVM accounts usingisEvmAccountTypefunction.ui/pages/permissions-connect/permissions-connect.container.js: Filters non-EVM accounts from the permissions connect list.ui/components/multichain/connect-accounts-modal/connect-accounts-modal.test.tsx: Updates tests to ensure only EVM accounts are rendered.ui/pages/permissions-connect/permissions-connect.test.tsx: Adds tests to verify BTC accounts are excluded from the permission connect list.test/jest/mocks.ts: Migrates to TypeScript, enhancing type safety and maintainability.
10 file(s) reviewed, 25 comment(s)
Edit PR Review Bot Settings
There was a problem hiding this comment.
PR Summary
(updates since last review)
This PR focuses on filtering out BTC accounts from the permission connect list to ensure only EVM-compatible accounts are displayed.
.circleci/config.yml: Removed jobs related to 'confirmation redesign' feature, simplifying CI configuration.app/scripts/background.js: Enhanced initialization process with test-specific overrides for keyring bridges.app/scripts/controllers/preferences.js: AddedisRedesignedConfirmationsDeveloperEnabledstate property.app/scripts/lib/ppom/ppom-middleware.ts: IntroducedisChainSupportedfunction for dynamic chain support checks.ui/selectors/selectors.js: Filtered out BTC accounts from permission connect lists.
123 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
There was a problem hiding this comment.
PR Summary
(updates since last review)
This PR filters BTC accounts from the permission connect list to ensure only EVM-compatible accounts are displayed.
test/e2e/api-specs/ConfirmationRejectionRule.ts: RemovedrejectButtonInsteadOfCancelarray and associated logic, now consistently clicking 'Cancel' for all methods./ui/selectors/accounts.ts: Added utility functions to identify BTC accounts and filter them out./ui/pages/permissions-connect/choose-account: UpdatedChooseAccountcomponent to exclude BTC accounts./ui/components/ui/account-list/account-list.js: ModifiedhandleEvmAccountClickto ensure only EVM accounts are selectable./app/scripts/controllers/permissions/background-api.js: AdjustedremovePermittedAccountto handle BTC accounts appropriately.
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
There was a problem hiding this comment.
PR Summary
(updates since last review)
This PR filters BTC accounts from the permission connect list to ensure only EVM-compatible accounts are displayed.
.circleci/config.yml: Removedtest-e2e-swap-playwrightjob to streamline CI pipeline.app/scripts/background.js: Added conditional logic to initialize socket connection for Mocha tests.shared/lib/transactions-controller-utils.js: Introducedprecisionparameter togetSwapsTokensReceivedFromTxMetafor flexible rounding.ui/pages/permissions-connect/choose-account: UpdatedChooseAccountcomponent to exclude BTC accounts.test/e2e/background-socket/server-mocha-to-background.ts: Added WebSocket server class for enhanced end-to-end testing.
125 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
There was a problem hiding this comment.
PR Summary
(updates since last review)
This PR filters BTC accounts from the permission connect list to ensure only EVM-compatible accounts are displayed.
app/scripts/metamask-controller.js: AddedgetIsConfirmationAdvancedDetailsOpenmethod to filter BTC accounts.ui/pages/permissions-connect/choose-account: UpdatedChooseAccountcomponent to exclude BTC accounts.ui/selectors/accounts.ts: Added utility functions to identify BTC accounts.ui/components/multichain/account-list-item/account-list-item.js: Modified to handle BTC account exclusion.ui/components/multichain/account-list-menu/account-list-menu.js: Updated account list menu to exclude BTC accounts.
10 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
There was a problem hiding this comment.
PR Summary
(updates since last review)
This PR filters BTC accounts from the permission connect list to ensure only EVM-compatible accounts are displayed.
test/e2e/flask/btc/btc-dapp-connection.spec.ts: Removed BTC account interactions and assertions to align with the new filtering requirement.app/scripts/metamask-controller.js: Added logic to filter BTC accounts from the permission connect list.ui/pages/permissions-connect/choose-account: UpdatedChooseAccountcomponent to exclude BTC accounts.ui/selectors/accounts.ts: Added utility functions to identify and filter BTC accounts.ui/components/multichain/account-list-item/account-list-item.js: Modified to handle BTC account exclusion in the account list.
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
Builds ready [db5849a]
Page Load Metrics (159 ± 181 ms)
Bundle size diffs
|
Co-authored-by: Daniel Rocha <daniel.rocha@consensys.net>
There was a problem hiding this comment.
PR Summary
(updates since last review)
This PR filters BTC accounts from the permission connect list to ensure only EVM-compatible accounts are displayed.
ui/pages/permissions-connect/permissions-connect.test.tsx: Added test case to verify BTC accounts are excluded from the permission connect list.ui/selectors/accounts.ts: Added utility functions to identify and filter BTC accounts.ui/selectors/accounts.test.ts: Updated tests to cover new BTC account filtering logic.
No major changes found since the last review.
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
There was a problem hiding this comment.
PR Summary
This PR filters BTC accounts from the permission connect list to ensure only EVM-compatible accounts are displayed.
app/scripts/lib/accounts/BalancesController.test.ts: Removed TypeScript error suppression comments, improving type safety.test/e2e/flask/btc/btc-dapp-connection.spec.ts: Updated to ensure BTC accounts are not present in the account selection list.ui/components/multichain/connect-accounts-modal/connect-accounts-modal.tsx: Filters out non-EVM accounts usingisEvmAccountTypefunction.ui/pages/permissions-connect/permissions-connect.container.js: Filters BTC accounts from the permissions connect list.ui/pages/permissions-connect/permissions-connect.test.tsx: Added tests to verify BTC accounts are excluded from the permission connect list.
11 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
There was a problem hiding this comment.
PR Summary
(updates since last review)
This PR filters BTC accounts from the permission connect list to ensure only EVM-compatible accounts are displayed.
ui/components/multichain/connect-accounts-modal/connect-accounts-modal.tsx: Filters out non-EVM accounts usingisEvmAccountTypefunction.ui/pages/permissions-connect/choose-account/choose-account.js: Filters BTC accounts from the permissions connect list.ui/pages/permissions-connect/permissions-connect.container.js: Filters BTC accounts from the permissions connect list.ui/helpers/utils/permissions.ts: Adds utility function to check for ETH permissions and non-EVM accounts.test/e2e/flask/btc/btc-dapp-connection.spec.ts: Updated to ensure BTC accounts are not present in the account selection list.
No file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
|
Builds ready [6b4133d]
Page Load Metrics (185 ± 233 ms)
Bundle size diffs
|
|
Missing release label release-12.2.0 on PR. Adding release label release-12.2.0 on PR and removing other release labels(release-12.3.0), as PR was cherry-picked in branch 12.2.0. |



Description
This PR filters BTC accounts from the permission connect list.
Related issues
Fixes:
Manual testing steps
Connect more accountsScreenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist