Skip to content

Add client media upload and cache pipeline#16

Draft
Eoic wants to merge 2 commits into
masterfrom
codex/media-storage-pipeline
Draft

Add client media upload and cache pipeline#16
Eoic wants to merge 2 commits into
masterfrom
codex/media-storage-pipeline

Conversation

@Eoic

@Eoic Eoic commented Jun 27, 2026

Copy link
Copy Markdown
Member

Summary

  • Add authenticated media API methods for usage, upload, download, and delete
  • Add book file/cover media IDs to the local sync model and upload mapper
  • Queue media uploads after signed-in imports and retry after sync/upload completion
  • Show real server file-storage usage in Storage & sync
  • Lazy-load private uploaded covers and cache downloaded book files in platform-local storage

Depends on

Verification

  • flutter analyze
  • flutter test

…ndling

- Implemented BookDownloadService for downloading book files.
- Added retry mechanism for failed media uploads in MediaUploadQueue.
- Enhanced BookDetailsPage to include download option in context menu.
- Created deleteBookWithMediaCleanup service to handle book deletion and media upload cleanup.
- Updated ProfilePage to display failed media uploads and provide retry option.
- Added tests for new download and delete functionalities, ensuring proper behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant