Problem
Round-end audio on the dashboard uses a separate localStorage key (xelma_round_sound) while /settings persists sound preferences in useSettingsStore via audioController. Users can enable sounds in one place and still hear silence (or vice versa).
Scope
- Remove the ad-hoc
xelma_round_sound toggle/state from Dashboard.tsx
- Read
soundEnabled from useSettingsStore (and respect audioController bindings)
- Play round-resolution cues only when settings sound is enabled
- Add/adjust unit coverage for the unified path
Acceptance criteria
Files
src/pages/Dashboard.tsx
src/store/useSettingsStore.ts
src/utils/audioController.ts
src/pages/Settings.test.tsx
Difficulty
beginner
Problem
Round-end audio on the dashboard uses a separate
localStoragekey (xelma_round_sound) while/settingspersists sound preferences inuseSettingsStoreviaaudioController. Users can enable sounds in one place and still hear silence (or vice versa).Scope
xelma_round_soundtoggle/state fromDashboard.tsxsoundEnabledfromuseSettingsStore(and respectaudioControllerbindings)Acceptance criteria
useSettingsStore.soundEnabled)xelma_round_soundlocalStorage writespnpm testpassesFiles
src/pages/Dashboard.tsxsrc/store/useSettingsStore.tssrc/utils/audioController.tssrc/pages/Settings.test.tsxDifficulty
beginner