• Aryan Noshirvnai's avatar
    Add a Telegram linking page so the chat-scan feature is actually testable · 69fd45e8
    Aryan Noshirvnai authored
    New /telegram-link page (in nav): phone number -> code -> link, then
    browse your linked Telegram chats and the music found in each. On load it
    checks whether you're already linked (a clean 400 from GET
    /auth/telegram/chats means not yet) and skips straight to the chat list
    if so, instead of always showing the phone form.
    
    Added getChatMusic() to api/auth.ts to round out the client (getChats
    already existed, unused by any page until now).
    
    Built this specifically so the just-fixed backend linking flow (see
    stax_backend_api: /auth/telegram/login now actually attaches to the
    caller instead of creating a separate identity) has something to actually
    click through and test with a real account, rather than requiring raw API
    calls. Updated the Roadmap to reflect this - Telegram linking UI moves
    from Frontend to-do into Frontend done.
    Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
    69fd45e8
auth.ts 2.37 KB