Skip to content

Conversation

@darkwing
Copy link
Contributor

@darkwing darkwing commented Mar 28, 2024

Description

During QA @sleepytanya was getting tripped up by this legacy "Connected Sites" global menu item. It should no longer be there once we ship Multichain, so I'm hiding it when the flag is on

Open in GitHub Codespaces

Related issues

Fixes: N/A

Manual testing steps

  1. Start extension with MULTICHAIN=1 flag
  2. Open the extension global three-dot menu
  3. Don't see "Connected Sites"

Screenshots/Recordings

Before

N/A

After

N/A

Pre-merge author checklist

  • I’ve followed MetaMask Coding Standards.
  • 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 format if applicable
  • I’ve applied the right labels on the PR (see labeling guidelines). 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.

@darkwing darkwing requested a review from a team as a code owner March 28, 2024 18:56
@darkwing darkwing added team-core-extension-ux Core Extension UX team needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. labels Mar 28, 2024
@github-actions
Copy link
Contributor

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.

NidhiKJha
NidhiKJha previously approved these changes Apr 15, 2024
vthomas13
vthomas13 previously approved these changes Apr 15, 2024
NidhiKJha added a commit that referenced this pull request Apr 16, 2024
…24023)

This PR is to fix the UI bugs in the wallet, permissions and connections
screen to keep it in sync with the Updated designs

## **Description**
Following changes are updated:
1. Description of the product tour for global menu [Note: This product
tour will be removed]
2. Remove Connected dApp shown on Account List Item
3. Remove Connect account action in Select Account Modal

## **Related issues**

Fixes: #23858 



## **Manual testing steps**

This PR solves Part of the linked issue, rest of them are already
resolved via different other PRs, Linking them in the list:
1. Description of the product tour for global menu - Modified in this PR
2. Connected sites and All Permissions in Global menu -
[23789](#23789)
3. Remove Connected dApp shown on Account List Item - Modified in this
PR
4. Connected Account Toast should only be displayed on Wallet screen -
[23733](#23733)
5. Remove Connect account action in Select Account Modal - Modified in
this PR
6. Network switching within Extension - This isssue doesn't exist
anymore.
7. Button in Network switch Modal - Was related to Design System, fixed.

## **Screenshots/Recordings**


### **Before**

Please refer to the issue
### **After**
1. This Product tour will be removed in a separate PR
2.  No dapp logo on account list item even when it's connected
![Screenshot 2024-04-16 at 3 02
46 PM](https://github.com/MetaMask/metamask-extension/assets/39872794/01b443c4-cc84-43c2-84a9-da012935def5)
3. No connect button in account list item menu


![Screenshot 2024-04-16 at 3 03
23 PM](https://github.com/MetaMask/metamask-extension/assets/39872794/71b902af-00f7-4c09-9fa9-aefc37f7a3f1)

## **Pre-merge author checklist**
- [ ] I’ve followed [MetaMask 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.

---------

Co-authored-by: David Walsh <davidwalsh83@gmail.com>
@jonybur jonybur dismissed stale reviews from NidhiKJha and vthomas13 via c812ed7 April 18, 2024 13:00
@metamaskbot
Copy link
Collaborator

Builds ready [9795555]
Page Load Metrics (1596 ± 661 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint722031223818
domContentLoaded156927136
load60324115961377661
domInteractive156927136
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -5 Bytes (-0.00%)
  • common: 0 Bytes (0.00%)

NidhiKJha
NidhiKJha previously approved these changes Apr 24, 2024
@darkwing darkwing added the amon-hen-v1 Represents blocking issues for the release of Amon Hen label Apr 25, 2024
await driver.clickElement('[data-testid="global-menu-connected-sites"]');
await driver.findElement({
text: 'Account 1 is not connected to any sites.',
tag: 'p',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend avoiding large if-else structures as they can make the code cumbersome. Instead, consider dividing the logic into two distinct functions: disconnectFromTestDappMultichain and disconnectFromTestDapp. By defining these functions separately and calling them directly where needed, we can streamline the code, enhancing its readability and ease of maintenance.

@darkwing
Copy link
Contributor Author

darkwing commented May 7, 2024

Superceded by Nidhi's PR to remove the feature flag.

@darkwing darkwing closed this May 7, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 7, 2024
@HowardBraham HowardBraham deleted the mc-remove-connected-sites-global-item branch January 19, 2026 21:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

amon-hen-v1 Represents blocking issues for the release of Amon Hen needs-assets-ux-review A shared label between the Assets and UX team to flag PRs ready for consolidated team review. team-core-extension-ux Core Extension UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants