Commit 06806f34 authored by Aryan Noshirvnai's avatar Aryan Noshirvnai

Roadmap: bulk Telegram chat scanning (on-demand) backend done

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: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019i3NAUkLkHNbsPg5vKfzF9
parent 2f990077
Pipeline #1113 failed with stage
...@@ -96,6 +96,15 @@ const BACKEND_DONE: DoneGroup[] = [ ...@@ -96,6 +96,15 @@ const BACKEND_DONE: DoneGroup[] = [
area: 'Discovery', 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'],
}, },
{
area: 'Telegram Bulk Scan',
items: [
'Approve/revoke/list chats opted into scanning (ApprovedChat)',
'On-demand background scan job per chat (ChatScanJob) - lists the chat, then tags + saves every song via the same pipeline /music/tag uses for one song, polled like a RemixJob',
'Guardrails: 50 messages/scan, 5 scans/user/day, no two concurrent scans of the same chat, 1.5s pace between songs',
'Per-song outcome tracking (saved/skipped_duplicate/failed), not just one pass/fail for the whole job',
],
},
] ]
const BACKEND_TODO: WorkItem[] = [ const BACKEND_TODO: WorkItem[] = [
...@@ -110,9 +119,9 @@ const BACKEND_TODO: WorkItem[] = [ ...@@ -110,9 +119,9 @@ const BACKEND_TODO: WorkItem[] = [
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 schema decision, not just a passthrough.', 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 schema decision, not just a passthrough.',
}, },
{ {
item: 'Telegram chat scanning: auto-scan approved chats, tag + save songs in bulk', item: 'Telegram chat scanning: fully automatic (no user-triggered scan)',
status: 'needs-design', status: 'needs-design',
note: 'Manually tagging one found song at a time now works end to end (browse a chat, hit Save, POST /music/tag). This item is specifically the bigger scan-everything-automatically design - still undone.', note: 'On-demand bulk scanning of one approved chat now works end to end (shipped 2026-08-19). This item is specifically "notice a new song without being asked" - needs either a persistent per-user Telegram connection or a scheduled poller across every approved chat for every user, neither of which the current single-process/no-scheduler setup supports. Deliberately deferred, not blocked - worth building once on-demand scanning proves out the feature.',
}, },
{ {
item: 'Proxy-aware IP detection for the rate limiters', item: 'Proxy-aware IP detection for the rate limiters',
...@@ -197,8 +206,8 @@ const FRONTEND_TODO: WorkItem[] = [ ...@@ -197,8 +206,8 @@ const FRONTEND_TODO: WorkItem[] = [
}, },
{ {
item: 'UI to approve chats for scanning and see scan results', item: 'UI to approve chats for scanning and see scan results',
status: 'blocked', status: 'ready',
note: 'Blocked on the backend chat-scanning design landing first.', note: 'Backend now supports it end to end (POST/DELETE /telegram/chats/{id}/approve, GET /telegram/chats/approved, POST /telegram/chats/{id}/scan, GET /telegram/scan/{job_id}) - no UI calls any of it yet.',
}, },
{ {
item: 'Offline/connectivity-loss handling', item: 'Offline/connectivity-loss handling',
...@@ -258,14 +267,14 @@ export function Roadmap() { ...@@ -258,14 +267,14 @@ export function Roadmap() {
<Layout title="Status & Roadmap"> <Layout title="Status & Roadmap">
<p className="mb-8 max-w-2xl text-sm leading-relaxed text-neutral-400"> <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 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-18. every "needs design" idea actually requires from each side. Compiled 2026-08-15, updated through 2026-08-19.
</p> </p>
<div className="mb-10 flex flex-wrap gap-x-8 gap-y-4"> <div className="mb-10 flex flex-wrap gap-x-8 gap-y-4">
{[ {[
['9', 'Feature areas'], ['10', 'Feature areas'],
['0', 'Critical security gaps'], ['0', 'Critical security gaps'],
['234', 'Backend tests'], ['251', 'Backend tests'],
['183', 'Frontend tests'], ['183', 'Frontend tests'],
['4', 'Pages w/ zero tests'], ['4', 'Pages w/ zero tests'],
].map(([n, l]) => ( ].map(([n, l]) => (
......
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