Skip to content

fix: update padding for the gas fee pill component #32170

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

Merged
merged 4 commits into from
Apr 24, 2025

Conversation

vinistevam
Copy link
Contributor

@vinistevam vinistevam commented Apr 22, 2025

Description

This PR aims to update the gas fee pill component padding accordingly to the figma.

Open in GitHub Codespaces

Related issues

Fixes: https://github.com/MetaMask/MetaMask-planning/issues/4605

Manual testing steps

Need to have more tokens.

  1. Go to this the test dapp
  2. Click on Send EIP 1559 Transaction

Screenshots/Recordings

Screenshot from 2025-04-22 14-09-57

Before

After

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.

@vinistevam vinistevam added the team-confirmations Push issues to confirmations team label Apr 22, 2025
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

✨ Files requiring CODEOWNER review ✨

✅ @MetaMask/confirmations

  • ui/pages/confirmations/components/confirm/info/__snapshots__/info.test.tsx.snap
  • ui/pages/confirmations/components/confirm/info/approve/__snapshots__/approve.test.tsx.snap
  • ui/pages/confirmations/components/confirm/info/base-transaction-info/__snapshots__/base-transaction-info.test.tsx.snap
  • ui/pages/confirmations/components/confirm/info/native-transfer/__snapshots__/native-transfer.test.tsx.snap
  • ui/pages/confirmations/components/confirm/info/nft-token-transfer/__snapshots__/nft-token-transfer.test.tsx.snap
  • ui/pages/confirmations/components/confirm/info/set-approval-for-all-info/__snapshots__/set-approval-for-all-info.test.tsx.snap
  • ui/pages/confirmations/components/confirm/info/shared/edit-gas-fees-row/__snapshots__/edit-gas-fees-row.test.tsx.snap
  • ui/pages/confirmations/components/confirm/info/shared/gas-fees-section/__snapshots__/gas-fees-section.test.tsx.snap
  • ui/pages/confirmations/components/confirm/info/shared/selected-gas-fee-token/selected-gas-fee-token.tsx
  • ui/pages/confirmations/components/confirm/info/token-transfer/__snapshots__/token-transfer.test.tsx.snap

@vinistevam vinistevam marked this pull request as ready for review April 22, 2025 13:56
@vinistevam vinistevam requested a review from a team as a code owner April 22, 2025 13:56
@metamaskbot
Copy link
Collaborator

Builds ready [d27b737]
UI Startup Metrics (1218 ± 57 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1218109413685712541325
load105395211935610881156
domContentLoaded104794711885510801148
domInteractive18136681629
firstPaint73085120041910761133
backgroundConnect74253810
firstReactRender21154352134
getState1353471926
initialActions001000
loadScripts81071394654846913
setupStore74122811
WebpackHomeuiStartup20731709253317121852323
load16021324196113117121796
domContentLoaded15961321193413017071789
domInteractive161163101345
firstPaint202701546152240326
backgroundConnect231268122454
firstReactRender20154398123323368
getState123192191326
initialActions316135
loadScripts15911319191012917051786
setupStore236290431932
FirefoxBrowserifyHomeuiStartup13671158165110914481570
load12131022151410712871425
domContentLoaded12121022151410712861425
domInteractive1073727237121187
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect21137992142
firstReactRender23194842328
getState9420220811
initialActions001001
loadScripts11931009149810712651404
setupStore74354612
WebpackHomeuiStartup15261343197812216001752
load12991149170210013551483
domContentLoaded12991149170210013551482
domInteractive82411422198130
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2314106122342
firstReactRender35296353843
getState14427637923
initialActions002111
loadScripts12781128168510013331459
setupStore95637820
Benchmark value 203 exceeds gate value 199 for chrome webpack home mean firstPaint
Sum of mean exceeds: 4ms | Sum of p95 exceeds: 0ms
Sum of all benchmark exceeds: 4ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 2.24 KiB (0.03%)
  • common: 0 Bytes (0%)

@vinistevam vinistevam enabled auto-merge April 23, 2025 14:10
@vinistevam vinistevam added this pull request to the merge queue Apr 23, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [0950967]
UI Startup Metrics (1216 ± 59 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1216109813925912511344
load104791212235710721166
domContentLoaded104190612165710681161
domInteractive17146171729
firstPaint64589120342210561128
backgroundConnect74172810
firstReactRender21168282135
getState1354281929
initialActions001001
loadScripts80266897956832928
setupStore85233812
WebpackHomeuiStartup21041709265418722322392
load16211293204414617321837
domContentLoaded16141287203714517251833
domInteractive15115481339
firstPaint1796435161225290
backgroundConnect289290322658
firstReactRender19656377118314360
getState143227231428
initialActions317135
loadScripts16091285201414417231821
setupStore197282271934
FirefoxBrowserifyHomeuiStartup13481180173110414021528
load12001038159510812681397
domContentLoaded12001038159510812681397
domInteractive1033623833117171
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect211393112029
firstReactRender22195552227
getState74263813
initialActions001001
loadScripts11811019153610612461381
setupStore8416917621
WebpackHomeuiStartup15831407210714116391874
load13491193185113214081673
domContentLoaded13491192185013214071673
domInteractive893416530109152
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2615101142560
firstReactRender37315853948
getState94325915
initialActions102111
loadScripts13251180183212713851577
setupStore105487930
cc: @HowardBraham
Benchmark value 27 exceeds gate value 26 for firefox webpack home mean backgroundConnect
Benchmark value 1673 exceeds gate value 1660 for firefox webpack home p95 load
Benchmark value 1673 exceeds gate value 1660 for firefox webpack home p95 domContentLoaded
Benchmark value 60 exceeds gate value 49 for firefox webpack home p95 backgroundConnect
Benchmark value 30 exceeds gate value 28 for firefox webpack home p95 setupStore
Sum of mean exceeds: 1ms | Sum of p95 exceeds: 39ms
Sum of all benchmark exceeds: 40ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 28 Bytes (0%)
  • common: 0 Bytes (0%)

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 23, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [d64b46b]
UI Startup Metrics (1204 ± 69 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyHomeuiStartup1204108614746912361325
load104493613136510771194
domContentLoaded103893113086410671190
domInteractive16134951629
firstPaint65872131542610471124
backgroundConnect7418279
firstReactRender22164872340
getState1453981927
initialActions001001
loadScripts804710106661833949
setupStore85223814
WebpackHomeuiStartup21561756258016622572393
load16721337203413617871879
domContentLoaded16651329199913417801874
domInteractive15124681342
firstPaint1807336456212293
backgroundConnect339381512962
firstReactRender22257399122338360
getState1244671526
initialActions316145
loadScripts16601326197513317771873
setupStore186177182036
FirefoxBrowserifyHomeuiStartup13601160167210214211550
load12111038149210812811427
domContentLoaded12111038149210812801426
domInteractive1083622734122178
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect2213115142236
firstReactRender24195672450
getState7449589
initialActions001001
loadScripts11911026147210812601414
setupStore8317117620
WebpackHomeuiStartup15741360214813816601846
load13441161180911614051576
domContentLoaded13431160180911614041576
domInteractive85382502890135
firstPaintNaNNaNNaNNaNNaNNaN
backgroundConnect23157882342
firstReactRender37305853849
getState94466922
initialActions102111
loadScripts13241147179411613711558
setupStore96537912
Benchmark value 1194 exceeds gate value 1190 for chrome browserify home p95 load
Benchmark value 1191 exceeds gate value 1180 for chrome browserify home p95 domContentLoaded
Benchmark value 950 exceeds gate value 940 for chrome browserify home p95 loadScripts
Sum of mean exceeds: 0ms | Sum of p95 exceeds: 25ms
Sum of all benchmark exceeds: 25ms

Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 28 Bytes (0%)
  • common: 0 Bytes (0%)

@vinistevam vinistevam added this pull request to the merge queue Apr 24, 2025
Merged via the queue into main with commit 5514da9 Apr 24, 2025
169 checks passed
@vinistevam vinistevam deleted the fix/update-padding-gas-fee-pill branch April 24, 2025 06:00
@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
team-confirmations Push issues to confirmations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants