• Aryan Noshirvnai's avatar
    Add locate-me to the soundmark map, and automatic mic listening to Discovery · 5c07defd
    Aryan Noshirvnai authored
    LocationPicker: a locate-me button sits on the map itself now instead
    of requiring an address search - tapping it drops the pin at the
    browser's location and reverse-geocodes it into the address field, so
    there's something readable to correct rather than just bare
    coordinates. Search, click, and drag all still work exactly the same
    afterward.
    
    Discovery: replaced the file-drop-only control (identify's docstring
    already said "from the microphone", but nothing actually captured
    audio) with a real one - tap once, it records exactly 5 seconds
    automatically via getUserMedia/MediaRecorder with a pulsing/countdown
    animation, then submits through the same identify pipeline. Falls back
    to the old file-drop control on browsers without mic support instead
    of just breaking.
    
    Added Discovery's first tests (previously zero coverage) alongside 4
    new LocationPicker tests for the locate-me flow.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    5c07defd
soundmarks.ts 8.96 KB