Skip to content

fix: Prevent legacy <UnconnectedAccountAlert/> component from displaying#24475

Merged
darkwing merged 3 commits intodevelopfrom
prevent-old-unconnected-alert
May 10, 2024
Merged

fix: Prevent legacy <UnconnectedAccountAlert/> component from displaying#24475
darkwing merged 3 commits intodevelopfrom
prevent-old-unconnected-alert

Conversation

@darkwing
Copy link
Copy Markdown
Contributor

Description

In the PR to release Multichain v1 (#24362) we didn't prevent the legacy <UnconnectedAccountAlert/> from displaying, which is problematic -- it overlays the toast and isn't desired. This PR prevents that legacy component from ever displaying.

Related issues

Fixes: N/A

Manual testing steps

  1. Go to MetaMask Portfolio dApp
  2. Connect Account 1
  3. Open MetaMask, switch to Account 2
  4. Don't see old <UnconnectedAccountAlert/> component

Screenshots/Recordings

Before

See the old component

After

See only the toast

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 May 10, 2024 04:15
@github-actions
Copy link
Copy Markdown
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.

@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 May 10, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Builds ready [c0f546a]
Page Load Metrics (470 ± 460 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint6611885168
domContentLoaded9431594
load542871470959460
domInteractive9431594
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: -5.67 KiB (-0.09%)
  • common: 0 Bytes (0.00%)

@codecov
Copy link
Copy Markdown

codecov bot commented May 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.45%. Comparing base (3c2d792) to head (c0f546a).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #24475   +/-   ##
========================================
  Coverage    67.45%   67.45%           
========================================
  Files         1288     1288           
  Lines        50149    50146    -3     
  Branches     13008    13007    -1     
========================================
- Hits         33824    33822    -2     
+ Misses       16325    16324    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@darkwing darkwing merged commit 56084ba into develop May 10, 2024
@darkwing darkwing deleted the prevent-old-unconnected-alert branch May 10, 2024 18:40
@github-actions github-actions bot locked and limited conversation to collaborators May 10, 2024
@metamaskbot
Copy link
Copy Markdown
Collaborator

Missing release label release-11.17.0 on PR. Adding release label release-11.17.0 on PR and removing other release labels(release-11.18.0), as PR was added to branch 11.17.0 when release was cut.

@gauthierpetetin gauthierpetetin added the release-12.0.0 Issue or pull request that will be included in release 12.0.0 label Jun 6, 2024
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 team-core-extension-ux Core Extension UX team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants