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: display of network name in network switch toast on confirmation pages #27100

Merged
merged 3 commits into from
Sep 13, 2024

Conversation

jpuri
Copy link
Contributor

@jpuri jpuri commented Sep 12, 2024

Description

Fix display of network name on account switch toast, name of some less popular networks is not visible.

Related issues

Fixes: #26982

Manual testing steps

  1. Open multiple DAPPs on different network, ensure one is Fantom network
  2. Submit transaction for different dapps in quick succession
  3. Ensure that when transaction is submitted from Fantom, network toast has correct network name

Screenshots/Recordings

Screenshot 2024-09-12 at 5 17 45 PM

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.

@jpuri jpuri added the team-confirmations Push issues to confirmations team label Sep 12, 2024
@jpuri jpuri requested review from a team as code owners September 12, 2024 11:50
@jpuri jpuri changed the title dix: display of network name in network switch toast on confirmation pages fix: display of network name in network switch toast on confirmation pages Sep 12, 2024
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.

@metamaskbot
Copy link
Collaborator

Builds ready [4f4d14d]
Page Load Metrics (1660 ± 52 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint20719551593334161
domContentLoaded1487184116359144
load14971959166010752
domInteractive126027136
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -95 Bytes (-0.00%)
  • common: 256 Bytes (0.00%)

Copy link

sonarcloud bot commented Sep 12, 2024

@metamaskbot
Copy link
Collaborator

Builds ready [6e559b0]
Page Load Metrics (1603 ± 96 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint135621561611208100
domContentLoaded13492018157918991
load13572067160320196
domInteractive12542794
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: -95 Bytes (-0.00%)
  • common: 256 Bytes (0.00%)

Copy link

codecov bot commented Sep 12, 2024

Codecov Report

Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 70.03%. Comparing base (daacc1a) to head (6e559b0).
Report is 4 commits behind head on develop.

Files with missing lines Patch % Lines
...twork-change-toast/network-change-toast-legacy.tsx 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #27100      +/-   ##
===========================================
+ Coverage    70.02%   70.03%   +0.01%     
===========================================
  Files         1432     1432              
  Lines        49872    49879       +7     
  Branches     13969    13970       +1     
===========================================
+ Hits         34922    34930       +8     
+ Misses       14950    14949       -1     

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

@sleepytanya
Copy link
Contributor

@jpuri
Screenshot 2024-09-12 at 15 53 28

Copy link
Contributor

@digiwand digiwand left a comment

Choose a reason for hiding this comment

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

Nice fix!

Looks like the style is off with the toast. might be a DS toast specific issue. It should be absolute/relative from the footer, not fixed position from the display height

@jpuri jpuri merged commit fb72eca into develop Sep 13, 2024
80 checks passed
@jpuri jpuri deleted the toast_network_name_fix branch September 13, 2024 12:59
@github-actions github-actions bot locked and limited conversation to collaborators Sep 13, 2024
@metamaskbot metamaskbot added the release-12.6.0 Issue or pull request that will be included in release 12.6.0 label Sep 13, 2024
@metamaskbot metamaskbot added release-12.5.0 Issue or pull request that will be included in release 12.5.0 and removed release-12.6.0 Issue or pull request that will be included in release 12.6.0 labels Sep 29, 2024
@metamaskbot
Copy link
Collaborator

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
QA Passed release-12.5.0 Issue or pull request that will be included in release 12.5.0 team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Network toast is not displayed or populated when user selects custom RPC URL
6 participants