You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
release(runway): cherry-pick fix: multichain support on dapp connected site popover cp-13.5.0 (#36925)
- fix: multichain support on dapp connected site popover cp-13.5.0
(#36881)
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->
## **Description**
This PR fixes issue with the DaPP permissions icon showing wrong network
for Solana only DaPP.
<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->
## **Changelog**
<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`
If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`
(This helps the Release Engineer do their job more quickly and
accurately)
-->
CHANGELOG entry: Fixed a bug with the DaPP permissions icon showing
wrong network for Solana only DaPP
## **Related issues**
Fixes: #36825
## **Manual testing steps**
1. Navigate to SOL only dapp (Orca, Jupiter)
2. Connect to DaPP
3. Notice Badge icon
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
<img width="398" height="596" alt="Screenshot 2025-10-15 at 16 37 41"
src="https://github.com/user-attachments/assets/350edb96-5c1d-4904-8601-c1f04f1a5c8c"
/>
<!-- [screenshots/recordings] -->
### **After**
<img width="398" height="598" alt="Screenshot 2025-10-15 at 16 35 33"
src="https://github.com/user-attachments/assets/c212b838-246d-4bb3-8e96-99c4ddeadf88"
/>
<!-- [screenshots/recordings] -->
## **Pre-merge author checklist**
- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask
Extension Coding
Standards](https://github.com/MetaMask/metamask-extension/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-extension/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] 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.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Connected-site popover now uses a new selector to correctly resolve
the dapp’s active network (including Solana), with selector/tests/state
mocks updated and a minor accounts selector robustness fix.
>
> - **UI**:
> - `connected-site-popover`: Replace ad-hoc domain→network lookup with
`getDappActiveNetwork`; remove `useMemo` and direct
`getAllDomains`/`getNetworkConfigurationsByChainId` usage; wire to
selector and keep network avatar rendering.
> - **Selectors**:
> - `getDappActiveNetwork`: Reworked to use
`getOrderedConnectedAccountsForActiveTab`, domain mapping, and both EVM
and multichain configs; returns `{ ...network, isEvm }` and supports
Solana.
> - `selectors.getMetaMaskAccountsOrdered`: Guard against missing
`address` when merging balances.
> - **Tests**:
> - Add/expand unit tests for `getDappActiveNetwork` covering EVM,
Solana, and null cases.
> - Update popover/menu/routes tests with `domains`,
`permissionHistory`, `selectedNetworkClientId`, `internalAccounts`,
`keyrings`, and multichain configs; add Solana/BTC account scenarios.
> - **Test data**:
> - Augment JSON fixtures with extra accounts (EVM, BTC, Solana), zero
balances, and keyring metadata.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
75468f6. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
[2be8ec5](2be8ec5)
Co-authored-by: Patryk Łucka <[email protected]>
0 commit comments