• Aryan Noshirvnai's avatar
    Fix radio artwork proxy gap; redesign tuning dial as a scrolling tape · 0362b75c
    Aryan Noshirvnai authored
    Custom station artwork wasn't rendering: storage.store_image returns a
    backend-relative path ("/images/7/x.png") meant to load same-origin, but
    neither the dev vite proxy nor prod's nginx config had a rule for anything
    besides /api, so the browser 404'd requesting it against its own origin.
    Added a mirroring /images proxy rule to both.
    
    The tuning dial's previous drag-based redesign still felt disconnected: the
    thumb was positioned by percent-of-the-full-150-unit-range while drag
    sensitivity was a separate, decoupled pixel constant, so the thumb visibly
    lagged behind the finger - confirming the range itself wasn't really the
    problem, the position/sensitivity mismatch was. Replaced it with a
    scrolling-tape dial: a fixed center needle never moves, and a tape of
    whole-MHz ticks (plus taller station ticks) scrolls underneath it at exactly
    the same px-per-MHz rate the drag reads at, so it tracks the finger 1:1
    regardless of the band's width. Added whole-MHz snapping during a drag (with
    one haptic tick per newly-entered detent, Vibration API feature-detected) and
    new +/- buttons for an exact 0.1 nudge - routed through a separate step path
    that skips the whole-number magnet, since a magnet strong enough to feel
    good on a drag would otherwise trap a single button press at the same value.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    0362b75c
deploy.sh 7.48 KB