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: show connected toast only for EVM accounts #25628

Merged
merged 2 commits into from
Jul 4, 2024
Merged

Conversation

montelaidev
Copy link
Contributor

@montelaidev montelaidev commented Jul 2, 2024

Description

When there is one account connected to a dapp, the Connected Toast is shown for the BTC account. This PR hides the toast for non-EVM accounts.

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/accounts-planning/issues/508

Manual testing steps

  1. Connect an account to a dapp
  2. Add a BTC account
  3. Click on the MM popup and see that there isn't a connection toast being shown.

Screenshots/Recordings

Before

Screenshot 2024-07-02 at 23 49 21

After

Screenshot 2024-07-02 at 23 49 04

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.

Copy link
Contributor

github-actions bot commented Jul 2, 2024

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.

@montelaidev montelaidev marked this pull request as ready for review July 2, 2024 15:50
@montelaidev montelaidev requested a review from a team as a code owner July 2, 2024 15:50
Copy link

sonarcloud bot commented Jul 2, 2024

Copy link
Contributor

@ccharly ccharly left a comment

Choose a reason for hiding this comment

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

Tested on my side, works fine!

Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.68%. Comparing base (7b69e3c) to head (c796f71).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #25628      +/-   ##
===========================================
+ Coverage    69.66%   69.68%   +0.02%     
===========================================
  Files         1366     1366              
  Lines        48215    48218       +3     
  Branches     13301    13303       +2     
===========================================
+ Hits         33588    33598      +10     
+ Misses       14627    14620       -7     

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

@metamaskbot
Copy link
Collaborator

Builds ready [c796f71]
Page Load Metrics (141 ± 141 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint732931064522
domContentLoaded99132199
load481414141294141
domInteractive99132199
Bundle size diffs
  • background: 0 Bytes (0.00%)
  • ui: 244 Bytes (0.00%)
  • common: 0 Bytes (0.00%)

@danroc danroc changed the title fix: show connected toast only for evm accounts fix: show connected toast only for EVM accounts Jul 3, 2024
@danroc danroc merged commit 44939a2 into develop Jul 4, 2024
79 checks passed
@danroc danroc deleted the fix/non-evm-toast branch July 4, 2024 11:14
@github-actions github-actions bot locked and limited conversation to collaborators Jul 4, 2024
@metamaskbot metamaskbot added the release-12.2.0 Issue or pull request that will be included in release 12.2.0 label Jul 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.2.0 Issue or pull request that will be included in release 12.2.0 team-accounts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants