• Aryan Noshirvnai's avatar
    Fix the actual reason the broadcast circle never looked like a circle · b6cd0b29
    Aryan Noshirvnai authored
    The previous pass only strengthened the circle's styling (stronger fill,
    dashed border) - that wasn't the real bug. The radius is computed as a
    fraction of the map's current visible viewport. Search and "use my location"
    already jump+zoom the map on pin placement, but a plain click never did, so
    clicking to place a pin left the map at its whole-world starting zoom -
    where a small picker map's viewport spans roughly a third of the planet's
    longitude. At that zoom the "radius" came out to literally thousands of
    kilometers. A circle that large has no edge anywhere inside a small map:
    every visible pixel is inside it, so it reads as a flat color wash, not a
    circle - "the circle isn't there" was a completely accurate description.
    
    ClickToPlacePin now zooms in to the same level search/locate already use,
    but only on a station's very first placement (checked via whether a pin
    already exists, not the current zoom, so a user who deliberately zooms back
    out later never gets yanked back in). The computed radius is also clamped
    to a 200m-100km sane range as a defensive backstop against the same
    degenerate math at any other extreme zoom level.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    b6cd0b29
Name
Last commit
Last update
..
AdminPanel.test.tsx Loading commit data...
AdminPanel.tsx Loading commit data...
AlbumDetail.test.tsx Loading commit data...
AlbumDetail.tsx Loading commit data...
BusinessPanel.test.tsx Loading commit data...
BusinessPanel.tsx Loading commit data...
Discovery.test.tsx Loading commit data...
Discovery.tsx Loading commit data...
GeoDrops.test.tsx Loading commit data...
GeoDrops.tsx Loading commit data...
Home.test.tsx Loading commit data...
Home.tsx Loading commit data...
Library.test.tsx Loading commit data...
Library.tsx Loading commit data...
LikedSongs.test.tsx Loading commit data...
LikedSongs.tsx Loading commit data...
Login.test.tsx Loading commit data...
Login.tsx Loading commit data...
Nearby.test.tsx Loading commit data...
Nearby.tsx Loading commit data...
Playlists.test.tsx Loading commit data...
Playlists.tsx Loading commit data...
Posts.test.tsx Loading commit data...
Posts.tsx Loading commit data...
Radio.test.tsx Loading commit data...
Radio.tsx Loading commit data...
Remix.test.tsx Loading commit data...
Remix.tsx Loading commit data...
Roadmap.test.tsx Loading commit data...
Roadmap.tsx Loading commit data...
Rooms.test.tsx Loading commit data...
Rooms.tsx Loading commit data...
Settings.test.tsx Loading commit data...
Settings.tsx Loading commit data...
Social.test.tsx Loading commit data...
Social.tsx Loading commit data...
Soundmarks.test.tsx Loading commit data...
Soundmarks.tsx Loading commit data...
TelegramLink.test.tsx Loading commit data...
TelegramLink.tsx Loading commit data...
Upload.test.tsx Loading commit data...
Upload.tsx Loading commit data...