Skip to content

Wire Settings streamerMode into MaskedBalance alongside profile flag #459

Description

@josephchimebuka

Problem

MaskedBalance hides values based on useProfileStore.profile.streamerMode, but /settings also exposes a local streamerMode toggle in useSettingsStore. Toggling streamer mode in Settings does not immediately affect navbar balances unless profile data happens to match.

Scope

  • Treat streamer mode as enabled when either the persisted profile flag or the settings store flag is true
  • When Settings toggles streamer mode, update the local settings mirror instantly (existing) and ensure MaskedBalance reacts
  • Document the precedence in a short code comment
  • Add tests for both entry points

Acceptance criteria

  • Settings streamer toggle blurs navbar balance without requiring profile save
  • Profile streamer mode still works when loaded from API
  • Accessible labels remain accurate ("hidden because streamer mode is enabled")
  • Unit tests cover settings-only, profile-only, and both-enabled cases

Files

  • src/components/MaskedBalance.tsx
  • src/store/useSettingsStore.ts
  • src/components/MaskedBalance.test.tsx (new or extend)
  • src/pages/Settings.test.tsx

Difficulty

beginner

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programenhancementNew feature or requestfrontendFrontend/Stellar wave trackinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions