Commit 1ca6538
authored
fix: multichain site tooltip (#37957)
## **Description**
1. Restores the user's preferred avatar in the site cell tooltip that
was hardcoded to Jazzicon in [this
PR](#37510)
2. Uses the correct seed address
## **Changelog**
CHANGELOG entry: fix: multichain site toolip
## **Related issues**
Fixes:
## **Manual testing steps**
1. Connect to dApp
2. Menu > All permissions
4. Click on connected site
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
<img width="259" height="278" alt="image"
src="https://github.com/user-attachments/assets/485ecde0-c926-474d-a324-c097afda794a"
/>
### **After**
<img width="169" height="200" alt="image"
src="https://github.com/user-attachments/assets/42513df8-b346-4f48-9c43-0c6c05113e28"
/>
## **Pre-merge author checklist**
- [ ] 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).
- [ ] I've completed the PR template to the best of my ability
- [ ] I’ve included tests if applicable
- [ ] I’ve documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [ ] 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]
> Restores preferred avatar variant and uses the correct seed address
for account avatars in the multichain site tooltip.
>
> - **UI (Multichain site tooltip)**
> - Selects preferred avatar variant via `getAvatarType` and passes it
to `TooltipContent`.
> - Uses `seedAddresses[acc.id]` for `AvatarAccount` `address` and
replaces hardcoded `Jazzicon` with the selected `variant`.
> - Plumbs `seedAddresses` and `avatarAccountVariant` through tooltip
props; updates avatar rendering for account list accordingly.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
aa8309f. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent e2a2da5 commit 1ca6538
File tree
1 file changed
+16
-3
lines changed- ui/components/multichain-accounts/multichain-site-cell/tool-tip
1 file changed
+16
-3
lines changedLines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | 54 | | |
52 | 55 | | |
53 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
54 | 64 | | |
55 | 65 | | |
56 | 66 | | |
| |||
77 | 87 | | |
78 | 88 | | |
79 | 89 | | |
80 | | - | |
81 | | - | |
| 90 | + | |
| 91 | + | |
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
| |||
166 | 176 | | |
167 | 177 | | |
168 | 178 | | |
| 179 | + | |
169 | 180 | | |
170 | 181 | | |
171 | 182 | | |
| |||
225 | 236 | | |
226 | 237 | | |
227 | 238 | | |
| 239 | + | |
| 240 | + | |
228 | 241 | | |
229 | 242 | | |
230 | 243 | | |
| |||
0 commit comments