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

chore: low return warning alert for bridging #29171

Merged
merged 9 commits into from
Dec 19, 2024
Merged

Conversation

micaelae
Copy link
Member

@micaelae micaelae commented Dec 12, 2024

Description

Changes the Low Return tooltip into an alert Banner, and highlights network fee in the quote card

Open in GitHub Codespaces

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/MMS-1814

Manual testing steps

  1. Request quotes with a low return
  2. Verify that new treatment is shown

Screenshots/Recordings

Before

Screenshot 2024-12-17 at 10 47 21 AM
Screenshot 2024-12-17 at 10 47 46 AM

After

Screenshot 2024-12-17 at 10 32 28 AM

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.

@micaelae micaelae marked this pull request as ready for review December 12, 2024 21:43
@micaelae micaelae requested a review from a team as a code owner December 12, 2024 21:43
jclancy93
jclancy93 previously approved these changes Dec 12, 2024
infiniteflower
infiniteflower previously approved these changes Dec 12, 2024
@metamaskbot
Copy link
Collaborator

Builds ready [4a85e56]
Page Load Metrics (1432 ± 81 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint25020251313383184
domContentLoaded12582017142316981
load12672027143216981
domInteractive24106382211
backgroundConnect6171021
firstReactRender15251932
getState417631
initialActions01000
loadScripts8991447103613163
setupStore610811
uiStartup13962155158017986
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 360 Bytes (0.01%)
  • ui: 18.4 KiB (0.23%)
  • common: 3.17 KiB (0.04%)

@micaelae micaelae force-pushed the mb894-style-quotes-1 branch 2 times, most recently from b23db36 to 19a741d Compare December 16, 2024 19:16
@micaelae micaelae requested a review from a team as a code owner December 16, 2024 19:16
@micaelae micaelae force-pushed the mb894-style-quotes-1 branch from 19a741d to 8e5786b Compare December 16, 2024 19:43
Base automatically changed from mb894-style-quotes-1 to main December 16, 2024 22:40
@micaelae micaelae dismissed stale reviews from infiniteflower and jclancy93 December 16, 2024 22:40

The base branch was changed.

@metamaskbot
Copy link
Collaborator

Builds ready [34b084b]
Page Load Metrics (1768 ± 97 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14312147177120297
domContentLoaded14172085174519895
load14282145176820197
domInteractive247039157
backgroundConnect968242010
firstReactRender1697462814
getState479212210
initialActions01000
loadScripts10031548128114469
setupStore661202010
uiStartup171328522065314151
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 434 Bytes (0.01%)
  • common: -43 Bytes (-0.00%)

ghgoodreau
ghgoodreau previously approved these changes Dec 17, 2024
Copy link
Contributor

@infiniteflower infiniteflower left a comment

Choose a reason for hiding this comment

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

The lack of horizontal padding around the yellow highlight looks a bit strange.

@micaelae
Copy link
Member Author

The lack of horizontal padding around the yellow highlight looks a bit strange.

What do you think of highlighting the entire row? This is what we had in V1
Screenshot 2024-12-17 at 10 16 05 AM

@metamaskbot
Copy link
Collaborator

Builds ready [38c21c3]
Page Load Metrics (1625 ± 34 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint25218471562311149
domContentLoaded1470175915966330
load1479177416257034
domInteractive257837168
backgroundConnect977362411
firstReactRender16100362813
getState45012105
initialActions01000
loadScripts1087134111876029
setupStore674182010
uiStartup16982293190014369
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 326 Bytes (0.00%)
  • common: -43 Bytes (-0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [7eed8fb]
Page Load Metrics (1676 ± 89 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint14632293168718589
domContentLoaded14292234165017383
load14622293167618489
domInteractive1888372211
backgroundConnect85525168
firstReactRender1573392412
getState46412157
initialActions01000
loadScripts10501754124215675
setupStore65411126
uiStartup16582450188018087
Bundle size diffs [🚀 Bundle size reduced!]
  • background: 0 Bytes (0.00%)
  • ui: 326 Bytes (0.00%)
  • common: -43 Bytes (-0.00%)

@micaelae micaelae added this pull request to the merge queue Dec 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 19, 2024
@micaelae micaelae added this pull request to the merge queue Dec 19, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 19, 2024
@micaelae micaelae added this pull request to the merge queue Dec 19, 2024
Merged via the queue into main with commit cd39d7b Dec 19, 2024
77 checks passed
@micaelae micaelae deleted the mms1814-low-return branch December 19, 2024 19:27
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2024
@metamaskbot metamaskbot added the release-12.11.0 Issue or pull request that will be included in release 12.11.0 label Dec 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-12.11.0 Issue or pull request that will be included in release 12.11.0 team-bridge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants