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

feat(ramp): add buy and sell icon and string #20891

Merged
merged 14 commits into from
Sep 28, 2023
Merged

Conversation

wachunei
Copy link
Member

@wachunei wachunei commented Sep 14, 2023

Explanation

This PR changes the icon and text for the portfolio ramp experience from "Buy" to "Buy & Sell".

Screenshots/Screencaps

Before

Asset View

Action Modal

After

Asset View

Action Modal

Manual Testing Steps

Clicking on the Buy & Sell button should not change behavior and take the user to the portfolio buy experience.

Pre-merge author checklist

  • I've clearly explained:
    • What problem this PR is solving
    • How this problem was solved
    • How reviewers can test my changes
  • Sufficient automated test coverage has been added

Pre-merge reviewer checklist

  • Manual testing (e.g. pull and build branch, run in browser, test code being changed)
  • PR is linked to the appropriate GitHub issue
  • IF this PR fixes a bug in the release milestone, add this PR to the release milestone

If further QA is required (e.g. new feature, complex testing steps, large refactor), add the Extension QA Board label.

In this case, a QA Engineer approval will be be required.

@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (78e5863) 68.40% compared to head (f8750e3) 68.40%.
Report is 28 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop   #20891   +/-   ##
========================================
  Coverage    68.40%   68.40%           
========================================
  Files         1008     1008           
  Lines        40301    40301           
  Branches     10778    10778           
========================================
+ Hits         27565    27566    +1     
+ Misses       12736    12735    -1     
Files Coverage Δ
ui/components/app/wallet-overview/eth-overview.js 81.33% <ø> (ø)
...i/components/app/wallet-overview/token-overview.js 63.64% <ø> (ø)
...tichain/select-action-modal/select-action-modal.js 60.00% <ø> (ø)
ui/hooks/experiences/useRamps.ts 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

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

@metamaskbot
Copy link
Collaborator

Builds ready [f935224]
Page Load Metrics (1483 ± 32 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint109145126115
domContentLoaded1322162714836732
load1322162714836732
domInteractive1322162714836732
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 51 Bytes (0.00%)
  • common: 34 Bytes (0.00%)

@wachunei wachunei force-pushed the feat/ramp-buy-sell-button branch from 1e785e3 to f71710d Compare September 15, 2023 14:21
@metamaskbot
Copy link
Collaborator

Builds ready [f71710d]
Page Load Metrics (1527 ± 60 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint107174126157
domContentLoaded13961884152712560
load13961884152712560
domInteractive13961884152712560
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 56 Bytes (0.00%)
  • common: 34 Bytes (0.00%)

@wachunei wachunei marked this pull request as ready for review September 15, 2023 15:00
@wachunei wachunei requested a review from a team as a code owner September 15, 2023 15:00
@metamaskbot
Copy link
Collaborator

Builds ready [ef0995d]
Page Load Metrics (1669 ± 48 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint891571122110
domContentLoaded761561072010
load14791885166910048
domInteractive761561072010
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 56 Bytes (0.00%)
  • common: 34 Bytes (0.00%)

darkwing
darkwing previously approved these changes Sep 26, 2023
@metamaskbot
Copy link
Collaborator

Builds ready [afdc07b]
Page Load Metrics (1097 ± 354 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint83144104189
domContentLoaded6713897178
load8118621097737354
domInteractive6713897178
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 56 Bytes (0.00%)
  • common: 34 Bytes (0.00%)

app/_locales/en/messages.json Outdated Show resolved Hide resolved
app/_locales/en/messages.json Show resolved Hide resolved
@metamaskbot
Copy link
Collaborator

Builds ready [c0518b8]
Page Load Metrics (882 ± 374 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint88173113199
domContentLoaded69163102199
load801894882779374
domInteractive69163102199
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 83 Bytes (0.00%)
  • common: 28 Bytes (0.00%)

@metamaskbot
Copy link
Collaborator

Builds ready [f8750e3]
Page Load Metrics (658 ± 337 ms)
PlatformPageMetricMin (ms)Max (ms)Average (ms)StandardDeviation (ms)MarginOfError (ms)
ChromeHomefirstPaint8012291115
domContentLoaded6811981157
load791583658703337
domInteractive6811981157
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 0 Bytes (0.00%)
  • ui: 83 Bytes (0.00%)
  • common: 28 Bytes (0.00%)

@wachunei wachunei merged commit f860685 into develop Sep 28, 2023
9 checks passed
@wachunei wachunei deleted the feat/ramp-buy-sell-button branch September 28, 2023 16:02
@github-actions github-actions bot locked and limited conversation to collaborators Sep 28, 2023
@metamaskbot metamaskbot added the release-11.3.0 Issue or pull request that will be included in release 11.3.0 label Sep 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-11.3.0 Issue or pull request that will be included in release 11.3.0 team-ramp
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants