1. 10 Aug, 2026 3 commits
    • Aryan Noshirvnai's avatar
      Refine UI: real icons, reusable primitives, fluid transitions · 4a6f7e60
      Aryan Noshirvnai authored
      Replaces every emoji (nav icons, swipe buttons, room reactions, logo) with
      lucide-react icons - consistent stroke weight/sizing instead of whatever
      each OS/browser renders emoji as.
      
      Adds src/components/ui/: Button (3 variants, consistent 44px targets,
      active:scale press feedback), Input/Textarea (consistent 16px text sizing),
      Skeleton/SkeletonRow (replaces plain "Loading…" text so the layout doesn't
      jump once real content arrives), EmptyState (consistent icon+message empty
      states) - eliminates the repeated ad-hoc Tailwind strings that had drifted
      slightly inconsistent across the 6 pages built one at a time.
      
      Fluid touches: transition-colors/transition-all with real durations on
      nav/buttons/cards instead of instant state changes, a custom
      @keyframes message-enter for new chat messages (tailwindcss-animate isn't
      installed and may not support Tailwind v4 cleanly, so this is a small
      hand-written animation instead of an unverified dependency), a pulsing
      live-room indicator dot, smooth chat auto-scroll.
      
      Typechecks clean, production build succeeds, dev server HMR'd every change
      without errors.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      4a6f7e60
    • Aryan Noshirvnai's avatar
      Make the webapp mobile-friendly · c55e7092
      Aryan Noshirvnai authored
      - index.html: viewport-fit=cover (enables safe-area-inset-* for notches/
        home indicators), theme-color, mobile/apple-web-app-capable meta tags
      - Layout: fixed bottom tab bar on mobile (sm:hidden) with icons, thumb-
        reachable instead of the old horizontal top nav, which stays for sm+
        screens instead; main content gets pb-24 on mobile so it doesn't sit
        under the fixed tab bar
      - RoomView (full-screen, doesn't use Layout so needed its own handling):
        h-dvh instead of min-h-screen so the chat input actually stays pinned to
        the visible viewport bottom with the keyboard open; safe-area padding on
        header/input bar
      - All interactive buttons/inputs bumped to a real ~44px touch target
        (Discovery's swipe buttons and Channels' follow button were the worst
        offenders, py-1/py-1.5 only)
      - Text inputs explicitly text-base (16px): anything smaller triggers iOS
        Safari's auto-zoom-on-focus, which is jarring
      
      Typechecks clean, production build succeeds. Couldn't visually verify in a
      real browser this session (no browser tooling available) - worth an actual
      phone check.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      c55e7092
    • Aryan Noshirvnai's avatar
      Remove phone-number login; auto-authenticate in dev · dccf71fe
      Aryan Noshirvnai authored
      Login.tsx and the /auth/request_code + /auth/login flow are gone. Dev
      doesn't need any login at all now: AuthContext auto-injects
      VITE_DEV_ACCESS_TOKEN/VITE_DEV_REFRESH_TOKEN on boot, gated behind Vite's
      own import.meta.env.DEV flag so this never activates in a production build
      regardless of whether those vars happen to be set.
      
      These are real, DB-backed tokens for a dedicated dev-test-user row (id 1)
      and a matching refresh_tokens entry on the dev server - not forged/fake -
      so the existing auto-refresh-on-401 in client.ts keeps them working
      indefinitely, same as it would for a real login.
      
      ProtectedRoute now shows an inline message instead of redirecting to a
      /login route that no longer exists, for whenever this runs without dev
      tokens configured (i.e. a real production build with no login flow yet).
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      dccf71fe
  2. 09 Aug, 2026 2 commits
    • Aryan Noshirvnai's avatar
      Connect every backend feature area, not just auth + library · a7124fc6
      Aryan Noshirvnai authored
      Adds Upload (direct file tag), Discovery (listen/history/swipe), Rooms
      (list/create + a live WebSocket room view with chat, fire reactions, and
      DJ-handoff requests), Channels (list/create/follow, user_id filled in
      client-side via jwt.ts since /channels takes it in the body rather than
      deriving it from the token like every other router), and Remix (multi-file
      upload + prompt, polls job status with a stage progress bar until done).
      
      jwt.ts decodes (never verifies - that's the server's job) the access
      token's `sub` claim locally, since /channels needs a real user id and
      nothing in the login response returns one directly.
      
      Typechecks clean, production build succeeds.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      a7124fc6
    • Aryan Noshirvnai's avatar
      Scaffold stax_webapp: React + Vite + TypeScript + Tailwind v4 · c49f36ae
      Aryan Noshirvnai authored
      First working slice against stax_backend_api: Telegram phone/code login
      flow (matching /auth/request_code + /auth/login), JWT access/refresh tokens
      in localStorage with automatic single-flight refresh-on-401, and a library
      view that streams audio via authenticated blob fetch (the /library/stream
      endpoint needs a Bearer header, which a plain <audio src> can't send).
      
      Deliberately small first slice - auth + library only - rather than building
      UI for all 34 backend endpoints at once. Extend from here as we go.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      c49f36ae