feat: implement "Clear Downloads" confirmation dialog and UI improvem…#358
feat: implement "Clear Downloads" confirmation dialog and UI improvem…#358rainxchzed merged 3 commits intomainfrom
Conversation
…ents - Add `ClearDownloadsDialog` to provide a confirmation step before deleting downloaded APKs. - Update `ProfileViewModel` and `ProfileState` to manage the visibility of the clear downloads dialog and handle confirm/dismiss actions. - Rename "Clear cache" to "Downloaded Packages" in the UI and update related string resources to be more descriptive. - Enhance the storage section in the Profile settings with a new layout, including a "Delete All" icon button and detailed storage information. - Refactor `ProfileAction` to include explicit confirmation and dismissal events for clearing downloads. - Fix syntax in `ScrollbarContainer.android.kt` by removing unnecessary backticks from `@Composable` annotations.
…letion - Update `AndroidDownloader` and `DesktopDownloader` to only delete local files if an active download was successfully cancelled. - Move file deletion logic inside the active download check to ensure only incomplete files associated with a current session are removed. - Simplify the `cancelDownload` return value to strictly reflect the cancellation status.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
WalkthroughPR refactors the download-clearing feature from cache-clearing terminology, updates downloader cancellation logic to delete files only when active downloads are canceled, and fixes a Compose syntax issue in ScrollbarContainer. Changes
Possibly related PRs
Poem
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes ✨ 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. Comment |
…ents
ClearDownloadsDialogto provide a confirmation step before deleting downloaded APKs.ProfileViewModelandProfileStateto manage the visibility of the clear downloads dialog and handle confirm/dismiss actions.ProfileActionto include explicit confirmation and dismissal events for clearing downloads.ScrollbarContainer.android.ktby removing unnecessary backticks from@Composableannotations.Summary by CodeRabbit
New Features
Bug Fixes
Documentation