M7: Offline downloads #19
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mett/cushion!19
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/m7-offline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
M7: Offline
src-tauri/src/offline/): one book at a time, the rest queued. Pause and resume with range requests, a size check per file (a file only gets its final name when its size matches), cover saved next to the audio. Books and single podcast episodes. The index is SQLite in the app data dir (not the cache dir).edl://timeline. Online, the server session still runs for live sync and only the audio comes from disk. Offline, or when the server stops answering mid-playback, listening goes into a local session.POST /api/session/local-allwhen the connection is back. The server keeps the newerlastUpdate(checked live: an older upload is accepted but does not move the progress). After the upload the progress map is refreshed and merged bylastUpdate.Product decisions (from the issue discussion): automatic + manual offline mode; one download at a time; no auto-delete; move downloads when the folder changes; manual update of changed books; podcast episodes included.
Tests
scripts/check.shsteps run individually:pnpm check,cargo fmt --check,cargo clippy -D warnings,cargo testagainst the Podman-run test server (all pass; 3 new live tests intests/live_offline.rs, unit tests for the store, file planning, moving and the session body). ts-rs bindings are committed.pnpm lintas in the script fails on a stray.claude/worktrees/folder in my checkout (not part of the repo);prettier --check src *.md package.jsonpasses.pnpm tauri devstarts without errors. I did not click through the new pages by hand, so the Downloads page, the offline redirect and the folder picker are untested visually. Windows is not built.scripts/check.shcomes fromci/forgejo-linux-only(identical file).Closes #7