Skip to content

feat: Perps Order entry (static)#39659

Merged
gambinish merged 45 commits intomainfrom
perps/feat-order-entry
Feb 4, 2026
Merged

feat: Perps Order entry (static)#39659
gambinish merged 45 commits intomainfrom
perps/feat-order-entry

Conversation

@gambinish
Copy link
Member

@gambinish gambinish commented Jan 29, 2026

Description

Adds the order entry form for perpetuals trading. This is the static UI - no backend integration yet.

Changes:
Set values for new positions: Enter amount, set leverage (1-20x), optionally configure Take Profit / Stop Loss
Modify values for existing positions: Pre-fills current leverage and TP/SL settings
"Close positions": Supports partial closes (25%, 50%, 75%, 100%)

We may want to follow up with another "MockPerpsController" that does some of this state management more dynamically rather than just read from json files.

Open in GitHub Codespaces

Changelog

CHANGELOG entry: Add static perps order entry behind ff

Related issues

Fixes:

Manual testing steps

  1. Go to Perps → select a market
  2. Enter an amount, adjust leverage, toggle TP/SL
  3. Verify calculations update in the summary
  4. For markets with positions: test Modify and Close flows

Screenshots/Recordings

Before

After

Screen.Recording.2026-01-29.at.4.50.16.PM.mov

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.

Note

Medium Risk
Adds a sizeable new perps order-entry UI flow (including modify/close modes) and new state/calculation hook wired into the market detail page; while backend-free, it changes key user interactions and displayed trading calculations.

Overview
Adds a static Perps order entry form (no controller/backend wiring yet) supporting open, modify, and close flows, including amount entry with balance-percent presets, leverage selection, TP/SL “auto close”, and an order summary (margin/fees/liquidation estimates).

Integrates this flow into perps-market-detail-page by introducing a detail-vs-order view switch, a market/limit dropdown, and new sticky CTAs (Long/Short when no position; Modify/Close when a position exists), with form state managed via the new usePerpsOrderForm hook.

Also adds a shared PerpsSlider, updates perps i18n strings (new labels/buttons and changes perpsAvailable formatting), tightens mock maxLeverage defaults to 20x, improves number formatting in a few perps UIs, and introduces extensive unit tests plus baseline console updates.

Written by Cursor Bugbot for commit d9a8679. This will update automatically on new commits. Configure here.

@github-actions
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 metamaskbot added the team-perps Perps team label Jan 29, 2026
@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Jan 29, 2026

✨ Files requiring CODEOWNER review ✨

👨‍🔧 @MetaMask/perps (27 files, +3232 -13)
  • 📁 ui/
    • 📁 components/
      • 📁 app/
        • 📁 perps/
          • 📁 order-entry/
            • 📁 components/
              • 📁 amount-input/
                • 📄 amount-input.test.tsx +257 -0
                • 📄 amount-input.tsx +282 -0
                • 📄 index.ts +2 -0
              • 📁 auto-close-section/
                • 📄 auto-close-section.test.tsx +288 -0
                • 📄 auto-close-section.tsx +292 -0
                • 📄 index.ts +2 -0
              • 📁 close-amount-section/
                • 📄 close-amount-section.test.tsx +193 -0
                • 📄 close-amount-section.tsx +174 -0
                • 📄 index.ts +2 -0
              • 📁 direction-tabs/
                • 📄 direction-tabs.tsx +100 -0
                • 📄 index.ts +2 -0
              • 📁 leverage-slider/
                • 📄 index.ts +2 -0
                • 📄 leverage-slider.test.tsx +151 -0
                • 📄 leverage-slider.tsx +117 -0
              • 📁 order-summary/
                • 📄 index.ts +2 -0
                • 📄 order-summary.test.tsx +99 -0
                • 📄 order-summary.tsx +76 -0
              • 📄 index.ts +41 -0
              • 📄 order-entry.mocks.ts +129 -0
              • 📄 order-entry.test.tsx +377 -0
              • 📄 order-entry.tsx +211 -0
              • 📄 order-entry.types.ts +209 -0
          • 📁 perps-market-balance-actions/
            • 📄 perps-market-balance-actions.tsx +2 -4
          • 📁 perps-slider/
            • 📄 index.ts +2 -0
            • 📄 perps-slider.tsx +202 -0
            • 📄 index.ts +9 -0
            • 📄 mocks.ts +9 -9

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Jan 29, 2026

Builds ready [247aa15]
UI Startup Metrics (1335 ± 116 ms)
PlatformBuildTypePageMetricTest Title (ms)Persona (ms)Mean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--13351070160211614041537
load--1140907140211312001342
domContentLoaded--1133901139511311951337
domInteractive--281796192481
firstPaint--175671226158198300
backgroundConnect--24021633218247279
firstReactRender--19105572136
initialActions--105113
loadScripts--90968811741129661117
setupStore--1263761524
numNetworkReqs--211588161567
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--21241614560568720914418
load--1097955159413910841478
domContentLoaded--1082949157613610721464
domInteractive--39191672936119
firstPaint--216781591248240401
backgroundConnect--47228635576093422445
firstReactRender--24175472538
initialActions--108113
loadScripts--84072513301258281168
setupStore--1674471831
numNetworkReqs--1355125053160242
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--819659110286875991
load--684590102577745819
domContentLoaded--679586102077741813
domInteractive--241581152272
firstPaint--1016133044119190
backgroundConnect--3918172284496
firstReactRender--15103451826
initialActions--104112
loadScripts--676583101876740806
setupStore--1264261324
numNetworkReqs--211286171574
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--1253861205724514241754
load--71160911651197101014
domContentLoaded--70260211591196981003
domInteractive--34181242436105
firstPaint--160641101138199407
backgroundConnect--15212836139153204
firstReactRender--22173532428
initialActions--104111
loadScripts--6996011148117696994
setupStore--1253541318
numNetworkReqs--1354726857159257
19--------
FirefoxBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--13981149234917714791681
load--1144961206713912101324
domContentLoaded--1143956206713912091324
domInteractive--68361513392137
firstPaint--------
backgroundConnect--55251733163125
firstReactRender--1292921215
initialActions--107112
loadScripts--1110944202613011621291
setupStore--185194281279
numNetworkReqs--241293201883
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--28111970903987328634157
load--13091074248928112771966
domContentLoaded--13081074248928012771965
domInteractive--131361251145123346
firstPaint--------
backgroundConnect--39012760536383841057
firstReactRender--21148092328
initialActions--214123
loadScripts--12481055233224212261836
setupStore--1608725198159620
numNetworkReqs--73352154587190
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--17091437224217518172086
load--14611230198013415361710
domContentLoaded--14611229198013415361710
domInteractive--893120241131156
firstPaint--------
backgroundConnect--752625251120181
firstReactRender--16115571628
initialActions--103122
loadScripts--14171208186911314831595
setupStore--164168261175
numNetworkReqs--231282171876
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--29942295451447930794146
load--16221270311734917172408
domContentLoaded--16221270311634917172407
domInteractive--13433732141124576
firstPaint--------
backgroundConnect--3161211369255321984
firstReactRender--23155872632
initialActions--213123
loadScripts--15711235307532516832245
setupStore--1687801215252693
numNetworkReqs--73351954390174
19--------
📊 Page Load Benchmark Results

Current Commit: 247aa15 | Date: 1/29/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.06s (±64ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 741ms (±61ms) 🟢 | historical mean value: 724ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 78ms (±12ms) 🟢 | historical mean value: 79ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.06s 64ms 1.02s 1.33s 1.27s 1.33s
domContentLoaded 741ms 61ms 707ms 1.01s 951ms 1.01s
firstPaint 78ms 12ms 64ms 184ms 84ms 184ms
firstContentfulPaint 78ms 12ms 64ms 184ms 84ms 184ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 29.88 KiB (0.56%)
  • ui: 73.19 KiB (0.89%)
  • common: 9.47 KiB (0.1%)

@gambinish gambinish marked this pull request as ready for review January 30, 2026 00:08
@gambinish gambinish requested a review from a team as a code owner January 30, 2026 00:08
@gambinish gambinish requested a review from abretonc7s February 3, 2026 16:34
@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 3, 2026

Builds ready [e142363]
UI Startup Metrics (1492 ± 102 ms)
PlatformBuildTypePageMetricTest Title (ms)Persona (ms)Mean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--14921291172410215741646
load--12711025150510213391453
domContentLoaded--12651017150010213341444
domInteractive--2818103182581
firstPaint--1506837073212303
backgroundConnect--25523032319262305
firstReactRender--18104051929
initialActions--105123
loadScripts--1027790125210211011218
setupStore--1463251722
numNetworkReqs--211577161571
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--299616407474134039995579
load--12111008168612812741502
domContentLoaded--11911003167912512461468
domInteractive--35201552432102
firstPaint--244681489240251518
backgroundConnect--860279390786410432833
firstReactRender--24165872639
initialActions--105112
loadScripts--954790138111310121208
setupStore--1654791837
numNetworkReqs--1245625048145223
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--8756951215889341012
load--73162295379808865
domContentLoaded--72561694579803858
domInteractive--261584162374
firstPaint--1296736865177238
backgroundConnect--3318109173779
firstReactRender--17103961930
initialActions--105112
loadScripts--72261493678800848
setupStore--1172951225
numNetworkReqs--221587181576
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--1327878244529215551809
load--73361510921177281065
domContentLoaded--72160810821187161060
domInteractive--3818150233995
firstPaint--17170813109213351
backgroundConnect--15413040337161195
firstReactRender--23183742531
initialActions--102011
loadScripts--71960610751167141052
setupStore--1445271629
numNetworkReqs--1656533659178292
19--------
FirefoxBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--16321299246320017422037
load--13661142227316714651571
domContentLoaded--13651137227316714651570
domInteractive--853397398104141
firstPaint--------
backgroundConnect--70282244279162
firstReactRender--1292221216
initialActions--102112
loadScripts--13271128225315713971531
setupStore--174223301265
numNetworkReqs--241294211883
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--313221038374100531904660
load--16591252666583015772718
domContentLoaded--16591252666583015772717
domInteractive--157351311184165340
firstPaint--------
backgroundConnect--48811513983527931124
firstReactRender--18136781927
initialActions--203122
loadScripts--16021228654981515252557
setupStore--125131145182125588
numNetworkReqs--95412504899224
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--16551376215817317711971
load--14141134167012114931664
domContentLoaded--14131134167012214931659
domInteractive--852924647123184
firstPaint--------
backgroundConnect--782617546132161
firstReactRender--14112531522
initialActions--102022
loadScripts--13691113164810714421548
setupStore--1841432812104
numNetworkReqs--231284181875
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--30002088535957432624181
load--15841260394740716672558
domContentLoaded--15841260394740716672558
domInteractive--176461256209175572
firstPaint--------
backgroundConnect--45411023933757061159
firstReactRender--21156782328
initialActions--103122
loadScripts--15341231390135916132053
setupStore--156141034196199584
numNetworkReqs--93392554899205
19--------
📊 Page Load Benchmark Results

Current Commit: e142363 | Date: 2/3/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±74ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 719ms (±72ms) 🟢 | historical mean value: 723ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 80ms (±52ms) 🟢 | historical mean value: 78ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 74ms 1.00s 1.72s 1.05s 1.72s
domContentLoaded 719ms 72ms 696ms 1.40s 731ms 1.40s
firstPaint 80ms 52ms 60ms 592ms 84ms 592ms
firstContentfulPaint 80ms 52ms 60ms 592ms 84ms 592ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 66.78 KiB (0.81%)
  • common: 728 Bytes (0.01%)

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 3, 2026

Builds ready [826ef41]
UI Startup Metrics (1353 ± 75 ms)
PlatformBuildTypePageMetricTest Title (ms)Persona (ms)Mean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--1353115816147513991462
load--115496414057612071256
domContentLoaded--114895814007612021249
domInteractive--251587172377
firstPaint--157671202155188244
backgroundConnect--23121528512232261
firstReactRender--18103952028
initialActions--1011213
loadScripts--9327521178769831034
setupStore--1364161728
numNetworkReqs--211577161570
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--21461729293520822792498
load--12321061184016012741549
domContentLoaded--12151051182915212601543
domInteractive--38191422538107
firstPaint--215741844225260401
backgroundConnect--34528552349370456
firstReactRender--26167092848
initialActions--104112
loadScripts--95781515151389971261
setupStore--1755481836
numNetworkReqs--83422024092180
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--85268411441129351053
load--7215941066104790938
domContentLoaded--7155881060103786933
domInteractive--261589182278
firstPaint--1046124943132182
backgroundConnect--3518136223790
firstReactRender--15103251528
initialActions--104112
loadScripts--7125861058103779931
setupStore--1164551223
numNetworkReqs--221583181574
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--1244838184824113551811
load--72962111521167261040
domContentLoaded--71961211361157171032
domInteractive--37182053137116
firstPaint--161671143151193313
backgroundConnect--16413238050165316
firstReactRender--23183532428
initialActions--103111
loadScripts--71661011271137141024
setupStore--1254251417
numNetworkReqs--1104925952114236
19--------
FirefoxBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--16471342217419517792002
load--13861143185616314931761
domContentLoaded--13841142185616314921759
domInteractive--843423648111194
firstPaint--------
backgroundConnect--742924047115161
firstReactRender--1291811314
initialActions--102022
loadScripts--13421120175014114531642
setupStore--144152211243
numNetworkReqs--231286191879
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--30312148499260230924401
load--16071338271531816692367
domContentLoaded--16061338271431816692366
domInteractive--1163547985118356
firstPaint--------
backgroundConnect--3091181088245304903
firstReactRender--18152932024
initialActions--203123
loadScripts--15541291264428616262277
setupStore--1348764198111612
numNetworkReqs--73402004394190
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--16821431226715617691971
load--14431210174311315051698
domContentLoaded--14421210174311315041698
domInteractive--1003023944132171
firstPaint--------
backgroundConnect--70272804788168
firstReactRender--15124741521
initialActions--103122
loadScripts--1404119316979614531601
setupStore--184292351384
numNetworkReqs--231284181879
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--30282174821091531983986
load--17341292661980917612512
domContentLoaded--17341292661980917602512
domInteractive--1113559197117377
firstPaint--------
backgroundConnect--2851091294231286854
firstReactRender--21155952430
initialActions--204123
loadScripts--16791277659679916402473
setupStore--1778712219297686
numNetworkReqs--72362424987189
19--------
📊 Page Load Benchmark Results

Current Commit: 826ef41 | Date: 2/3/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.04s (±40ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 722ms (±36ms) 🟢 | historical mean value: 723ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 77ms (±12ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.04s 40ms 1.01s 1.35s 1.07s 1.35s
domContentLoaded 722ms 36ms 701ms 993ms 753ms 993ms
firstPaint 77ms 12ms 64ms 188ms 84ms 188ms
firstContentfulPaint 77ms 12ms 64ms 188ms 84ms 188ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 66.78 KiB (0.81%)
  • common: 728 Bytes (0.01%)

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

@metamaskbotv2
Copy link
Contributor

metamaskbotv2 bot commented Feb 3, 2026

Builds ready [d9a8679]
UI Startup Metrics (1361 ± 85 ms)
PlatformBuildTypePageMetricTest Title (ms)Persona (ms)Mean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--1361117117528514061486
load--117398314928312281290
domContentLoaded--116697414878512221286
domInteractive--261694172373
firstPaint--153651237129196297
backgroundConnect--23321229015234272
firstReactRender--17114751827
initialActions--109113
loadScripts--95075412738610061071
setupStore--1262841520
numNetworkReqs--221585171573
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--21121603481942121592407
load--11721013176914911731584
domContentLoaded--11551004167114411541571
domInteractive--37191512636117
firstPaint--223811688212253398
backgroundConnect--3762823141299355449
firstReactRender--25154772741
initialActions--104112
loadScripts--90878614031319081292
setupStore--1774571932
numNetworkReqs--1324925854153244
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--86668912341129531052
load--73161598699787944
domContentLoaded--72560997798782932
domInteractive--2716111182381
firstPaint--1116234056137223
backgroundConnect--39181922942103
firstReactRender--1810224211630
initialActions--104113
loadScripts--72260797597777929
setupStore--1152841221
numNetworkReqs--211580171572
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--1256860201423213891714
load--70660812841217041004
domContentLoaded--6966031278121693996
domInteractive--34171522732105
firstPaint--1366650288147307
backgroundConnect--16112834651160306
firstReactRender--22165352429
initialActions--102011
loadScripts--6946011267119691983
setupStore--1244241318
numNetworkReqs--1304930060158249
19--------
FirefoxBrowserifyStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--16341319225118617382006
load--13791154182614414831681
domContentLoaded--13781154182514414821681
domInteractive--793221139108145
firstPaint--------
backgroundConnect--73272264677177
firstReactRender--1293431315
initialActions--103122
loadScripts--13381134171112214071558
setupStore--156120201463
numNetworkReqs--231291191979
19--------
BrowserifyPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--29422264559257730004114
load--15551227259132217082416
domContentLoaded--15541223259032217082416
domInteractive--12034568113114430
firstPaint--------
backgroundConnect--3231171943293362890
firstReactRender--18146981827
initialActions--103122
loadScripts--15001213248928216162291
setupStore--1327729195157615
numNetworkReqs--73391894398182
19--------
WebpackStandard Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--16981442225118218302039
load--14571223187113515471732
domContentLoaded--14561223187013515471731
domInteractive--913028049129160
firstPaint--------
backgroundConnect--852628057129195
firstReactRender--14112831520
initialActions--105122
loadScripts--14101207173911915061637
setupStore--155174231252
numNetworkReqs--231285191880
19--------
WebpackPower User Home0--------
1--------
2--------
3--------
4--------
5--------
6--------
7--------
8--------
9--------
10--------
11--------
12--------
13--------
14--------
15--------
16--------
17--------
18--------
uiStartup--29842135422849631954064
load--16081260264532217912345
domContentLoaded--16081259264432217902345
domInteractive--13335713148114568
firstPaint--------
backgroundConnect--37811813993115081063
firstReactRender--23166382433
initialActions--203122
loadScripts--15301178242727316942061
setupStore--1677846220185700
numNetworkReqs--73352124594188
19--------
📊 Page Load Benchmark Results

Current Commit: d9a8679 | Date: 2/3/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±44ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 718ms (±61ms) 🟢 | historical mean value: 724ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 87ms (±126ms) 🟢 | historical mean value: 78ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 44ms 1.01s 1.38s 1.05s 1.38s
domContentLoaded 718ms 61ms 696ms 1.27s 736ms 1.27s
firstPaint 87ms 126ms 60ms 1.34s 84ms 1.34s
firstContentfulPaint 87ms 126ms 60ms 1.34s 84ms 1.34s
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 58 Bytes (0%)
  • ui: 66.78 KiB (0.81%)
  • common: 728 Bytes (0.01%)

@gambinish gambinish added this pull request to the merge queue Feb 4, 2026
Merged via the queue into main with commit cd56824 Feb 4, 2026
178 of 179 checks passed
@gambinish gambinish deleted the perps/feat-order-entry branch February 4, 2026 02:30
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2026
@metamaskbot metamaskbot added the release-13.18.0 Issue or pull request that will be included in release 13.18.0 label Feb 4, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.18.0 Issue or pull request that will be included in release 13.18.0 size-XL team-perps Perps team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants