Skip to content

Conversation

@aganglada
Copy link
Contributor

@aganglada aganglada commented Nov 17, 2025

Description

Adds "Daily resources" section to TRX token details

Open in GitHub Codespaces

Changelog

CHANGELOG entry: feat: Adds "Daily resources" section to TRX token details

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Screenshot 2025-11-17 at 10 26 19

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

Adds a Tron Daily Resources section to the TRX asset page showing energy and bandwidth with coverage estimates, plus updates Tron icons and supporting selectors/hooks.

  • UI (TRX Asset Page):
    • Add TronDailyResources section with circular indicators for energy and bandwidth, showing counts and coverage estimates; rendered for Tron native assets in asset-page.tsx.
  • Hook & Logic:
    • Introduce useTronResources to derive current/max Tron resources from balances and assets; refactor isTronResource check in shared/lib/asset-utils.ts.
  • i18n:
    • Add locale strings for Tron resources (tronDailyResources, tronEnergy, tronBandwidth, coverage descriptions) in app/_locales/en*/messages.json.
  • Assets/Network Icons:
    • Update Tron image assets and mappings (tron-logo.png, tron-logo-testnet.svg) in multichain/network constants and network image maps.
  • Tests:
    • Add comprehensive tests for TronDailyResources UI and useTronResources hook.

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

@aganglada aganglada self-assigned this Nov 17, 2025
@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-new-networks PRs from the New Networks team label Nov 17, 2025
@github-actions github-actions bot added size-XL and removed size-M labels Nov 17, 2025
zone-live
zone-live previously approved these changes Nov 17, 2025
@metamaskbot
Copy link
Collaborator

Builds ready [067c000]
UI Startup Metrics (1234 ± 102 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup12341085161710213051401
load106992213939211441200
domContentLoaded106391713869111381195
domInteractive2314114182065
firstPaint64993139543910901205
backgroundConnect2342202617238249
firstReactRender3119155143347
getState22756102646
initialActions103112
loadScripts835687114690908963
setupStore1062131117
numNetworkReqs1367620673
BrowserifyPower User HomeuiStartup21141869252319222542523
load1113967154918612921549
domContentLoaded1096951153218912811532
domInteractive531817453109174
firstPaint675211147741210061477
backgroundConnect25223331317257313
firstReactRender704795148495
getState22718134245241342
initialActions104114
loadScripts862722124217910481242
setupStore29135193551
numNetworkReqs1219119435153194
WebpackStandard HomeuiStartup84772112361008421105
load619565101184614859
domContentLoaded61156098980607844
domInteractive181284141553
firstPaint21261992212209760
backgroundConnect261181153365
firstReactRender311990103639
getState1162931316
initialActions102011
loadScripts60855797977604834
setupStore1164051319
numNetworkReqs1367519871
WebpackPower User HomeuiStartup1124926191927313221919
load68158310001247491000
domContentLoaded662572946112717946
domInteractive36141203685120
firstPaint40680952302675952
backgroundConnect72113258698325
firstReactRender43395034650
getState1439516724160167
initialActions101011
loadScripts658570934109706934
setupStore106266926
numNetworkReqs846513327129133
FirefoxBrowserifyStandard HomeuiStartup14711300196913415161795
load1234112515538612701438
domContentLoaded1234112515528612701438
domInteractive56331883757148
firstPaint------
backgroundConnect4225233264665
firstReactRender27214952840
getState1174351124
initialActions208122
loadScripts1212110715288412471416
setupStore177207281251
numNetworkReqs1266816760
BrowserifyPower User HomeuiStartup32382465475367833474753
load15341300191019518001910
domContentLoaded15331299191019518001910
domInteractive266106629186507629
firstPaint------
backgroundConnect60112214684239701468
firstReactRender82551271787127
getState17211127846209278
initialActions213123
loadScripts14881268187419817611874
setupStore882722952135229
numNetworkReqs1277724158211241
WebpackStandard HomeuiStartup16571497223615216892000
load14071233174111314491675
domContentLoaded14071232174111314481674
domInteractive61292053964156
firstPaint------
backgroundConnect51241532555108
firstReactRender332583103347
getState157154241149
initialActions103122
loadScripts13731207170910814161617
setupStore157124161252
numNetworkReqs1366917763
WebpackPower User HomeuiStartup31782566425051935244250
load16621416203819318502038
domContentLoaded16621416203819318502038
domInteractive23272584166371584
firstPaint------
backgroundConnect33785746215655746
firstReactRender915612819104128
getState19212142668202426
initialActions41266326
loadScripts16211380199919718181999
setupStore1174135286153352
numNetworkReqs1287324158209241
📊 Page Load Benchmark Results

Current Commit: 067c000 | Date: 11/17/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±56ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 720ms (±54ms) 🟢 | historical mean value: 725ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 78ms (±30ms) 🟢 | historical mean value: 78ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 56ms 1.01s 1.53s 1.05s 1.53s
domContentLoaded 720ms 54ms 695ms 1.20s 742ms 1.20s
firstPaint 78ms 30ms 60ms 368ms 84ms 368ms
firstContentfulPaint 78ms 30ms 60ms 368ms 84ms 368ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 527 Bytes (0.01%)
  • ui: 5.78 KiB (0.08%)
  • common: 761 Bytes (0.01%)

@aganglada aganglada marked this pull request as ready for review November 17, 2025 12:51
@aganglada aganglada dismissed stale reviews from ulissesferreira and zone-live via d7afe26 November 17, 2025 12:57
@aganglada aganglada enabled auto-merge November 17, 2025 12:58
@metamaskbot
Copy link
Collaborator

Builds ready [d7afe26]
UI Startup Metrics (1262 ± 85 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1262109614548513241404
load108592812238011481211
domContentLoaded107992512147911411203
domInteractive241487172172
firstPaint71993124643411031209
backgroundConnect2362142659241251
firstReactRender30205993250
getState2375592646
initialActions103112
loadScripts84970698679914969
setupStore1172831116
numNetworkReqs1367619669
BrowserifyPower User HomeuiStartup21721846345337522283453
load1160960189425413971894
domContentLoaded1141942187625413681876
domInteractive652025368134253
firstPaint833231190952313911909
backgroundConnect24723228714254287
firstReactRender694888127688
getState24616941969306419
initialActions102012
loadScripts911722160424411391604
setupStore24163442834
numNetworkReqs1239419834165198
WebpackStandard HomeuiStartup8076851101858251024
load56852380057567721
domContentLoaded56051778354561709
domInteractive171266111547
firstPaint21655787204177692
backgroundConnect281373133461
firstReactRender322071103747
getState1162231318
initialActions103111
loadScripts55851577653559702
setupStore1162231416
numNetworkReqs1467819870
WebpackPower User HomeuiStartup1052936144917711741449
load64758390392686903
domContentLoaded63257386887672868
domInteractive34131193563119
firstPaint34969872252592872
backgroundConnect47131775189177
firstReactRender43396054360
getState1398316226156162
initialActions101011
loadScripts62857085884662858
setupStore17743112643
numNetworkReqs79651262281126
FirefoxBrowserifyStandard HomeuiStartup14691330190410615171653
load1239112714767412831394
domContentLoaded1239112714757412831394
domInteractive54342123758154
firstPaint------
backgroundConnect4023103144568
firstReactRender27225352841
getState12798121121
initialActions203122
loadScripts1215111614557112531372
setupStore1277391123
numNetworkReqs1265914753
BrowserifyPower User HomeuiStartup30432350405955836504059
load14741246190722617451907
domContentLoaded14741246190722617451907
domInteractive23074559154339559
firstPaint------
backgroundConnect4657312393508261239
firstReactRender987012318117123
getState18410236465198364
initialActions213133
loadScripts14291214181320617231813
setupStore13628429124145429
numNetworkReqs1247323860210238
WebpackStandard HomeuiStartup16171447225215316191974
load13651199168010413991648
domContentLoaded13651198167910413981648
domInteractive56301872867110
firstPaint------
backgroundConnect51242453352120
firstReactRender362485153880
getState14767111349
initialActions104122
loadScripts13341181163910013721576
setupStore15793151252
numNetworkReqs1366817766
WebpackPower User HomeuiStartup35522900451141038694511
load17851531215918718752159
domContentLoaded17851531215918718742159
domInteractive23994601163412601
firstPaint------
backgroundConnect56818210282808571028
firstReactRender996015727124157
getState18111943771177437
initialActions213123
loadScripts17331490209518618122095
setupStore742216346133163
numNetworkReqs1238322950182229
📊 Page Load Benchmark Results

Current Commit: d7afe26 | Date: 11/17/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±38ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 719ms (±36ms) 🟢 | historical mean value: 725ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±11ms) 🟢 | historical mean value: 78ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 38ms 999ms 1.33s 1.05s 1.33s
domContentLoaded 719ms 36ms 690ms 1.00s 734ms 1.00s
firstPaint 76ms 11ms 60ms 176ms 84ms 176ms
firstContentfulPaint 76ms 11ms 60ms 176ms 84ms 176ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 527 Bytes (0.01%)
  • ui: 5.79 KiB (0.08%)
  • common: 761 Bytes (0.01%)

@metamaskbot
Copy link
Collaborator

Builds ready [111a2b1]
UI Startup Metrics (1252 ± 87 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup1252110214968713121401
load108295113068111461206
domContentLoaded107794613018011391199
domInteractive2415103192077
firstPaint61188129142510801209
backgroundConnect2352232547239246
firstReactRender31216293752
getState2285892739
initialActions104112
loadScripts847717105278909982
setupStore1173551220
numNetworkReqs1367620673
BrowserifyPower User HomeuiStartup21601780299228223812992
load1148968179123614241791
domContentLoaded1125938177323713981773
domInteractive551915050128150
firstPaint861182178351014341783
backgroundConnect2532392819257281
firstReactRender73451141785114
getState24517637356282373
initialActions102112
loadScripts897712153023311661530
setupStore27752103252
numNetworkReqs1249119337181193
WebpackStandard HomeuiStartup83771112241008361106
load61455897489610883
domContentLoaded60755395484604859
domInteractive191281171474
firstPaint21463956212200587
backgroundConnect251274132756
firstReactRender31197693639
getState1162231315
initialActions101011
loadScripts60455194382602849
setupStore1061931215
numNetworkReqs1367519871
WebpackPower User HomeuiStartup1104907171527912971715
load66356110541447561054
domContentLoaded64655110131347381013
domInteractive35131183782118
firstPaint34876882264563882
backgroundConnect56918064157180
firstReactRender40364734247
getState1409316522154165
initialActions102112
loadScripts64254910031317271003
setupStore19670162570
numNetworkReqs846413227128132
FirefoxBrowserifyStandard HomeuiStartup14071261178611714181686
load1201109215739212251406
domContentLoaded1201109215729212241405
domInteractive54341612662122
firstPaint------
backgroundConnect3825213234158
firstReactRender25204252439
getState1168391021
initialActions103122
loadScripts1178107315458612031377
setupStore147157181330
numNetworkReqs1467820774
BrowserifyPower User HomeuiStartup34122625451056635844510
load16431429215627320342156
domContentLoaded16431429215627320342156
domInteractive26091633191440633
firstPaint------
backgroundConnect67915014223719101422
firstReactRender937113318117133
getState1578737468206374
initialActions213133
loadScripts15841356212626019422126
setupStore864117241102172
numNetworkReqs1237323159198231
WebpackStandard HomeuiStartup16491394248717316592046
load13951208216713414321653
domContentLoaded13951208216713414321653
domInteractive54291642764119
firstPaint------
backgroundConnect53221913257121
firstReactRender352685103664
getState1375591249
initialActions203122
loadScripts13601190207012513891616
setupStore176206261159
numNetworkReqs1366917766
WebpackPower User HomeuiStartup32962542451065338234510
load16781468207521719212075
domContentLoaded16781468207421719202074
domInteractive23581593187497593
firstPaint------
backgroundConnect52710910593358321059
firstReactRender905815121100151
getState17210535464177354
initialActions213133
loadScripts16291432200620718892006
setupStore895117331115173
numNetworkReqs1297624361199243
📊 Page Load Benchmark Results

Current Commit: 111a2b1 | Date: 11/17/2025

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.05s (±44ms) 🟡 | historical mean value: 1.04s ⬆️ (historical data)
  • domContentLoaded-> current mean value: 733ms (±40ms) 🟢 | historical mean value: 725ms ⬆️ (historical data)
  • firstContentfulPaint-> current mean value: 78ms (±10ms) 🟢 | historical mean value: 78ms ⬆️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.05s 44ms 1.02s 1.35s 1.07s 1.35s
domContentLoaded 733ms 40ms 710ms 1.01s 746ms 1.01s
firstPaint 78ms 10ms 60ms 164ms 88ms 164ms
firstContentfulPaint 78ms 10ms 60ms 164ms 88ms 164ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 527 Bytes (0.01%)
  • ui: 6.82 KiB (0.09%)
  • common: 1.26 KiB (0.01%)

@aganglada aganglada added this pull request to the merge queue Nov 17, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 17, 2025
@aganglada aganglada added this pull request to the merge queue Nov 17, 2025
Merged via the queue into main with commit 6b7ac2f Nov 17, 2025
173 of 174 checks passed
@aganglada aganglada deleted the NWNT-694-extension-add-tron-daily-resource-section-under-trx-token-details branch November 17, 2025 15:15
@github-actions github-actions bot locked and limited conversation to collaborators Nov 17, 2025
@metamaskbot metamaskbot added the release-13.11.0 Issue or pull request that will be included in release 13.11.0 label Nov 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

release-13.11.0 Issue or pull request that will be included in release 13.11.0 size-XL team-new-networks PRs from the New Networks team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants