Skip to content
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

fix (cherry-pick 12.0.0): Version v12.0.0 permission page fix #25970

Merged

Conversation

NidhiKJha
Copy link
Member

@NidhiKJha NidhiKJha commented Jul 19, 2024

If Experimental settings Select Networks for each site is off, the domains are undefined. In this case, the fallback network should be the current network.

Related issues

Fixes:
#25887

Manual testing steps

  1. Connect MetaMask to Dapp
  2. Go to Permissions, check the logo of network is specific to connected network
  3. Turn the experimental setting off, Go back to all permissions page. Now the network logo should be same as globally selected network for all the dapps

Screenshots/Recordings

Before

Screenshot 2024-07-19 at 12 06 29 AM

After

Screen.Recording.2024-07-19.at.12.07.35.AM.mov

Pre-merge author checklist

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.

Description

Open in GitHub Codespaces

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

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.

If Experimental settings `Select Networks for each site` is off, the
domains are undefined. In this case, the fallback network should be the
current network.

## **Related issues**

Fixes:
[#25887](#25887)

## **Manual testing steps**

1. Connect MetaMask to Dapp
2. Go to Permissions, check the logo of network is specific to connected
network
3. Turn the experimental setting off, Go back to all permissions page.
Now the network logo should be same as globally selected network for all
the dapps

## **Screenshots/Recordings**


### **Before**

![Screenshot 2024-07-19 at 12 06
29 AM](https://github.com/user-attachments/assets/53fc2ee5-2c0f-46ff-892c-3ee48ad28a6d)

### **After**


https://github.com/user-attachments/assets/fe0bed9e-c050-4ab8-8607-bf933e1eac63



## **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/develop/.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/develop/.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.
@NidhiKJha NidhiKJha requested a review from a team as a code owner July 19, 2024 12:25
@NidhiKJha NidhiKJha added the needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. label Jul 19, 2024
@NidhiKJha NidhiKJha merged commit b91ee2f into Version-v12.0.0 Jul 22, 2024
74 of 78 checks passed
@NidhiKJha NidhiKJha deleted the Version-v12.0.0-permission-page-cherry-pick branch July 22, 2024 16:03
@github-actions github-actions bot locked and limited conversation to collaborators Jul 22, 2024
@metamaskbot metamaskbot added the release-12.0.0 Issue or pull request that will be included in release 12.0.0 label Jul 22, 2024
@metamaskbot
Copy link
Collaborator

No release label on PR. Adding release label release-12.0.0 on PR, as PR was cherry-picked in branch 12.0.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. release-12.0.0 Issue or pull request that will be included in release 12.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants