Commit f9c51957 authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Restructure Roadmap: split "what's next" into Backend/Frontend, each item with a status

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
parent 0f155d5e
Pipeline #1094 canceled with stage
...@@ -34,8 +34,12 @@ describe('Roadmap', () => { ...@@ -34,8 +34,12 @@ describe('Roadmap', () => {
// "Soundmarks"/"Remix" also appear in the page nav, so scope to feature-card-only text. // "Soundmarks"/"Remix" also appear in the page nav, so scope to feature-card-only text.
expect(screen.getByText('Location-tied anthems, three tiers')).toBeInTheDocument() expect(screen.getByText('Location-tied anthems, three tiers')).toBeInTheDocument()
expect(screen.getByText('Stems, key/BPM detect, AI arrangement')).toBeInTheDocument() expect(screen.getByText('Stems, key/BPM detect, AI arrangement')).toBeInTheDocument()
expect(screen.getByText('Now')).toBeInTheDocument() expect(screen.getByText('Backend')).toBeInTheDocument()
expect(screen.getByText('Next')).toBeInTheDocument() expect(screen.getByText('Frontend')).toBeInTheDocument()
expect(screen.getByText('Ideas')).toBeInTheDocument() expect(screen.getByText('Delete endpoints for library songs, playlists, and playlist tracks')).toBeInTheDocument()
expect(screen.getByText('Channels: vibe sets, stories, showcase screens')).toBeInTheDocument()
expect(screen.getAllByText('Ready to start').length).toBeGreaterThan(0)
expect(screen.getAllByText('Needs design').length).toBeGreaterThan(0)
expect(screen.getAllByText('Blocked').length).toBeGreaterThan(0)
}) })
}) })
...@@ -120,54 +120,127 @@ const FEATURES: Feature[] = [ ...@@ -120,54 +120,127 @@ const FEATURES: Feature[] = [
}, },
] ]
const ROADMAP_COLUMNS: { title: string; sub: string; dot: string; items: string[] }[] = [ type WorkStatus = 'ready' | 'needs-design' | 'blocked'
const WORK_STATUS_STYLES: Record<WorkStatus, string> = {
ready: 'bg-emerald-500/10 text-emerald-400 border-emerald-500/30',
'needs-design': 'bg-amber-500/10 text-amber-400 border-amber-500/30',
blocked: 'bg-neutral-500/10 text-neutral-400 border-neutral-500/30',
}
const WORK_STATUS_LABEL: Record<WorkStatus, string> = {
ready: 'Ready to start',
'needs-design': 'Needs design',
blocked: 'Blocked',
}
function WorkStatusPill({ status }: { status: WorkStatus }) {
return (
<span
className={`shrink-0 rounded-full border px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide ${WORK_STATUS_STYLES[status]}`}
>
{WORK_STATUS_LABEL[status]}
</span>
)
}
interface WorkItem {
item: string
status: WorkStatus
note?: string
}
const BACKEND_TODO: WorkItem[] = [
{
item: 'Delete endpoints for library songs, playlists, and playlist tracks',
status: 'ready',
note: 'No DELETE exists for any of the three yet — straightforward owner-scoped CRUD, same pattern as everything else in library.py.',
},
{
item: 'Rate limit /auth/login against brute force',
status: 'ready',
note: 'Zero rate limiting on username/password login right now — reuse the same DB-backed AuthAttempt pattern already protecting /auth/telegram/request_code.',
},
{
item: "Rate limit Discovery's /discovery/listen identify endpoint",
status: 'ready',
note: 'Each call is a real Shazam + AcoustID request — currently uncapped per user.',
},
{
item: 'Surface real identify-confidence feedback in Discovery',
status: 'needs-design',
note: 'AcoustID candidates carry a score, but it\'s embedded in a source string ("AcoustID (72%)"), not a queryable field — and Shazam candidates carry no score at all. Needs a real schema decision, not just a passthrough.',
},
{
item: 'Discovery → Library: make "liked" actually save a playable song',
status: 'needs-design',
note: 'DiscoveredSong has no audio file at all today — ambient ID fingerprints a mic snippet then discards it. "Save to library" needs a real answer for where a playable file would come from.',
},
{
item: 'Telegram chat scanning — auto-scan approved chats, tag and save songs',
status: 'needs-design',
note: 'A materially bigger scan-everything design than the current one-chat-at-a-time /auth/telegram/chats/{id}/music lookup.',
},
{
item: 'Proxy-aware IP detection for both rate limiters',
status: 'blocked',
note: 'Blocked on this box sitting behind a real load balancer/reverse proxy — request.client.host is correct for the current direct-to-IP setup.',
},
]
const FRONTEND_TODO: WorkItem[] = [
{
item: 'Channels: vibe sets, stories, showcase screens',
status: 'ready',
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: 'Telegram linking UI (phone + code, attaches to the logged-in user)',
status: 'ready',
note: '/auth/telegram/request_code and /auth/telegram/login both already exist and work.',
},
{
item: 'Test coverage for Upload, Discovery, and Remix pages',
status: 'ready',
note: 'All three are zero right now — no blockers, just needs writing.',
},
{
item: 'Volume control in the player',
status: 'ready',
},
{
item: 'Global error boundary',
status: 'ready',
note: 'An unhandled render error currently white-screens the whole app with no recovery UI.',
},
{ {
title: 'Now', item: 'Consistent loading states across pages',
sub: 'Nothing critical open', status: 'ready',
dot: 'bg-emerald-400', note: 'Some pages show a spinner/skeleton, others just render empty until data arrives.',
items: [
'Security: /remix auth-gated + IDOR closed, room WebSocket verifies a real token — see "Recently fixed" above.',
'Real login screen — shipped as username/password, so the app finally works for someone other than the dev account.',
],
}, },
{ {
title: 'Next', item: 'Persist playback position/volume across a reload',
sub: 'Built, unreachable', status: 'ready',
dot: 'bg-amber-400',
items: [
'Channels: vibe sets, stories, showcase screens.',
'Discovery → Library — make "like" actually save the song.',
"Wire remix's library linking into the composer UI.",
'Library search box on the Library page.',
'Test coverage for Upload, Discovery, and Remix — all currently zero.',
'Telegram linking UI — phone number + code, attaches a session to the logged-in user so /auth/telegram/chats can actually be used from the app.',
],
}, },
{ {
title: 'Ideas', item: 'Confirm dialogs on destructive actions',
sub: 'Not started', status: 'blocked',
dot: 'bg-emerald-400', note: 'Blocked on the backend delete endpoints above landing first — only one destructive action (deleting a soundmark) even exists to confirm right now.',
items: [
'Delete/remove songs and playlist tracks — no endpoint exists yet either way.',
'Real "couldn\'t identify" feedback in Discovery — surface a confidence score instead of one generic error.',
"Rate-limit Discovery's identify endpoint the way auth's request_code already is.",
'Proxy-aware IP detection for the auth rate limiter before this sits behind a real load balancer.',
'Telegram chat scanning — auto-scan all or user-approved linked chats for music, tag and save straight into the library, instead of the current one-chat-at-a-time /auth/telegram/chats/{id}/music lookup.',
],
}, },
{ {
title: 'General QOL', item: 'Offline/connectivity-loss handling',
sub: 'Polish, not features', status: 'needs-design',
dot: 'bg-sky-400', note: 'A dropped connection just makes requests silently fail one at a time right now — needs a real UX decision, not just a passthrough.',
items: [
'Fixed: audio now streams directly instead of downloading the whole file first — see "Recently fixed" above.',
'No volume control anywhere in the player — always whatever the OS/browser last had it at.',
'No global error boundary — an unhandled render error white-screens the whole app with no recovery UI, not even a reload prompt.',
'No offline/connectivity-loss handling — a dropped connection just makes requests silently fail one at a time.',
"Loading states are inconsistent across pages — some show a spinner, others just render empty until data arrives.",
"Only one destructive action (deleting a soundmark) has a confirm dialog — worth an explicit pass once more delete endpoints exist (see Ideas).",
'Playback position/volume isn\'t remembered across a reload - every fresh page load starts silent from 0:00.',
],
}, },
] ]
...@@ -296,21 +369,29 @@ export function Roadmap() { ...@@ -296,21 +369,29 @@ export function Roadmap() {
<section> <section>
<div className="mb-3 flex items-center justify-between"> <div className="mb-3 flex items-center justify-between">
<h2 className="text-xs font-bold uppercase tracking-wide text-neutral-500">What's next</h2> <h2 className="text-xs font-bold uppercase tracking-wide text-neutral-500">What's next</h2>
<span className="text-xs text-neutral-500">Ordered by urgency, left to right</span> <span className="text-xs text-neutral-500">Backend-first — UI/UX work is paused until this list is worked down</span>
</div> </div>
<div className="grid gap-3 sm:grid-cols-2 xl:grid-cols-4"> <div className="grid gap-4 lg:grid-cols-2">
{ROADMAP_COLUMNS.map((col) => ( {(
[
{ title: 'Backend', dot: 'bg-emerald-400', items: BACKEND_TODO },
{ title: 'Frontend', dot: 'bg-neutral-600', items: FRONTEND_TODO },
] as const
).map((col) => (
<div key={col.title} className="rounded-xl border border-neutral-800 bg-neutral-900"> <div key={col.title} className="rounded-xl border border-neutral-800 bg-neutral-900">
<div className="flex items-center gap-2 border-b border-neutral-800 px-4 py-3"> <div className="flex items-center gap-2 border-b border-neutral-800 px-4 py-3">
<span className={`h-2 w-2 rounded-full ${col.dot}`} /> <span className={`h-2 w-2 rounded-full ${col.dot}`} />
<span className="font-semibold text-white">{col.title}</span> <span className="font-semibold text-white">{col.title}</span>
<span className="ml-auto text-[11px] text-neutral-500">{col.sub}</span> <span className="ml-auto text-[11px] text-neutral-500">{col.items.length} items</span>
</div> </div>
<ul className="space-y-3 px-4 py-4"> <ul className="divide-y divide-neutral-800/80">
{col.items.map((item) => ( {col.items.map((work) => (
<li key={item} className="relative pl-3 text-sm leading-relaxed text-neutral-400"> <li key={work.item} className="px-4 py-3">
<span className="absolute left-0 top-2 h-1 w-1 rounded-full bg-neutral-600" /> <div className="mb-1 flex items-start justify-between gap-3">
{item} <p className="text-sm font-medium text-white">{work.item}</p>
<WorkStatusPill status={work.status} />
</div>
{work.note && <p className="text-xs leading-relaxed text-neutral-500">{work.note}</p>}
</li> </li>
))} ))}
</ul> </ul>
......
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