Skip to content

fix: gate Social AI notification settings & bump notification-services-controller to 24.1.1#30528

Merged
Montoya merged 6 commits into
mainfrom
codex/bump-notification-services-controller-to-24.1.1
May 22, 2026
Merged

fix: gate Social AI notification settings & bump notification-services-controller to 24.1.1#30528
Montoya merged 6 commits into
mainfrom
codex/bump-notification-services-controller-to-24.1.1

Conversation

@baptiste-marchand

@baptiste-marchand baptiste-marchand commented May 21, 2026

Copy link
Copy Markdown
Contributor

Description

Ensure the project uses the newer @metamask/notification-services-controller version and prevent Social AI notification controls from showing when the Social Leaderboard feature is disabled.

Changelog

CHANGELOG entry:

Related issues

Fixes: https://consensyssoftware.atlassian.net/browse/GE-244
Related to MetaMask/core#8861

Manual testing steps

Feature: my feature name

  Scenario: user [verb for user action]
    Given [describe expected initial app state]

    When user [verb for user action]
    Then [describe expected outcome]

Screenshots/Recordings

Before

After

Pre-merge author checklist

Performance checks (if applicable)

  • I've tested on Android
    • Ideally on a mid-range device; emulator is acceptable
  • I've tested with a power user scenario
    • Use these power-user SRPs to import wallets with many accounts and tokens
  • I've instrumented key operations with Sentry traces for production performance metrics

For performance guidelines and tooling, see the Performance Guide.

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

Low Risk
Low risk: UI visibility is now controlled by an existing remote feature flag and changes are covered by updated tests; dependency bump may have minor integration fallout but is limited in scope.

Overview
Gates the Social AI notification settings section so it only appears when the aiSocialLeaderboardEnabled remote feature flag is enabled (via selectSocialLeaderboardEnabled).

Updates unit/component-view tests and notification-state presets to cover both flag states, and adjusts the user-storage mock defaults for marketing.inAppNotificationsEnabled.

Bumps @metamask/notification-services-controller to 24.1.1 (and updates lockfile accordingly).

Reviewed by Cursor Bugbot for commit 445bca5. Bugbot is set up for automated code reviews on this repo. Configure here.

@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.

@github-actions github-actions Bot added the pr-not-ready-for-e2e Skip E2E and block merging. Remove this label once the PR is ready to run the E2E tests. label May 21, 2026
Comment thread package.json
@baptiste-marchand baptiste-marchand removed pr-not-ready-for-e2e Skip E2E and block merging. Remove this label once the PR is ready to run the E2E tests. codex labels May 21, 2026
@socket-security

socket-security Bot commented May 21, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​metamask/​notification-services-controller@​24.1.0 ⏵ 24.1.198 +110088 +198 +1100

View full report

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

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.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit bc0a08a. Configure here.

Comment thread app/components/Views/Settings/NotificationsSettings/index.tsx
samir-acle
samir-acle previously approved these changes May 21, 2026

@samir-acle samir-acle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@baptiste-marchand baptiste-marchand changed the title Bump notification-services-controller to 24.1.1 and gate Social AI notification settings fix: gate Social AI notification settings & bump notification-services-controller to 24.1.1 May 21, 2026
@github-actions github-actions Bot added size-M and removed size-S labels May 21, 2026
samir-acle
samir-acle previously approved these changes May 21, 2026
@baptiste-marchand baptiste-marchand added the no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed label May 21, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 82.14%. Comparing base (de8a354) to head (ddf01c1).
⚠️ Report is 13 commits behind head on main.

Files with missing lines Patch % Lines
...nts/Views/Settings/NotificationsSettings/index.tsx 66.66% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #30528   +/-   ##
=======================================
  Coverage   82.14%   82.14%           
=======================================
  Files        5490     5490           
  Lines      147805   147807    +2     
  Branches    33992    33993    +1     
=======================================
+ Hits       121412   121414    +2     
+ Misses      18084    18081    -3     
- Partials     8309     8312    +3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

vinnyhoward
vinnyhoward previously approved these changes May 21, 2026
Montoya
Montoya previously approved these changes May 21, 2026
@Montoya Montoya enabled auto-merge May 21, 2026 17:21
@Montoya

Montoya commented May 21, 2026

Copy link
Copy Markdown
Contributor

@metamaskbot update-mobile-fixture

@github-actions

Copy link
Copy Markdown
Contributor

🔄 Fixture update started. Running workflow from branch codex/bump-notification-services-controller-to-24.1.1. View workflow runs

@github-actions

Copy link
Copy Markdown
Contributor

E2E fixture update failed.\n\nCommon causes:\n- CI workflow is still running — wait for 'Build iOS Apps' to complete\n- CI workflow was skipped — ensure your PR has iOS-impacting changes or use skip-smart-e2e-selection label\n- iOS build failed — check the CI workflow for errors\n\nView logs and retry

@baptiste-marchand baptiste-marchand added the No QA Needed Apply this label when your PR does not need any QA effort. label May 21, 2026
@baptiste-marchand baptiste-marchand dismissed stale reviews from Montoya and vinnyhoward via 445bca5 May 21, 2026 22:09
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Smart E2E Test Selection

  • Selected E2E tags: SmokeAccounts, SmokeConfirmations, SmokeIdentity, SmokeNetworkAbstractions, SmokeNetworkExpansion, SmokeSwap, SmokeStake, SmokeWalletPlatform, SmokeMoney, SmokePerps, SmokeMultiChainAPI, SmokePredictions, SmokeSeedlessOnboarding, SmokeBrowser, SmokeSnaps
  • Selected Performance tags: @PerformanceAccountList, @PerformanceOnboarding, @PerformanceLogin, @PerformanceSwaps, @PerformanceLaunch, @PerformanceAssetLoading, @PerformancePredict, @PerformancePreps
  • Risk Level: high
  • AI Confidence: 100%
click to see 🤖 AI reasoning details

E2E Test Selection:
Hard rule (controller-version-update): @MetaMask controller package version updated in package.json: @metamask/notification-services-controller. Running all tests.

Performance Test Selection:
Hard rule (controller-version-update): @MetaMask controller package version updated in package.json: @metamask/notification-services-controller. Running all tests.

View GitHub Actions results

@sonarqubecloud

Copy link
Copy Markdown

@baptiste-marchand baptiste-marchand added the skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. label May 21, 2026
@Montoya Montoya added this pull request to the merge queue May 22, 2026
Merged via the queue into main with commit a0b59b8 May 22, 2026
310 of 314 checks passed
@Montoya Montoya deleted the codex/bump-notification-services-controller-to-24.1.1 branch May 22, 2026 00:22
@github-actions github-actions Bot locked and limited conversation to collaborators May 22, 2026
@metamaskbotv2 metamaskbotv2 Bot added the release-7.80.0 Issue or pull request that will be included in release 7.80.0 label May 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

No QA Needed Apply this label when your PR does not need any QA effort. no-changelog no-changelog Indicates no external facing user changes, therefore no changelog documentation needed release-7.80.0 Issue or pull request that will be included in release 7.80.0 size-M skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. team-engagement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants