Commit graph

85 commits

Author SHA1 Message Date
xpltd
41c79bdfb2 Download All, format filtering, playlist checkboxes, URL clear reset
Download All:
- 'Download All (N)' button appears above table when 2+ completed files
- Triggers individual browser downloads staggered by 300ms
- Toast notification shows count

Format picker filtering:
- FormatPicker accepts mediaType prop ('video' | 'audio')
- Video mode: shows Video+Audio and Video Only groups, hides Audio Only
- Audio mode: shows Audio Only group, hides video groups
- Switching media type live-updates the visible format list

Playlist entry selection:
- Checkboxes on each entry, all selected by default
- Select All / Deselect All toggle with partial state indicator
- Selected count displayed (e.g. '3 of 5 selected')
- Only selected entries are submitted for download
- Duration shown in parentheses after title

URL input clearing:
- Clearing or changing URL resets preview, formats, and selections
- Stale preview no longer persists when URL is edited
- URL watcher tracks the last fetched URL to avoid clearing on paste
2026-03-19 03:46:09 -05:00
xpltd
82786be485 Auto format label with extension, preferences persistence, toast, full delete
Auto format display:
- 'Auto' chip now shows detected extension: 'Auto (.webm)', 'Auto (.mp3)'
- Backend guesses extension from URL domain (youtube→webm, bandcamp→mp3,
  soundcloud→opus, etc.) and extract_info ext field for single videos

Preferences persistence:
- Media type (video/audio) and output format saved to localStorage
- Settings survive page refreshes and gear panel open/close

Toast notifications:
- Copy link shows animated toast 'Link copied to clipboard'
- Toast appears at bottom center, auto-dismisses after 2s

Full delete on cancel:
- DELETE /downloads/{id} now removes the job from DB and deletes the file
- Previously marked as 'cancelled by user' and persisted in history
- Jobs dismissed with X are completely purged from the system
2026-03-19 03:16:38 -05:00
xpltd
3931e71af5 Fix playlist support, session persistence, audio detection, progress errors
Playlist handling:
- Playlists are split into individual jobs at enqueue time
- Each entry downloads independently with its own progress tracking
- Private/unavailable playlist entries detected and reported in preview
- Individual jobs use noplaylist=True to prevent re-expansion

Session persistence:
- App.vue now calls fetchJobs() on mount to reload history from backend
- Download history survives page refresh via session cookie

Audio detection:
- Domain-based detection for known audio sources (bandcamp, soundcloud)
- Bandcamp albums now correctly trigger audio-only mode

Bug fixes:
- ProgressEvent accepts float for downloaded_bytes/total_bytes (fixes
  pydantic int_from_float validation errors from some extractors)
- SSE job_update events now include error_message for failed jobs
- Fixed test_health_queue_depth test to use direct DB insertion instead
  of POST endpoint (avoids yt-dlp side effects in test env)
2026-03-19 02:53:45 -05:00
xpltd
0d9e6b18ac M002/S04: URL preview, playlist support, admin improvements, UX polish
URL preview & playlist support:
- POST /url-info endpoint extracts metadata (title, type, entry count)
- Preview box shows playlist contents before downloading (up to 10 items)
- Auto-detect audio-only sources (SoundCloud, etc) and switch to Audio mode
- Video toggle grayed out for audio-only sources
- Enable playlist downloading (noplaylist=False)

Admin panel improvements:
- Expandable session rows show per-session job list with filename, size,
  status, timestamp, and source URL link
- GET /admin/sessions/{id}/jobs endpoint for session job details
- Logout now redirects to home page instead of staying on login form
- Logo in header is clickable → navigates to home

UX polish:
- Tooltips on output format chips (explains Auto vs specific formats)
- Format tooltips change based on video/audio mode
2026-03-19 02:32:14 -05:00
xpltd
6e27f8e424 M002/S04: output format selection, media icons, gear repositioned
- Move gear icon to left of Video/Audio toggle
- Add output format selector in options panel:
  Audio: Auto, MP3, WAV, M4A, FLAC, OPUS
  Video: Auto, MP4, WEBM
- Backend: postprocess audio to selected codec via FFmpegExtractAudio
- Backend: postprocessor_hooks capture final filename after conversion
  (fixes .webm showing when file was converted to .mp3)
- Add media type icon (video camera / music note) in download table
  next to filename, inferred from quality field and file extension
- Pass media_type and output_format through JobCreate model
2026-03-19 01:03:21 -05:00
xpltd
1da3ef37f1 M002/S04: fix filename resolution for downloads
- Use extract_info + prepare_filename to determine output filename
  before downloading (yt-dlp skips progress hooks when file exists)
- Normalize filenames to relative paths (strip output dir prefix)
- Include filename in completion SSE event so frontend displays it
- Fixes file download 404s from subdirectory source templates
2026-03-18 23:44:29 -05:00
xpltd
fd25ea7d05 M002/S04: UX review fixes — round 1
- Move Video/Audio toggle to same row as Download button
- Auto-condense toggle to icon-only below 540px
- Move gear icon to right of Download button
- Fix file download URLs: normalize filenames to relative paths in progress hook
- Display filename with visible extension (truncate middle, preserve ext)
- Remove border/box from dark mode toggle — glyph only
- Fix light/dark theme fonts: use monospace display font across all themes
2026-03-18 23:01:36 -05:00
xpltd
9b62d50461 GSD: M002/S03 complete — Mobile + integration polish
- Admin panel: Settings tab with welcome message editor (runtime override)
- Backend: PUT /api/admin/settings endpoint for runtime config
- Backend: public config reads runtime overrides (settings_overrides on app.state)
- Removed unused ThemePicker.vue (replaced by DarkModeToggle in S01)
- Removed unused DownloadItem.vue (replaced by DownloadTable in S02)
- All 34 frontend + 179 backend tests passing
- M002 COMPLETE — all 3 slices done
2026-03-18 21:34:46 -05:00
xpltd
4eec024750 GSD: M002/S02 complete — Download flow + queue redesign
- UrlInput: Download is primary one-click action, format picker is optional (⚙ toggle)
- UrlInput: Video/Audio toggle pills with icons, audio sends quality=bestaudio
- UrlInput: Paste auto-extracts formats silently in background
- DownloadTable: Sortable table with Name, Status, Progress, Speed, ETA, Actions columns
- DownloadTable: Status badges with color-coded backgrounds per status
- DownloadTable: Completed items show download/copy-link/clear action icons
- DownloadTable: Active items show cancel, failed/expired show clear
- DownloadTable: Click column headers to sort (toggle asc/desc)
- DownloadTable: Mobile hides Speed+ETA columns below 640px
- DownloadQueue: Simplified to filters + DownloadTable (removed card layout)
- All 34 frontend + 179 backend tests passing
2026-03-18 21:30:28 -05:00
xpltd
c5844ac712 GSD: M002/S01 complete — Bug fixes + header/footer rework
- Fix cancel download bug: add @click.stop, debounce with cancelling ref
- Rework header: remove nav tabs, replace ThemePicker with DarkModeToggle
- Add isDark computed + toggleDarkMode() to theme store
- Add WelcomeMessage component above URL input, reads from public config
- Add welcome_message to UIConfig and public config endpoint
- Add AppFooter with app version, yt-dlp version, GitHub link
- Remove SSE status dot from header
- Remove connectionStatus prop from AppLayout
- 5 new theme toggle tests (34 frontend tests total)
- 179 backend tests still passing
2026-03-18 21:16:24 -05:00
xpltd
efc2ead796 M001: media.rip() v1.0 — complete application
Full-featured self-hosted yt-dlp web frontend:
- Python 3.12+ / FastAPI backend with async SQLite, SSE transport, session isolation
- Vue 3 / TypeScript / Pinia frontend with real-time progress, theme picker
- 3 built-in themes (cyberpunk/dark/light) + drop-in custom theme system
- Admin auth (bcrypt), purge system, cookie upload, file serving
- Docker multi-stage build, GitHub Actions CI/CD
- 179 backend tests, 29 frontend tests (208 total)

Slices: S01 (Foundation), S02 (SSE+Sessions), S03 (Frontend),
        S04 (Admin+Auth), S05 (Themes), S06 (Docker+CI)
2026-03-18 20:00:17 -05:00
xpltd
b145dffce4 GSD: M001 COMPLETE — media.rip() v1.0, all 6 slices done
S01: Foundation + Download Engine
S02: SSE Transport + Session System
S03: Frontend Core
S04: Admin, Auth + Supporting Features
S05: Theme System
S06: Docker + CI/CD

211 total tests (182 backend + 29 frontend).
2026-03-18 19:32:11 -05:00
xpltd
878ca56419 GSD: S05 complete — Theme system with CSS variable contract, 3 built-in themes, custom theme loader
182 backend + 29 frontend tests. Ready for S06: Docker + CI/CD (final slice).
2026-03-18 19:27:24 -05:00
xpltd
06267bfc0c GSD: S04 complete — Admin auth, purge, cookie upload, file serving, admin panel
164 backend + 21 frontend tests. Ready for S05: Theme System.
2026-03-18 19:10:30 -05:00
xpltd
9d71d48c50 GSD: S03 complete — Frontend Core Vue 3 SPA
S03 delivered: Vue 3 + TypeScript + Vite + Pinia SPA with SSE integration,
URL submission, live format extraction, real-time progress, download queue,
responsive layout with mobile bottom tabs. 21 frontend + 122 backend tests.
Ready for S04: Admin, Auth + Supporting Features.
2026-03-18 18:55:02 -05:00
xpltd
ea41640c17 GSD: S02 complete — SSE transport, session system, health/config endpoints
S02 delivered: cookie-based sessions, SSE streaming with replay/cleanup,
health endpoint, public config endpoint, session-mode query dispatching.
122 tests passing. Ready for S03: Frontend Core.
2026-03-18 18:37:35 -05:00
xpltd
459a155d1c chore(M001/S01/T04): auto-commit after execute-task 2026-03-17 23:07:15 -05:00
xpltd
09fcabf75b chore(M001/S01/T04): auto-commit after execute-task 2026-03-17 23:06:41 -05:00
xpltd
fbfc74e310 chore(M001/S01/T04): auto-commit after execute-task 2026-03-17 23:05:37 -05:00
xpltd
a6df51514d chore(M001/S01/T04): auto-commit after execute-task 2026-03-17 23:04:24 -05:00
xpltd
497a896994 chore(M001/S01/T04): auto-commit after execute-task 2026-03-17 23:02:42 -05:00
xpltd
bd35905436 chore(M001/S01/T03): auto-commit after state-rebuild 2026-03-17 22:56:37 -05:00
xpltd
82b408cb67 feat(S01/T03): PARTIAL RECOVERY — attempt 3 of 3 2026-03-17 22:56:36 -05:00
xpltd
03b727bd40 chore(M001/S01/T03): auto-commit after execute-task 2026-03-17 22:53:09 -05:00
xpltd
7e2edca021 chore(M001/S01/T03): auto-commit after execute-task 2026-03-17 22:50:50 -05:00
xpltd
5ddf297766 test(S01/T02): Built pydantic-settings config (env + YAML + zero-config…
- backend/app/core/config.py
- backend/app/core/database.py
- backend/app/core/sse_broker.py
- backend/tests/conftest.py
2026-03-17 22:44:20 -05:00
xpltd
a850b36d49 chore(M001/S01/T02): auto-commit after execute-task 2026-03-17 22:41:58 -05:00
xpltd
9c37dbfa27 chore(M001): record integration branch 2026-03-17 22:11:57 -05:00
xpltd
57365e7af8 docs(M001): context, requirements, and roadmap 2026-03-17 22:08:56 -05:00
xpltd
9a94de7455 chore: init gsd 2026-03-17 21:43:36 -05:00
xpltd
f1b6b5c052 chore: checkpoint v1 GSD research artifacts before migrating to GSDv2 2026-03-17 21:40:37 -05:00
xpltd
476e4a4cb5 docs: complete project research
Adds STACK, FEATURES, ARCHITECTURE, PITFALLS, and SUMMARY research files
for media.rip() v1.0 (self-hosted yt-dlp web frontend).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-17 21:36:25 -05:00
xpltd
bc4f90f3fa docs: start milestone v1.0 Initial Release 2026-03-17 21:27:21 -05:00
xpltd
9afb146760 chore: add project config 2026-03-17 21:11:12 -05:00
xpltd
922a143e49 docs: initialize project 2026-03-17 21:10:26 -05:00