feat(mobile, orpheus): download#275
Conversation
SafeDep Report SummaryNo dependency changes detected. Nothing to scan. This report is generated by SafeDep Github App |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (14)
Walkthrough该 PR 添加了下载设置和重试功能,包括配置最大并行下载任务数的新设置页面,并在原生层(Android/iOS)实现相应控制 API,同时更新下载 UI 组件以支持恢复/重试已停止或失败的下载任务。 ChangesDownload Settings & Retry Capability
Sequence DiagramsequenceDiagram
participant User as 用户
participant SettingsUI as 设置UI<br/>(settings/download)
participant AppStore as App Store<br/>(useAppStore)
participant NativeModule as 原生模块<br/>(Orpheus)
participant DownloadMgr as 下载管理器<br/>(Android/iOS)
participant DownloadUI as 下载UI<br/>(DownloadTaskItem)
Note over User,DownloadUI: 场景1: 配置最大并行任务数
User->>SettingsUI: 打开下载设置,选择并行任务数
SettingsUI->>AppStore: setSettings({downloadMaxParallelTasks: 3})
AppStore->>NativeModule: Orpheus.setDownloadMaxParallelTasks(3)
NativeModule->>DownloadMgr: setMaxParallelDownloads(3)
Note over DownloadMgr: 更新DownloadManager配置<br/>后续下载受新限制
Note over User,DownloadUI: 场景2: 重试/恢复失败的下载
User->>DownloadUI: 点击"重试失败"按钮
DownloadUI->>AppStore: 获取可重试任务列表
AppStore->>NativeModule: 对FAILED任务:retryDownload(track)<br/>对STOPPED任务:resumeDownload(id)
NativeModule->>DownloadMgr: 重新加入或恢复下载队列
DownloadMgr-->>DownloadUI: 下载状态更新事件
DownloadUI->>User: 刷新UI展示下载进度
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |



Summary by CodeRabbit
新增功能