Commit c380ca0
chore(runway): cherry-pick fix(16004): filter network icons by account scopes in dapp connections (#16246)
- fix(16004): filter network icons by account scopes in dapp connections
(#16041)
## **Description**
This PR fixes a bug where multichain dapp connections displayed
incorrect network icons for accounts. Previously, all accounts would
show network icons for all connected networks regardless of the
account's actual blockchain type.
## **Related issues**
Fixes: #16004
## **Manual testing steps**
1. Connect to any dapp
2. Click on the top right (the account icon)
3. Manage your permissions by editing the accounts/networks connected
4. Observe that the correct network icons are shown for the account type
(evm/non-evm)
## **Screenshots/Recordings**
https://github.com/user-attachments/assets/0ca368d6-2400-422f-9f54-40db96506b3c
### **Before**

### **After**

## **Pre-merge author checklist**
- [x] I’ve followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I’ve included tests if applicable
- [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I’ve applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
[a63aab6](a63aab6)
Co-authored-by: Vince Howard <vincenguyenhoward@gmail.com>
Co-authored-by: tommasini <46944231+tommasini@users.noreply.github.com>1 parent 13b36ef commit c380ca0
17 files changed
Lines changed: 433 additions & 92 deletions
File tree
- app/components
- UI
- PermissionsSummary
- __snapshots__
- WalletAccount
- Views
- AccountConnect
- AccountConnectMultiSelector
- __snapshots__
- AccountsConnectedList
- __snapshots__
- AccountPermissions
- __snapshots__
- hooks/useAccounts
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | | - | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
552 | 553 | | |
553 | 554 | | |
554 | 555 | | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
555 | 564 | | |
556 | 565 | | |
557 | 566 | | |
| |||
568 | 577 | | |
569 | 578 | | |
570 | 579 | | |
571 | | - | |
| 580 | + | |
572 | 581 | | |
573 | 582 | | |
574 | 583 | | |
| |||
578 | 587 | | |
579 | 588 | | |
580 | 589 | | |
581 | | - | |
582 | 590 | | |
583 | | - | |
584 | 591 | | |
585 | 592 | | |
586 | 593 | | |
587 | 594 | | |
588 | 595 | | |
| 596 | + | |
| 597 | + | |
589 | 598 | | |
590 | 599 | | |
591 | 600 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
| 370 | + | |
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| |||
900 | 901 | | |
901 | 902 | | |
902 | 903 | | |
| 904 | + | |
903 | 905 | | |
904 | 906 | | |
905 | 907 | | |
| |||
2807 | 2809 | | |
2808 | 2810 | | |
2809 | 2811 | | |
| 2812 | + | |
2810 | 2813 | | |
2811 | 2814 | | |
2812 | 2815 | | |
| |||
3442 | 3445 | | |
3443 | 3446 | | |
3444 | 3447 | | |
| 3448 | + | |
3445 | 3449 | | |
3446 | 3450 | | |
3447 | 3451 | | |
| |||
3975 | 3979 | | |
3976 | 3980 | | |
3977 | 3981 | | |
| 3982 | + | |
3978 | 3983 | | |
3979 | 3984 | | |
3980 | 3985 | | |
| |||
4611 | 4616 | | |
4612 | 4617 | | |
4613 | 4618 | | |
| 4619 | + | |
4614 | 4620 | | |
4615 | 4621 | | |
4616 | 4622 | | |
| |||
5144 | 5150 | | |
5145 | 5151 | | |
5146 | 5152 | | |
| 5153 | + | |
5147 | 5154 | | |
5148 | 5155 | | |
5149 | 5156 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
210 | 216 | | |
211 | 217 | | |
212 | 218 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
58 | 60 | | |
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
250 | 253 | | |
251 | 254 | | |
252 | 255 | | |
| |||
257 | 260 | | |
258 | 261 | | |
259 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
260 | 266 | | |
261 | 267 | | |
262 | 268 | | |
| |||
0 commit comments