- 12 Aug, 2026 2 commits
-
-
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
-
Aryan Noshirvnai authored
Root cause of "won't ask for location permissions": the Geolocation API refuses to run at all on a plain http:// origin (only https:// and localhost count as a "secure context") - Chrome fails immediately with PERMISSION_DENIED before ever showing the actual permission prompt, which is indistinguishable from a real user decline. The dev webapp was served at http://144.76.210.145:5173, so this affected every visitor, not just one browser/device. Fixed by serving the dev server over https:// via a self-signed cert (@vitejs/plugin-basic-ssl, zero config). You'll see a one-time "your connection isn't private" warning in the browser the first time you load it now - click through (Advanced -> Proceed) since it's a self-signed cert; after that geolocation works normally. A real production deploy will need a proper cert via an actual domain name (Let's Encrypt or similar) - self-signed is only acceptable here because we're the ones clicking through our own warning. Also fixed a second, smaller bug found while diagnosing this: the insecure-origin failure was being shown to users as "location access was denied - allow it in your browser settings," which is wrong and unactionable (no browser setting fixes an insecure origin). Nearby.tsx now checks window.isSecureContext upfront and shows an accurate message instead of letting it fail through as a fake permission denial. Verified live: confirmed the exact failure via a real (non-Playwright- granted) browser session hitting the old http:// URL - isSecureContext false, getCurrentPosition immediately erroring with "Only secure origins are allowed" - then confirmed it resolves cleanly over the new https:// URL (isSecureContext true, real geolocation result). 1 new test for the insecure-origin message; 84 webapp + 144 backend tests passing overall. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
- 11 Aug, 2026 2 commits
-
-
Aryan Noshirvnai authored
Location picker (admin panel create/edit form): address-search autocomplete backed by the new backend geocode proxy, plus an embedded Leaflet/OpenStreetMap map - search, click, or drag the pin to set a soundmark's coordinates. Replaces raw lat/lon number inputs. Map screen + live location (Nearby page): a real map showing a live-updating "you are here" dot (tracks the existing watchPosition feed) and pins for whatever soundmarks are currently in range, alongside the existing text/card view - not a replacement for it. Song proposals + voting (Nearby page): shows every proposal for the detected soundmark with vote counts, a "Propose a song" button (reuses the existing SongPicker), and a vote toggle per proposal. Soundmarks with no anthem yet now show a "propose one" prompt instead of a play button, so there's an actual path to making the first proposal for a brand new soundmark. OpenStreetMap over Google Maps per explicit choice - no API key/ billing setup required. leaflet + react-leaflet added; the default marker icon bundler quirk (broken image paths once bundled - a known issue with every bundler) is patched once via src/lib/leafletIcons.ts. 10 new tests (LocationPicker search/selection, SoundmarkMap smoke tests, Nearby proposal/vote/propose flows and the "no anthem yet" state) - 83 webapp tests passing overall. Verified live end-to-end with a real Nominatim geocode search ("Eiffel Tower, Paris") and real Chromium geolocation mocking rather than stubbed data - the whole loop (create -> geocode -> place pin -> assign anthem -> detect via live location -> see it on the map -> view proposals) worked with zero console errors. Co-Authored-By:Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Frontend for the new backend feature - a Soundmark is a curated "anthem" tied to a real place, either a super-admin-curated landmark or a business's location. Three new surfaces: - Nearby (Soundmarks nav item): uses the browser Geolocation API (getCurrentPosition + watchPosition, so it keeps tracking as you move) to find and play the anthem at your current spot, through the same shared player used everywhere else in the app. - Business panel (/business, business_admin+): soundmarks you own, each with a "Change anthem" picker spanning your personal library and a new cross-user "public library" search. - Admin panel (/admin, super_admin only): full CRUD for every soundmark regardless of owner, plus user role management (promote/demote business_admin). AuthContext now fetches the caller's role via /auth/me and exposes isBusinessAdmin/isSuperAdmin; a super admin passes both. RequireRole gates the two new routes and Layout conditionally shows Business/ Admin links in the header. PlayerContext gained an optional `streamUrl` override on PlayableSong so a soundmark's anthem can stream via its own cross-user-safe endpoint instead of the personal-library one, without touching the player's core logic. Caught and fixed a real accessibility bug via testing: the header's Business/Admin/Log out controls had their icon aria-hidden and their label CSS-hidden on mobile, leaving them with no accessible name at all - fixed with explicit aria-labels. Verified with a real end-to-end Playwright run (not just unit tests): logged in as super admin, created a soundmark through the actual UI, assigned an anthem, then used Chromium's real geolocation mocking to walk into it from the Nearby page and play it through the shared player - zero console errors throughout. 82 total tests passing (11 new: RequireRole, Nearby, BusinessPanel, AdminPanel, plus AuthContext role coverage). Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
- 10 Aug, 2026 11 commits
-
-
Aryan Noshirvnai authored
Lyrics no longer push to a separate screen with its own back button - tapping the lyrics bar crossfades the same central area between cover art and lyrics text in place, with the header, title, seek bar, and transport controls staying exactly where they are the whole time. Queue stays a dedicated screen (jumping to an arbitrary track is a genuinely different action), reached via its own icon. Library rows and the Upload result card now play on tap anywhere in the row/card, not just the small icon button - the icon is a status indicator inside the same button now, not a separate control. Verified end-to-end against the real running app with Playwright (not just unit tests): tap-to-play on both Library and Upload, the fluid lyrics crossfade, queue jump, shuffle/repeat, and re-uploading the same file twice correctly staying at one library row instead of creating a duplicate. Zero console errors across a full click-through of every page at both mobile and desktop viewports. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Replaced the Cover/Lyrics/Queue tab switcher with Spotify's actual pattern: cover art is always the primary now-playing screen, and Lyrics/Queue are separate screens reached via a lyrics preview bar and a queue icon respectively, sliding in from the right with their own back button (push-navigation, not tab-switching). The lyrics preview bar only appears when the track actually has lyrics, matching Spotify rather than linking to a dead-end empty screen. Escape now backs out one level at a time (Lyrics/Queue -> cover -> close), and picking a track from the Queue screen returns you to the now-playing screen instead of leaving you on the list. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Verified against a real headless browser this round (Playwright) - several of these were found by actually looking at the rendered UI, not just reasoning about the code: - Failed plays (bad stream, network error, blocked autoplay) now surface a dismissible toast instead of silently clearing the song with no feedback. Caught and fixed a real bug here: the toast's first version rendered on top of the page header, hiding it - it now sits just below it. - FullPlayer gains a third "Queue" tab (tap any track to jump to it), plus shuffle and repeat (off/all/one) controls in the transport row. Repeat-one only affects natural track-end, not the Next button, matching standard player behavior. - Loading state gets real visual feedback: a pulsing cover art and a "Loading…" label in place of the time readout. - Visual composition pass: a blurred, dimmed cover-art backdrop fills the dead space around the centered album art (Spotify/Apple Music convention), the Cover/Lyrics/Queue tab icons are now symmetric, and a hairline border separates the scrollable lyrics panel from the title block below it so the fade-out text no longer visually bleeds into it. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
- FullPlayer and NowPlayingBar now animate in/out (slide + fade) via a shared useMountTransition hook instead of snapping in/out, with motion-reduce fallbacks for users who've asked for less motion. - Lyrics moved from a small icon toggle into a proper Cover/Lyrics tab switcher (real tablist/tab/tabpanel roles, arrow-key navigation, crossfade between panels), with larger type, a scroll fade mask, and a real empty state for tracks with no lyrics. - FullPlayer is now a proper dialog: aria-modal, focus moves to it on open and back to the control that opened it on close, Escape closes it, and background scroll is locked while it's open. - Seek bar reskinned as a real <input type="range"> (keeps native keyboard/pointer/AT support) with a progress-fill gradient and a hover-revealed thumb, plus aria-valuetext with formatted times. - Added a visible focus-visible ring to the shared Button component and to the player's own raw buttons (WCAG 2.4.7). Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
PlayerContext now tracks a queue (whatever list a song was played from) plus playback progress/duration, and exposes next/previous that step through it - auto-advancing on track end, restarting the current track on "previous" if more than a few seconds in, same as Spotify. Tapping the mini-player (NowPlayingBar) opens a full-screen view with a seek bar, transport controls, and a lyrics toggle backed by the lyrics the backend already tags songs with. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Uploaded tracks are already added to the user's library server-side; this makes them playable immediately via the same persistent player used on the Library page, instead of each page owning its own audio element and only offering a raw download link. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
Nothing existed before this - first tests for the project. Vitest + React Testing Library (jsdom environment), all explicit imports (no reliance on injected globals, even though globals: true is set). Coverage, prioritized by actual risk rather than 100%-for-its-own-sake: - client.ts (highest value): auth header injection, json/form body serialization, error parsing, and - the trickiest logic in the app - the 401-refresh-and-retry flow, including that concurrent 401s share a single in-flight refresh instead of each firing their own, and that a failed refresh doesn't loop. - jwt.ts: real base64url decode (not a simplified stand-in), including the -/_ substitution path standard base64 doesn't need. - AuthContext: the dev auto-login bypass specifically - doesn't auto-authenticate without configured tokens, does with them, doesn't clobber an already-real session, and logout actually clears state. Uses vi.resetModules() + dynamic import per test since DEV_ACCESS_TOKEN is captured as a module-level const at import time, so env stubs set after the module already loaded would silently do nothing. - UI primitives (Button/ProgressBar/EmptyState): rendering + interaction. - Library page: empty state, list rendering, error display, and the play/pause flow including that pausing doesn't re-fetch the stream. jsdom needed two stubs in test/setup.ts: HTMLMediaElement.play/pause (Library calls these for real) and URL.createObjectURL/revokeObjectURL (jsdom has no real object URL storage) - both throw "Not implemented" without them. .gitlab-ci.yml: deliberately minimal after everything the backend's pipeline taught this session - no Docker, no apt-get, just npm ci -> tsc -> vitest -> vite build on node:20-slim. Verified locally: npm ci works cleanly against the lockfile (real risk after many incremental npm installs), and the exact CI command sequence passes end to end. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
Aryan Noshirvnai authored
fetch() has no upload-progress equivalent to onUploadProgress, so uploadDirect (music.ts) and createRemix (remix.ts) switch to XMLHttpRequest for real byte-level transfer progress via xhr.upload.onprogress - the only way to get this data. New ProgressBar component: shows real 0-100% during the transfer, then switches to an indeterminate/pulsing state once the transfer completes and the server's identify/tag pipeline takes over (which has no progress reporting of its own to report, unlike /remix's job-status polling). Remix already had a stage-based progress bar for job polling but nothing during the initial upload itself, which can be slow for up to 5 files - now shows real upload progress first, then "Starting…" until the first poll lands, then hands off to the existing stage bar once real status data arrives. Typechecks clean, production build succeeds, dev server HMR'd cleanly. Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
- 09 Aug, 2026 2 commits
-
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-
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:
Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
-