Skip to content

feat(web): persist town radio pause preference in localStorage#38

Merged
harshithmullapudi merged 1 commit into
mainfrom
feat/radio-persist-paused-pref
Jul 8, 2026
Merged

feat(web): persist town radio pause preference in localStorage#38
harshithmullapudi merged 1 commit into
mainfrom
feat/radio-persist-paused-pref

Conversation

@harshithmullapudi

Copy link
Copy Markdown
Member

Summary

  • Persist the radio's pause/play choice under town-radio:paused in localStorage so a paused radio stays paused across reloads.
  • Autoplay arm skips the default track when the flag is set.
  • toggle writes the flag; next / prev / select clear it (picking a track implies intent to play).

Test plan

  • Load the app, let the radio auto-start on first interaction, pause it → reload → radio stays paused, no auto-start on next click.
  • Pause, then reload and press play in the popover → radio plays and the flag clears; reload again → radio auto-starts.
  • With the radio paused, press next/prev/select in the popover → playback starts and the persisted flag clears.
  • Private / storage-disabled mode → radio still works, just doesn't remember the preference.

🤖 Generated with Claude Code

Store the user's pause/play choice under `town-radio:paused` so a
paused radio stays paused across reloads. The autoplay arm skips
the initial track when the flag is set, and next/prev/select clear
it since actively picking a track implies intent to play.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@harshithmullapudi
harshithmullapudi merged commit 0bec013 into main Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant