Skip to content

fix(rewards): reward flag not used to render discover menu item#40023

Merged
VGR-GIT merged 1 commit intomainfrom
rwds-ff-separate-discover-menu-item
Feb 12, 2026
Merged

fix(rewards): reward flag not used to render discover menu item#40023
VGR-GIT merged 1 commit intomainfrom
rwds-ff-separate-discover-menu-item

Conversation

@VGR-GIT
Copy link
Copy Markdown
Contributor

@VGR-GIT VGR-GIT commented Feb 12, 2026

Description

The discover menu button was conditionally being rendered based on the rewards feature flag. This should always be rendered now, regardless of whether rewards is flagged on or off.

Changelog

CHANGELOG entry: discover menu button always rendered

Screenshots/Recordings

After

Screenshot from 2026-02-12 16-38-44 Screenshot from 2026-02-12 16-41-15

Note

Low Risk
Small UI-logic change that only affects visibility of a menu item and removes a feature-flag check; no auth, data writes, or security-sensitive logic touched.

Overview
The Discover menu entry is now always rendered, removing its dependency on the rewards feature flag.

This updates both the popover GlobalMenu and the drawer useGlobalMenuSections hook by deleting the selectRewardsEnabled selector usage and unconditionalizing the Discover item while keeping the existing portfolio URL + MetaMetrics tracking behavior.

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

@VGR-GIT VGR-GIT requested a review from a team as a code owner February 12, 2026 15:43
@github-actions
Copy link
Copy Markdown
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-rewards Rewards team label Feb 12, 2026
@VGR-GIT VGR-GIT requested a review from sophieqgu February 12, 2026 15:44
@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Feb 12, 2026
@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Feb 12, 2026

✨ Files requiring CODEOWNER review ✨

👨‍🔧 @MetaMask/core-extension-ux (2 files, +25 -34)
  • 📁 ui/
    • 📁 components/
      • 📁 multichain/
        • 📁 global-menu/
          • 📄 global-menu.tsx +4 -8
        • 📁 global-menu-drawer/
          • 📄 useGlobalMenuSections.tsx +21 -26

@metamaskbotv2
Copy link
Copy Markdown
Contributor

metamaskbotv2 bot commented Feb 12, 2026

Builds ready [c4572fb]
UI Startup Metrics (1414 ± 101 ms)
PlatformBuildTypePageMetricMean (ms)Min (ms)Max (ms)Std Dev (ms)P 75 (ms)P 95 (ms)
ChromeBrowserifyStandard HomeuiStartup14141232173310114691595
load1222102514899412701404
domContentLoaded1214102014859212641392
domInteractive2916165232483
firstPaint185701404187221348
backgroundConnect25623537317258282
firstReactRender16113341724
initialActions104113
loadScripts97577812249110241149
setupStore157190181623
numNetworkReqs231587201582
BrowserifyPower User HomeuiStartup17971492266918018292225
load11981063200018811731667
domContentLoaded11831058197418611591637
domInteractive41192633937117
firstPaint1937057494254349
backgroundConnect33830142123349380
firstReactRender23164972439
initialActions105112
loadScripts92380116981818921381
setupStore1674881734
numNetworkReqs1164825646138202
WebpackStandard HomeuiStartup8427051154958881026
load73062699187774904
domContentLoaded72562298487767892
domInteractive2717111192482
firstPaint1196429752168211
backgroundConnect27185173142
firstReactRender15103351826
initialActions103112
loadScripts72262097486765889
setupStore1263451322
numNetworkReqs221588201579
WebpackPower User HomeuiStartup1211933178615713011478
load71162012131167071041
domContentLoaded70161412061166951034
domInteractive37181693133115
firstPaint1346345576163272
backgroundConnect16112730342166288
firstReactRender23184142532
initialActions101011
loadScripts69861211941146931026
setupStore1354371433
numNetworkReqs1184828253142246
FirefoxBrowserifyStandard HomeuiStartup16951435240916117302003
load14591228198412215061689
domContentLoaded14581227198412215051689
domInteractive893732744107149
firstPaint------
backgroundConnect6031257246184
firstReactRender13112621315
initialActions102122
loadScripts14291203195611514771655
setupStore186206291257
numNetworkReqs241298211885
BrowserifyPower User HomeuiStartup27972202420942129273645
load15831208272928716342245
domContentLoaded15831208272928716342245
domInteractive12735730127118455
firstPaint------
backgroundConnect3271241134267360902
firstReactRender19146872023
initialActions203122
loadScripts15431184247726415862191
setupStore1498777210167669
numNetworkReqs68391503392131
WebpackStandard HomeuiStartup16021324213013716431879
load13871184178811414371585
domContentLoaded13861184178811414371585
domInteractive803125348124152
firstPaint------
backgroundConnect5024161235393
firstReactRender15114241518
initialActions102122
loadScripts13621170175611014121561
setupStore1375491337
numNetworkReqs231392181776
WebpackPower User HomeuiStartup26301899415844427613590
load15241242239227116732210
domContentLoaded15241242238727016732210
domInteractive1023270787103222
firstPaint------
backgroundConnect252116968195236876
firstReactRender22156262430
initialActions209122
loadScripts14901215237726516202171
setupStore1768782236251736
numNetworkReqs65381523193128
📊 Page Load Benchmark Results

Current Commit: c4572fb | Date: 2/12/2026

📄 Localhost MetaMask Test Dapp

Samples: 100

Summary

  • pageLoadTime-> current mean value: 1.03s (±42ms) 🟡 | historical mean value: 1.04s ⬇️ (historical data)
  • domContentLoaded-> current mean value: 717ms (±39ms) 🟢 | historical mean value: 723ms ⬇️ (historical data)
  • firstContentfulPaint-> current mean value: 76ms (±11ms) 🟢 | historical mean value: 76ms ⬇️ (historical data)

📈 Detailed Results

Metric Mean Std Dev Min Max P95 P99
pageLoadTime 1.03s 42ms 1.01s 1.34s 1.05s 1.34s
domContentLoaded 717ms 39ms 697ms 1.01s 731ms 1.01s
firstPaint 76ms 11ms 60ms 164ms 84ms 164ms
firstContentfulPaint 76ms 11ms 60ms 164ms 84ms 164ms
largestContentfulPaint 0ms 0ms 0ms 0ms 0ms 0ms
Bundle size diffs [🚨 Warning! Bundle size has increased!]
  • background: 790 Bytes (0.02%)
  • ui: -184.32 KiB (-2.22%)
  • common: 185.41 KiB (1.7%)

@VGR-GIT VGR-GIT added this pull request to the merge queue Feb 12, 2026
Merged via the queue into main with commit 3e58423 Feb 12, 2026
189 of 191 checks passed
@VGR-GIT VGR-GIT deleted the rwds-ff-separate-discover-menu-item branch February 12, 2026 18:06
@github-actions github-actions bot locked and limited conversation to collaborators Feb 12, 2026
@metamaskbot metamaskbot added the release-13.19.0 Issue or pull request that will be included in release 13.19.0 label Feb 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

INVALID-PR-TEMPLATE PR's body doesn't match template release-13.19.0 Issue or pull request that will be included in release 13.19.0 size-S team-rewards Rewards team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants