Commit 13ad9396 authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Roadmap: Discovery playback matching, universal search, Remix from library

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: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent b4f425df
Pipeline #1126 failed with stage
......@@ -41,7 +41,7 @@ describe('Roadmap', () => {
expect(screen.getByText('Channels: vibe sets, stories, showcase screens')).toBeInTheDocument()
expect(screen.getByText('Delete buttons for library songs, playlists, and playlist tracks')).toBeInTheDocument()
// A "needs design" idea split into its own backend half and frontend half.
expect(screen.getByText('Discovery → Library: source a real playable file for a liked match')).toBeInTheDocument()
expect(screen.getByText('Discovery → Library: source a real playable file for a match with no existing library song')).toBeInTheDocument()
expect(screen.getByText('Wire a "save to library" action for liked Discovery matches')).toBeInTheDocument()
expect(screen.getAllByText('Ready to start').length).toBeGreaterThan(0)
expect(screen.getAllByText('Needs design').length).toBeGreaterThan(0)
......
......@@ -81,6 +81,7 @@ const BACKEND_DONE: DoneGroup[] = [
area: 'Library & Playlists',
items: [
'Upload, tag, stream (Range-request capable), search, lyrics fetch',
'Universal search: songs + albums (a derived (album, artist) grouping of the caller\'s own songs, not a separate table) matching title/artist/genre or album/artist respectively',
'Playlists: create, list, detail with ordered tracks, add track',
'Delete: songs (+ file on disk), playlists (+ their tracks), single playlist tracks - all owner-scoped',
],
......@@ -90,11 +91,16 @@ const BACKEND_DONE: DoneGroup[] = [
items: [
'Real pipeline: Demucs stem separation, BPM/key detection, Gemini-planned arrangement, mastering',
'Auth-scoped end to end - job status and library-song sourcing both scoped to the owner (was an IDOR)',
'Library-sourced only now, not raw uploads - skips a fresh identify_audio() call and feeds the already-known title/artist/genre into the planning prompt instead',
],
},
{
area: 'Discovery',
items: ['Identify (Shazam + AcoustID), 24h history, swipe (like/dismiss)', 'Rate limited: 20 identify calls per user per 10 minutes'],
items: [
'Identify (Shazam + AcoustID), 24h history, swipe (like/dismiss)',
'Rate limited: 20 identify calls per user per 10 minutes',
'History links a match to the caller\'s own library by title+artist when one already exists (computed live on read, not stored) - makes it playable instead of just informational',
],
},
{
area: 'Telegram Bulk Scan',
......@@ -109,9 +115,9 @@ const BACKEND_DONE: DoneGroup[] = [
const BACKEND_TODO: WorkItem[] = [
{
item: 'Discovery → Library: source a real playable file for a liked match',
item: 'Discovery → Library: source a real playable file for a match with no existing library song',
status: 'needs-design',
note: 'DiscoveredSong has no audio file at all today - ambient ID fingerprints a mic snippet then discards it. Needs a real answer for where a playable file would come from before there\'s anything for the frontend to save.',
note: 'A Discovery hit is playable now if it happens to match something already in the caller\'s library by title+artist (shipped 2026-08-22) - this item is specifically the remaining case: no match exists yet. DiscoveredSong has no audio file at all - ambient ID fingerprints a mic snippet then discards it. Needs a real answer for where a playable file would come from before there\'s anything to save for a genuinely new find.',
},
{
item: 'Give Discovery candidates a real, queryable confidence field',
......@@ -152,13 +158,27 @@ const FRONTEND_DONE: DoneGroup[] = [
{ area: 'Channels', items: ['List + follow/unfollow UI only - vibe sets/stories/showcase have no UI yet'] },
{ area: 'Posts', items: ['Feed, composer, recursive remix-tree view with "remix this" at every node'] },
{ area: 'Live Location', items: ['GeoDrops page: share toggle, live nearby list, cross-account playback, geo-playlist shuffle-play'] },
{ area: 'Library & Playlists', items: ['Library page with playback', 'Playlists page: list, create, view tracks, playback', 'Add-to-playlist modal from the Library page (add existing or create-and-add)'] },
{ area: 'Remix', items: ['Upload / progress / poll UI, end to end'] },
{
area: 'Library & Playlists',
items: [
'Library page with playback',
'Universal search box: separate Songs and Albums result sections while searching (an album expands to show/play its tracks) - replaces the plain list rather than filtering it in place',
'Playlists page: list, create, view tracks, playback',
'Add-to-playlist modal from the Library page (add existing or create-and-add)',
],
},
{
area: 'Remix',
items: [
'Song picker (up to 5, own library only, search-as-you-type) replaces the old local-file-upload control - no upload-progress UI needed anymore since nothing is uploaded',
],
},
{
area: 'Discovery',
items: [
'Automatic 5-second microphone listen (getUserMedia + MediaRecorder, pulsing/countdown animation) - falls back to the old file-drop control on browsers without mic support',
'Capture uses autoGainControl + noiseSuppression (real-time, zero added latency) for a cleaner/louder signal - deliberately not server-side denoising, which would add time on top of the fixed 5s window',
'History shows a real Play button for any match already in the library, wired into the same PlayerContext the Library page uses',
'24h history, swipe UI',
],
},
......@@ -181,19 +201,9 @@ const FRONTEND_TODO: WorkItem[] = [
note: 'Backend endpoints already exist and work - zero UI.',
},
{
item: "Wire remix's library-song linking into the composer UI",
status: 'ready',
note: 'Backend already accepts library_song_ids on POST /remix - the UI just never sends it.',
},
{
item: 'Library search box on the Library page',
status: 'ready',
note: 'POST /library/search already works, unused from the frontend.',
},
{
item: 'Test coverage for Upload and Remix pages',
item: 'Test coverage for the Upload page',
status: 'ready',
note: 'Discovery got its first tests 2026-08-22 alongside the automatic-listen rewrite. Upload and Remix are still zero - no blockers, just needs writing.',
note: 'Discovery and Remix both got their first tests 2026-08-22. Upload is the last page still at zero - no blockers, just needs writing.',
},
{ item: 'Volume control in the player', status: 'ready' },
{
......@@ -280,16 +290,16 @@ export function Roadmap() {
<Layout title="Status & Roadmap">
<p className="mb-8 max-w-2xl text-sm leading-relaxed text-neutral-400">
A full pass over both repos, split cleanly by backend vs. frontend - what's done, what's left, and what
every "needs design" idea actually requires from each side. Compiled 2026-08-15, updated through 2026-08-22.
every "needs design" idea actually requires from each side. Compiled 2026-08-15, updated through 2026-08-22 (later same day).
</p>
<div className="mb-10 flex flex-wrap gap-x-8 gap-y-4">
{[
['10', 'Feature areas'],
['0', 'Critical security gaps'],
['255', 'Backend tests'],
['192', 'Frontend tests'],
['2', 'Pages w/ zero tests'],
['263', 'Backend tests'],
['208', 'Frontend tests'],
['1', 'Pages w/ zero tests'],
].map(([n, l]) => (
<div key={l}>
<p className="text-xl font-bold tabular-nums text-white">{n}</p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment