1. 31 Aug, 2026 6 commits
    • Aryan Noshirvnai's avatar
      Split AdminPanel's three tabs into their own section components · c28afaef
      Aryan Noshirvnai authored
      AdminPanel.tsx was 668 lines with all three tab bodies (soundmarks,
      review queue, users) inlined directly in the page component - the
      only prior extraction was the two modals. Pulled each tab into its
      own presentational component (SoundmarksSection, ReviewQueueSection,
      UsersSection, plus a SoundmarkRow used by the first), matching the
      existing SoundmarkFormModal/PlaylistModal pattern already used in
      this file. Pure structural change, no behavior difference - all
      existing tests pass unchanged.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      c28afaef
    • Aryan Noshirvnai's avatar
      Add enter/exit motion to the flat modal and page transitions · 2d4c014a
      Aryan Noshirvnai authored
      The three shared bottom-sheet modals (AddToPlaylistModal, SongPicker,
      RemixSongPicker) and Layout's mobile More sheet popped in/out
      instantly with zero transition. Wired into useMountTransition (same
      300ms fade+rise idiom already used by FullPlayer/NowPlayingBar) so
      the backdrop fades and the panel slides/rises both ways. The three
      modals defer calling their real onClose prop until the exit animation
      actually finishes, since the caller still owns whether they exist in
      the tree at all and would otherwise unmount them mid-animation.
      
      Also gives every page navigation a subtle fade+rise on mount (Layout
      re-mounts per page already, so a plain CSS animation is enough - no
      router-level transition machinery needed), and fades EmptyState in
      instead of appearing flat.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      2d4c014a
    • Aryan Noshirvnai's avatar
      Fix swipe rows swallowing clicks (real pointer capture bug) · bf57f549
      Aryan Noshirvnai authored
      useSwipeAction called setPointerCapture unconditionally on
      pointerdown, which redirects the browser's synthesized click event to
      the capturing row element instead of whatever was actually tapped -
      silently breaking every button inside a Library row (Play, Add to
      playlist) on a real device. Invisible in the unit suite since jsdom
      stubs setPointerCapture as a no-op; found via real end-to-end
      (Playwright) testing while verifying the synced-lyrics fix below.
      Capture now only engages once a real drag is detected.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      bf57f549
    • Aryan Noshirvnai's avatar
      Fix back-button/navigation clobber, add in-app install banner · 7689db70
      Aryan Noshirvnai authored
      useBackButtonClose's cleanup unconditionally called history.back() to
      consume its own leftover entry, which broke the More sheet: clicking
      an item both navigates (route Link) and closes the sheet in the same
      click, and the cleanup's history.back() undid that navigation since
      it was now the top-most entry, making every More button appear to do
      nothing. Each pushed entry now carries a unique id and cleanup only
      consumes it if it's still current.
      
      Also adds a custom in-app "Install Stax" banner (useInstallPrompt +
      InstallBanner) since the browser's own install icon is easy to miss -
      captures beforeinstallprompt at module load (not component-scoped,
      since every page remounts its own <Layout>) and shows manual Share ->
      Add to Home Screen instructions on iOS Safari, which has no
      programmatic install API at all.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      7689db70
    • Aryan Noshirvnai's avatar
      Add PWA installability, system back button, swipe-to-queue/delete · 03069f85
      Aryan Noshirvnai authored
      Makes Stax installable via Add to Home Screen (manifest + service
      worker, cobalt-themed icons incl. maskable variants), makes the
      Android/browser back button close overlays one level at a time instead
      of navigating away (useBackButtonClose, stack-based to handle nested
      overlays correctly), and adds swipe gestures on Library rows: right to
      queue (PlayerContext.addToQueue, appends without touching playback),
      left to delete (confirm + calls the existing but previously
      unwired DELETE /library/{file_id} endpoint).
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      03069f85
    • Aryan Noshirvnai's avatar
      Spotify-inspired UX: real-time synced lyrics, minimal nav active-state, hover play overlay · c0c5d56c
      Aryan Noshirvnai authored
      Real-time synced lyrics view in FullPlayer: line-by-line highlight follows
      playback position, auto-scrolls the active line to center, tapping a line
      seeks there. Falls back to the existing static text view (then EmptyState)
      exactly as before when a song has no synced timing.
      
      Interaction patterns only - color identity deliberately stays cobalt, not
      Spotify's green, per the earlier explicit decision to avoid that look:
      - Nav active-state simplified to bold+accent icon/label, no background
        chip, with real aria-current="page" (sidebar, mobile tabs, More sheet)
      - Library's shared song row overlays play/pause on the artwork itself on
        hover (always visible for whichever track is actually current) instead
        of a separate always-on circular button beside it
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      c0c5d56c
  2. 28 Aug, 2026 1 commit
  3. 23 Aug, 2026 2 commits
  4. 22 Aug, 2026 8 commits
  5. 19 Aug, 2026 1 commit
  6. 18 Aug, 2026 5 commits
  7. 16 Aug, 2026 5 commits
    • Aryan Noshirvnai's avatar
    • Aryan Noshirvnai's avatar
      Restructure Roadmap: split "what's next" into Backend/Frontend, each item with a status · f9c51957
      Aryan Noshirvnai authored
      Replaces the old Now/Next/Ideas/QOL columns with two lists - Backend and
      Frontend - so backend work (currently the priority; UI/UX is paused) is
      easy to see at a glance instead of interleaved with frontend items.
      
      Every item now carries a status instead of being a flat bullet:
      - Ready to start - clearly scoped, no blockers
      - Needs design - the idea is real but the approach isn't decided yet
        (e.g. Discovery->Library has no audio file to actually save; Discovery's
        confidence score is buried in a string for AcoustID and doesn't exist at
        all for Shazam matches)
      - Blocked - waiting on something else first (proxy-aware IP detection
        waits on a real load balancer existing; confirm dialogs wait on the
        backend delete endpoints landing)
      
      All prior items carried over, none dropped - "General QOL" folded into
      Frontend since every item in it already was frontend-only.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      f9c51957
    • Aryan Noshirvnai's avatar
      Add Playlist UI - the first item off the roadmap's "Next" column · 0f155d5e
      Aryan Noshirvnai authored
      Playlists have had a fully working backend (create, list, add-track) with
      zero frontend UI since much earlier in this project. Adds:
      
      - New page (/playlists, in nav): list playlists, create one inline, open
        one to see and play its tracks, back button to return to the list.
      - AddToPlaylistModal: a per-row action on the Library page to add a song
        to an existing playlist, or create a new one and add to it in one step -
        mirrors SongPicker's modal pattern. Stays open after a successful add so
        adding to several playlists doesn't mean reopening the picker each time.
      - Backend: new GET /playlists/{id} (stax_backend_api, separate commit) -
        the only endpoint actually missing; everything else already existed.
      
      Verified live end to end through the deployed proxy: create a playlist,
      add a real library song, fetch the playlist back with its track. Updated
      the Roadmap page to reflect this is done.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      0f155d5e
    • Aryan Noshirvnai's avatar
      Revert committing .env files - bake the correct default into code instead · d53c3623
      Aryan Noshirvnai authored
      Committing .env/.env.development/.env.production (previous commit) fixed
      the immediate symptom (fresh checkout had no working config) but broke a
      convention that exists for good reason: gitignoring .env means nobody has
      to judge whether a given line is sensitive before adding it. "Nothing in
      here is sensitive right now" is true but fragile - it only holds until
      someone adds a real secret to that file later without remembering the
      convention was bent for it.
      
      The actual problem was "a missing env override silently breaks the app
      with no error," not "the file isn't committed." Fixed properly: client.ts
      now defaults VITE_API_BASE_URL to '/api' (the same-origin proxy path both
      `vite dev` and `vite preview` already serve this app through) instead of
      requiring an env file to supply it - matching the pattern vite.config.ts
      already used for BACKEND_PROXY_TARGET. A fresh checkout now works
      correctly with zero env files at all, verified by rebuilding with none
      present and confirming '/api' is still what's baked into the bundle.
      
      .env/.env.development/.env.production deleted and re-gitignored;
      .env.example is back to being a pure template, documenting when you'd
      actually need to override either default (a different deployment
      topology), not real values to copy.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      d53c3623
    • Aryan Noshirvnai's avatar
      Stop gitignoring env config that holds no secrets - commit .env/.env.development/.env.production · 434f1a2e
      Aryan Noshirvnai authored
      .env, .env.development(.local), and .env.production(.local) have held zero
      actual secrets since the dev auto-login token pair was removed earlier
      today - just a backend URL and a proxy target, neither sensitive (the
      backend URL is already visible in the compiled JS bundle regardless).
      Gitignoring them anyway meant a fresh checkout had no working config at
      all, and specifically meant .env.development.local/.env.production.local
      (the overrides that route API calls through vite's same-origin proxy
      instead of an absolute http:// URL, avoiding mixed-content blocking) could
      silently go missing with zero server-side signal - exactly the failure
      mode that caused two separate "nothing works" incidents today.
      
      Renamed the two .local overrides to .env.development/.env.production
      (Vite's convention for committed, mode-specific config, as opposed to
      .local's convention for gitignored personal overrides) and committed all
      three files for real. *.local stays gitignored for genuine personal
      overrides (e.g. .env.local) going forward. .env.example now documents that
      the real values are already committed, not something to copy by hand.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      434f1a2e
  8. 15 Aug, 2026 12 commits
    • Aryan Noshirvnai's avatar
      Fix mixed-content-blocked API calls in the production build + harden auth-failure recovery · a631b91b
      Aryan Noshirvnai authored
      Two compounding bugs behind "cannot sign in" / protected pages showing a
      blank page instead of prompting to log in:
      
      1. The production build (vite build, mode=production) doesn't read
         .env.development.local - only .env - so it baked in the raw
         http://144.76.210.145:8000 absolute URL instead of the /api proxy path.
         Since the page is served over https:// (via vite preview, see
         stax_dev_mode_is_the_real_slowness in project memory), the browser
         silently blocked every single fetch as mixed content - no server-side
         error, just every API call failing client-side. Added
         .env.production.local (gitignored, documented in .env.example so a
         fresh checkout doesn't regress) with the same /api override
         .env.development.local already used for dev mode.
      
      2. AuthContext's role-fetch effect only recognized a clean 401 ApiError as
         "not authenticated" - a mixed-content-blocked fetch throws a raw
         TypeError instead, which the old check didn't recognize, so `role`
         stayed null forever and RequireRole rendered a blank page indefinitely
         instead of ever redirecting to /login. Now only a 5xx (a transient
         server hiccup) is treated as "stay logged in, don't overreact" -
         everything else, including a network-level failure, is treated as "not
         authenticated" so the user always gets a login prompt instead of
         silence.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      a631b91b
    • Aryan Noshirvnai's avatar
      Remove the dev auto-login shortcut - it kept going stale and presenting as "site is slow" · 9d69f811
      Aryan Noshirvnai authored
      VITE_DEV_ACCESS_TOKEN/VITE_DEV_REFRESH_TOKEN was a single refresh token
      baked into .env and shared across every consumer (every dev session, every
      test run, every stray curl). Refresh tokens are single-use/rotating by
      design - the instant any one consumer used it, the backend rotated it and
      the file's copy went dead for everyone else, with no way to keep a static
      file in sync with a rotating secret. Confirmed live in the backend log:
      the real browser session was stuck looping GET /auth/me -> 401 -> POST
      /auth/refresh -> 401 on every page load, which is what "still very slow"
      actually was - not a performance bug, an auth bug that looked like one.
      
      Regenerating the pair (done twice already this session) only delays the
      same failure. Removed the mechanism entirely: isAuthenticated's initial
      value now comes straight from whatever's already in localStorage, exactly
      like a real logged-in user. Real username/password login (shipped earlier
      today) replaces the dev shortcut with no such failure mode - log in with
      dev-test-user / StaxDev2026! instead.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      9d69f811
    • Aryan Noshirvnai's avatar
      Stream audio directly with a token query param instead of downloading a blob first · 27f06c50
      Aryan Noshirvnai authored
      Matches the backend fix: every fetchXStreamUrl (library, soundmarks, posts,
      live-location, rooms) used to fetch the entire audio file as a blob before
      handing <audio> a src, since a plain <audio src="..."> can't send an
      Authorization header - so playback couldn't start until the whole file had
      downloaded, and seeking didn't work at all. They now return a direct URL
      (api/client.ts's new buildStreamUrl, token as ?token=) that the browser
      streams natively - playback starts after the first buffered chunk, and
      seeking uses real Range requests. Removed the now-dead objectUrlRef/
      revokeObjectURL bookkeeping from PlayerContext.tsx.
      
      Also adds a General QOL column to the Roadmap page (streaming fix, plus
      grounded gaps found while looking: no volume control, no global error
      boundary, no offline handling, inconsistent loading states, playback state
      not persisted across reloads) and updates test counts.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      27f06c50
    • Aryan Noshirvnai's avatar
      Send a real access token to the Rooms websocket instead of a bare user_id · eac69cde
      Aryan Noshirvnai authored
      Matches the backend fix: connectToRoom() now takes the access token
      (getAccessToken() from RoomView) instead of a client-known userId, since
      the server verifies it before accepting the connection rather than trusting
      whatever id is passed. getCurrentUserId() (api/jwt.ts) is still used for
      local "is this me" UI comparisons only - never sent back as a trust claim;
      updated its comment, which was stale since Channels' own auth fix.
      
      Roadmap updated to reflect both security gaps are now fixed.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      eac69cde
    • Aryan Noshirvnai's avatar
      Fix dev proxy targeting the box's own public IP instead of loopback · 9958e8e1
      Aryan Noshirvnai authored
      vite.config.ts's BACKEND_PROXY_TARGET defaulted to the machine's public IP
      even though vite and the backend always run on the same host - every API
      call round-tripped through Hetzner's network via NAT hairpin instead of a
      plain loopback call. That's the same network path that already caused a
      full outage earlier in this project; it happened to still work here, but
      made every request hostage to cloud routing/firewall behavior it never
      needed to depend on. Default is now 127.0.0.1, override via
      BACKEND_PROXY_TARGET if the backend ever runs elsewhere.
      
      Also documents in .env.example that the dev auto-login token pair is
      inherently one-shot (refresh tokens rotate/single-use) and will go stale on
      its own - that staleness, not this proxy issue, was what actually produced
      "pages take very long to load" (two dead round trips - /auth/me,
      /auth/refresh - before bouncing to /login on every fresh page load).
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      9958e8e1
    • Aryan Noshirvnai's avatar
      Switch login to username/password; Telegram becomes account-linking, not auth · da534d8e
      Aryan Noshirvnai authored
      Login.tsx is now a plain username/password form (with a register toggle)
      instead of the two-step Telegram phone/code flow - completeLogin() and the
      redirect-to-original-destination logic are unchanged, only how tokens get
      obtained. api/auth.ts's requestCode/login are renamed to
      requestTelegramCode/linkTelegram and point at the backend's new
      /auth/telegram/* paths, reflecting that Telegram is for linking an account
      (for chat-scanning music-tagging) rather than signing in. Roadmap updated to
      match.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      da534d8e
    • Aryan Noshirvnai's avatar
      Add /roadmap: the engineering status audit, viewable in-app · 50bce471
      Aryan Noshirvnai authored
      Ports the published roadmap (full feature-by-feature audit: what's
      functional, what's built but unreachable, and the two active security
      gaps in /remix and the Rooms websocket) into the app itself at
      /roadmap, gated behind super_admin like the Admin panel - it names
      specific active vulnerabilities in detail, so it isn't something to
      leave reachable by a plain logged-in user. Linked from the header
      alongside Business/Admin.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      50bce471
    • Aryan Noshirvnai's avatar
      Add real Telegram phone/code login, replacing the dev-only auto-auth gap · be345ade
      Aryan Noshirvnai authored
      Nothing but the dev account could ever use this app - ProtectedRoute and
      RequireRole just showed a static "not authenticated" message with no
      way forward. Adds a real two-step login screen (phone -> code, via the
      backend's existing /auth/request_code + /auth/login, unchanged) and
      wires it in as the actual destination: both guards now redirect to
      /login (preserving the originally-requested page via router state) and
      land back where the user was trying to go, matching a normal auth flow
      instead of a dead end.
      
      Also fixes a real race this surfaced during live testing: the dev-only
      auto-login bootstrap ran in a useEffect, which only fires *after* the
      first render. ProtectedRoute's brand-new <Navigate> redirect renders
      before that effect ever gets a chance to run, so isAuthenticated was
      still false on the very first paint - every fresh dev-mode load bounced
      through /login before the bootstrap could authenticate it, sometimes
      stranding the session there since flipping isAuthenticated true a
      moment later doesn't undo an already-completed redirect. Moved the
      bootstrap into the isAuthenticated state's lazy initializer instead, so
      it runs synchronously before the first render - the same reason a real
      user's already-stored token doesn't have this problem.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      be345ade
    • Aryan Noshirvnai's avatar
      Redesign GeoDrops into live location sharing (was: one-off song pins) · 558c6513
      Aryan Noshirvnai authored
      Replaces the "drop a specific song at this exact point, once" model
      with a live broadcast: share your position and whatever you're
      currently playing, updated automatically as you move or switch songs,
      visible to anyone nearby while you're sharing. Matches the backend's
      GeoDrop -> LiveLocation redesign.
      
      - "Share my live location" toggle: starts watchPosition, pushes an
        update on every meaningful location/song change, plus a periodic
        heartbeat (keeps the row from expiring server-side while nothing's
        changed) - matching the backend's staleness-expiry approach, since a
        closing tab can't reliably notify the server with an authenticated
        request on unload.
      - Nearby list now live-updates on a short poll, not just on demand.
      - New: "Play my geo playlist" - shuffles everyone nearby's current song
        into the shared player's queue (Fisher-Yates, not the common biased
        Array.sort(() => Math.random() - 0.5) shuffle) and starts playing.
      - Only broadcasts a song when it's a real LibrarySong reference
        (Soundmarks/Rooms/Posts-sourced playback uses synthetic negative ids
        for player identity, not something safe to send as song_id).
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      558c6513
    • Aryan Noshirvnai's avatar
      Add Posts: song + remix-reply feed, previously backend-only with no UI · dd72364f
      Aryan Noshirvnai authored
      Posts had full backend support (create, remix as a reply, fetch a
      recursive remix tree) but nothing in the frontend ever called any of
      it - no feed, no way to browse or discover a post at all.
      
      New page at /posts: a feed of recent posts (song + caption + author +
      remix count), a composer to post a song, and a tree view for an
      individual post showing every remix branching off it with a "Remix
      this" action at each node. Playback goes through the shared player via
      the new cross-user post-stream endpoint.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      dd72364f
    • Aryan Noshirvnai's avatar
      Add GeoDrops: build a UI for the previously-unused drop-a-song feature · 93237997
      Aryan Noshirvnai authored
      GeoDrop had full backend support but zero UI anywhere - like a StreetPass
      drop, not a Soundmark: a one-off song pin left at your exact GPS
      position, no owner, no moderation, no persistent place to attach to
      (distinct from Soundmarks' community tier, which is about a named,
      persistent location accumulating votes over time).
      
      New page at /drops: request geolocation (same pattern as Nearby), drop
      a song at your exact position via the existing SongPicker, and see/play
      nearby drops sorted by distance through the shared player.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      93237997
    • Aryan Noshirvnai's avatar
      Stop sending user_id/owner_id to channels endpoints (backend fix) · d9a22bf3
      Aryan Noshirvnai authored
      Matches the backend fix removing the user_id/owner_id impersonation
      hole - createChannel/followChannel/unfollowChannel no longer take an
      id param since the backend derives it from the auth token now. UI
      display (hiding the follow button on your own channel) still uses
      getCurrentUserId() locally, just no longer sends it to the server.
      
      Also adds the first test coverage for the Channels page - there was
      none before this.
      Co-Authored-By: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
      Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
      d9a22bf3