- 31 Aug, 2026 1 commit
-
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
- 28 Aug, 2026 1 commit
-
-
Aryan Noshirvnai authored
Confidence meter (small bar + %) and source label render on each Discovery history row when the identification source produced a real score. Roadmap updated to reflect today's backend decisions: Discovery app-wide library matching and confidence field marked done, Telegram fully-automatic scanning marked as an intentional non-goal rather than deferred, reverse proxy and media-storage-optimization tracked with their confirmed direction, and the Postgres/PostGIS migration added as a tracked item (previously discussed but never written down). Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
- 23 Aug, 2026 2 commits
-
-
Aryan Noshirvnai authored
Implements the cobalt/periwinkle Stitch design across every page: new Tailwind v4 @theme token system, Space Grotesk, reskinned UI primitives, sidebar/bottom-nav shell. Rooms+Channels+Posts now share one Social tab and Nearby+GeoDrops now share one Soundmarks tab, each with an in-page sub-tab switcher, instead of five separate top-level nav destinations. Login, Playlists, and Telegram linking had no Stitch mockup, so they were designed to match the same system. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Lets a user audition a found chat song through the shared player before deciding whether to save it, via the new backend preview stream endpoint.
-
- 22 Aug, 2026 8 commits
-
-
Aryan Noshirvnai authored
Matches the backend no longer returning a raw download_url. The finished remix was already being added to the library automatically - this just stops offering a way around that (a direct file download) and instead confirms it's there with a link to view it. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Covers everything shipped this pass: Discovery history links to existing library songs (playable, not just informational), Library's universal song+album search, and Remix now sourcing exclusively from the Stax library instead of local file uploads (plus genre metadata feeding into the planning prompt). Test counts and zero-coverage page count updated; Remix and Discovery both got their first tests. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Replaced the file-drop control with RemixSongPicker - a multi-select (up to 5) modal over the caller's own library, matching how library songs already get better treatment server-side (skips a fresh, slower, less reliable identify_audio() call and uses verified title/artist/genre directly instead). createRemix() dropped its whole XHR/upload-progress path along with it - there's no file transfer left to track progress on, just a plain form POST with prompt + library_song_ids. First tests for Remix.tsx (previously zero coverage), plus tests for the new RemixSongPicker component. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Discovery history now shows a real Play button (not just a static title/artist) for any match that's already in the caller's own library, wired into the same PlayerContext/toggle pattern the Library page uses. Library page gets a search box: songs and albums (a derived grouping, click to expand and play its tracks) as separate result sections while searching, replacing the plain list rather than filtering it in place. Factored the row markup into a shared SongRow component - it's now reused by the full list, search's Songs section, and expanded album tracks instead of being duplicated three times. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
autoGainControl (sensitivity - boosts a quiet/distant snippet) and noiseSuppression (filters steady background noise) are now requested on the getUserMedia call, plus a 44.1kHz sampleRate hint since some phones default the mic to a voice-optimized rate that hurts music fingerprint matching. echoCancellation is explicitly off - it's built for cancelling a device's own call/speaker output, not relevant here, and can color music it doesn't need to touch. Chose this over any server-side denoising step deliberately: these are real-time browser/WebRTC audio-pipeline features applied during capture, not post-processing, so they add zero time on top of the fixed 5-second recording window - the exact opposite of what a backend audio-processing pass would do to the "must stay ~5s total" budget. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
- 19 Aug, 2026 1 commit
-
-
Aryan Noshirvnai authored
Moved out of Backend TODO into a new Telegram Bulk Scan done-group, narrowed the remaining TODO item to specifically mean fully-automatic scanning (deliberately deferred, not blocked - needs a different architecture than on-demand). Unblocked the matching frontend TODO item now that the backend endpoints exist. Updated test/feature counts. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
- 18 Aug, 2026 5 commits
-
-
Aryan Noshirvnai authored
/auth/telegram/login now 412s instead of a generic error when the account has a cloud password enabled. TelegramLink.tsx catches that specifically and drops into a new password step (submitTelegramPassword) instead of showing "that code didn't work" for something the code never had anything to do with. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
The chat-detail view listed found songs as read-only metadata with no way to actually keep them. It now calls the existing /music/tag pipeline per song (Save button -> spinner -> Saved, with the real identified title/artist swapped in), so browsing a linked chat can actually grow the user's library instead of just previewing it. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
/auth/telegram/login now requires the caller to already be authenticated and returns a simple confirmation instead of a fresh token pair (see the stax_backend_api commit fixing it to actually link to the caller instead of creating a disconnected identity). Updated the return type and dropped auth: false accordingly - no UI calls this yet, so nothing else changes. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Replaces the old feature-card grid ("What we have") with two Done lists (Backend, Frontend), grouped by feature area, sitting directly above the existing Backend/Frontend to-do columns - everything backend-related now lives under one heading, everything frontend under the other, instead of being interleaved per feature. Ideas that need work from both sides are now two separate line items instead of one combined one, each with its own status: - Discovery -> Library: backend needs to source a real playable file (needs design); frontend action to save one is blocked on that. - Discovery confidence feedback: backend needs a real queryable field (needs design); frontend display of it is blocked on that. - Telegram chat scanning: backend design (needs design); frontend approve-chats/results UI is blocked on that. Reflects this session's backend work: delete endpoints and Discovery rate limiting moved from Backend to-do into Backend done; their frontend counterparts (delete buttons, confirm dialogs) flipped from blocked to ready now that the backend they were waiting on exists. Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
- 16 Aug, 2026 5 commits
-
-
Aryan Noshirvnai authored
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
- 15 Aug, 2026 14 commits
-
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Rooms had chat, reactions, and "request aux" working, but the DJ had no way to actually pick a song or hand off the aux, and now_playing_changed was never even handled - the core "pass the aux" mechanic wasn't reachable from the UI at all. Adds a now-playing card (streams via the shared player, same pattern as Soundmarks), a song picker for the DJ (reuses the existing SongPicker), a Pass Aux button, and visible feedback for server-side errors (e.g. "only the DJ can do that"). Also adds the first frontend test coverage for any social feature - Rooms/RoomView had none before this. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Two compounding bugs, both traced from live "Token expired on Library" / "blank Admin panel" reports: 1. AuthContext never recovered from a failed token refresh. isAuthenticated only ever got set to true (on mount or dev auto-login); nothing set it back to false when apiFetch's own refresh-and-retry also failed and silently cleared localStorage out from under it. role stayed null forever in that state, and RequireRole renders nothing while role is null (to avoid flashing "access denied" during the real initial fetch) - so a stale/expired token produced a permanently blank page instead of a "not authenticated" message. Now a 401 from /auth/me (meaning the retry already failed) flips isAuthenticated back to false so the UI recovers on its own. 2. AuthContext captured VITE_DEV_ACCESS_TOKEN/VITE_DEV_REFRESH_TOKEN as module-level constants at import time, so every test file's vi.stubEnv() calls in beforeEach (all of them except AuthContext's own tests, which knew to work around this with vi.resetModules()) were silent no-ops. With genuinely valid dev tokens now in .env, this started making real network calls to the live backend during `npm test` and made Nearby.test.tsx flaky (real role resolved to super_admin, so the real "Business" nav link collided with a soundmark's own tier badge text). Reading the env vars fresh inside the effect instead of as frozen constants fixes it for every test file at once, not just the ones edited here. Also regenerated .env's dev tokens via the real auth issuance path (_issue_tokens) so they're backed by an actual refresh_tokens DB row, not just a bare unregistered JWT. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
- 14 Aug, 2026 1 commit
-
-
https://<ipAryan Noshirvnai authored
The domain+Caddy+Let's Encrypt approach worked once the cloud firewall allowed ports 80/443 through, but the simpler direct <ip>:port setup (self-signed cert via basicSsl, one-time browser click-through) is preferred now that the ports are confirmed open - Caddy is stopped and disabled rather than removed, in case it's needed again. The mixed- content /api proxy from the previous fix is unaffected and still required, since the backend itself remains plain http://. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
- 12 Aug, 2026 2 commits
-
-
Aryan Noshirvnai authored
The Geolocation fix made the dev server https://-only, but the backend it talks to is still plain http:// - browsers hard-block that as mixed content for fetch/XHR/WebSocket with no user override, so every API call silently failed once loaded over the required https URL. Adds a same-origin proxy in vite.config.ts (dev only) so the browser only ever talks to https://<dev server>/api/..., with the actual http:// hop happening server-side in Node where mixed-content rules don't apply. VITE_API_BASE_URL is switched to the relative "/api" for dev via .env.development.local (gitignored, not committed); production builds are unaffected and still use the real absolute URL from .env. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Major locations get one super-admin-set anthem; businesses get an owner-managed playlist; community spots stay fully vote-driven with the top 3 proposals shown. Suggestions on major/business tiers go through a review queue (CRM) instead of applying immediately. Also switches both maps from default OSM tiles to CartoDB's free dark basemap with custom tier-colored pin markers for a cleaner, more minimal look. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-