Skip to content

[LWM] feat: add total market cap and top gainers losers to notification tog…#15583

Open
mitchellv-ledger wants to merge 1 commit intodevelopfrom
feat/LIVE-26064_notification_toggles
Open

[LWM] feat: add total market cap and top gainers losers to notification tog…#15583
mitchellv-ledger wants to merge 1 commit intodevelopfrom
feat/LIVE-26064_notification_toggles

Conversation

@mitchellv-ledger
Copy link
Contributor

…gles

✅ Checklist

  • npx changeset was attached.
  • Covered by automatic tests.
  • Impact of the changes:
    • ...

📝 Description

Adds total market cap and top gainers losers notification toggles in settings.

Simulator Screenshot - iPhone 16 Pro - 2026-03-19 at 11 07 35

❓ Context


🧐 Checklist for the PR Reviewers

  • The code aligns with the requirements described in the linked JIRA or GitHub issue.
  • The PR description clearly documents the changes made and explains any technical trade-offs or design decisions.
  • There are no undocumented trade-offs, technical debt, or maintainability issues.
  • The PR has been tested thoroughly, and any potential edge cases have been considered and handled.
  • Any new dependencies have been justified and documented.
  • Performance considerations have been taken into account. (changes have been profiled or benchmarked if necessary)

@mitchellv-ledger mitchellv-ledger self-assigned this Mar 19, 2026
@mitchellv-ledger mitchellv-ledger requested review from a team as code owners March 19, 2026 15:08
@mitchellv-ledger mitchellv-ledger added the enhancement New feature or request label Mar 19, 2026
Copilot AI review requested due to automatic review settings March 19, 2026 15:08
@mitchellv-ledger mitchellv-ledger added the mobile Has changes in LLM label Mar 19, 2026
@live-github-bot live-github-bot bot changed the title feat: add total market cap and top gainers losers to notification tog… [LWM] feat: add total market cap and top gainers losers to notification tog… Mar 19, 2026
@live-github-bot live-github-bot bot added the translations Translation files have been touched label Mar 19, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2026

Web Tools Build Status

Build Status Deployment
Web Tools Build ⏭️ Skipped
Native Storybook Build ⏭️ Skipped
React Storybook Build ⏭️ Skipped

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds new notification preference toggles for “Total Market Cap” and “Top Gainers and Losers” in Ledger Live Mobile settings, wiring them through persisted settings state, analytics, and Braze user attributes.

Changes:

  • Add two new notification settings keys (totalMarketCap, topGainersLosers) and expose them in the Notifications settings screen.
  • Propagate the new preferences to Braze (updateUserPreferences) and Segment extra properties.
  • Add English i18n strings and extend an existing NotificationsPrompt integration test coverage.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
apps/ledger-live-mobile/src/screens/Settings/Notifications/index.tsx Adds two new notification rows and mapping entries for translations/tracking.
apps/ledger-live-mobile/src/reducers/types.ts Extends NotificationsSettings with two new boolean fields.
apps/ledger-live-mobile/src/reducers/settings.ts Sets default values for the new notification settings in INITIAL_STATE.
apps/ledger-live-mobile/src/notifications/braze.ts Sends the new opt-in attributes to Braze.
apps/ledger-live-mobile/src/mvvm/features/NotificationsPrompt/integrations/NotificationsPrompt.test.tsx Updates integration test to include the two new categories in feature flag params.
apps/ledger-live-mobile/src/mvvm/components/MainTabBar/constants.ts Parentheses-only change in getLabelKey return expression.
apps/ledger-live-mobile/src/locales/en/common.json Adds English strings for the two new notification toggles.
apps/ledger-live-mobile/src/analytics/segment.ts Adds the new opt-in flags to Segment extra properties.
.changeset/shiny-falcons-grin.md Changeset for live-mobile minor bump.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2026

⚠️ E2E tests are required

Changes detected require e2e testing before merge (even before asking for any review).

📱 Mobile

-> Run Mobile E2E

  • Select "Run workflow"
  • Branch: feat/LIVE-26064_notification_toggles
  • Device: nanoX

@mitchellv-ledger mitchellv-ledger force-pushed the feat/LIVE-26064_notification_toggles branch from d1d186c to 5654c9c Compare March 20, 2026 11:22
@mitchellv-ledger mitchellv-ledger force-pushed the feat/LIVE-26064_notification_toggles branch from 5654c9c to 02d3621 Compare March 20, 2026 12:27
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request mobile Has changes in LLM translations Translation files have been touched

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants