Radio: real toggle for local scope, visible broadcast circle, editable after creation
The "Reach: Worldwide/Local" pill pair read as two unrelated buttons rather
than one feature being switched on - replaced with a single ToggleRow ("Tie
to a real-world location"), the same shared switch component and wording
already used elsewhere (Settings, Rooms' own location toggle).
That surfaced a real bug in the shared component: ToggleRow's switch button
had no explicit type, so inside an actual <form> (its first use inside one)
it defaulted to type="submit" and silently submitted the form with stale
state on click instead of just toggling. Fixed in ToggleRow itself.
The broadcast-radius circle was real but easy to miss - 0.12 fill opacity on
a dark basemap, and briefly rendered as a literal zero-radius circle before
the viewport-derived radius was computed. Strengthened its contrast, skipped
the zero-radius frame, and added an explicit "~Xkm radius" badge on the map.
The location+circle picker was also only ever reachable once, during station
creation. RadioManageTab gained the same toggle + picker + a "Save broadcast
area" action, so an existing station's broadcast area is visible and
editable afterward too - the backend (PATCH /radio/{id}) already supported
this, only the frontend wiring was missing.
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
Showing
Please
register
or
sign in
to comment