-
Notifications
You must be signed in to change notification settings - Fork 378
New design of cache management page. #2739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces a comprehensive redesign of the cache management page with an adaptive layout that provides different experiences for landscape and portrait orientations. The redesign improves usability through better organization, filtering capabilities, and batch operations.
- Implements adaptive dual-pane layout for landscape mode showing cache groups on the left and episode details on the right
- Adds comprehensive filtering and sorting capabilities for portrait mode with flat list view
- Introduces multi-selection support with batch deletion functionality
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 14 comments.
Show a summary per file
| File | Description |
|---|---|
| TopAppBarColor.kt | New utility function for smooth app bar color transitions based on scroll behavior |
| CacheFilterAndSortBar.kt | New component providing filter chips for collection type, engine, and status with sort options |
| CacheGroupState.kt | Extended with engineKey and collectionType properties to support filtering features |
| CacheEpisodeState.kt | Updated test data with varied states and random cache IDs for better preview diversity |
| CacheManagementViewModel.kt | Extracted from screen file into dedicated ViewModel with enhanced cache grouping and flow management |
| CacheManagementScreen.kt | Major redesign implementing adaptive list-detail layout with selection mode and improved UI |
| MainScreen.kt | Updated integration to pass selfInfo and login callback, commented out scroll-to-top behavior |
| AniAppContent.kt | Added selfInfo state producer and login callback for standalone cache management route |
| ServerSelector.kt | Enhanced to check for server override before applying preference-based server selection |
| TorrentMediaCacheStorage.kt | Added warning log when skipping restoration if startup is incomplete |
| MediaCacheEngine.kt | Added WebM3u constant to MediaCacheEngineKey companion object |
| HttpMediaCacheEngine.kt | Refactored to use shared WebM3u constant instead of local definition |
| SubjectCollectionRepository.kt | Added getSubjectCollectionTypeOffline method for offline-only collection type queries |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
app/shared/ui-cache/src/commonMain/kotlin/ui/cache/CacheManagementScreen.kt
Outdated
Show resolved
Hide resolved
app/shared/ui-cache/src/commonMain/kotlin/ui/cache/components/CacheFilterAndSortBar.kt
Outdated
Show resolved
Hide resolved
app/shared/ui-foundation/src/commonMain/kotlin/ui/foundation/TopAppBarColor.kt
Show resolved
Hide resolved
app/shared/ui-cache/src/commonMain/kotlin/ui/cache/CacheManagementViewModel.kt
Outdated
Show resolved
Hide resolved
app/shared/ui-cache/src/commonMain/kotlin/ui/cache/components/CacheFilterAndSortBar.kt
Show resolved
Hide resolved
app/shared/ui-cache/src/commonMain/kotlin/ui/cache/CacheManagementScreen.kt
Show resolved
Hide resolved
app/shared/ui-cache/src/commonMain/kotlin/ui/cache/components/CacheGroupState.kt
Outdated
Show resolved
Hide resolved
app/shared/ui-cache/src/commonMain/kotlin/ui/cache/components/CacheEpisodeState.kt
Show resolved
Hide resolved
app/shared/ui-cache/src/commonMain/kotlin/ui/cache/CacheManagementViewModel.kt
Show resolved
Hide resolved
app/shared/ui-cache/src/commonMain/kotlin/ui/cache/CacheManagementScreen.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 13 out of 13 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
close #2527, #1779, #184, #463.
landscape
左侧为条目所有剧集的总和信息,进度为所有对应条目的整体进度
右侧为单个条目的缓存信息
支持选择一个条目的所有剧集,或者单选剧集
右上角有一键全选按钮
portrait
不分组,平铺所有剧集
支持筛选和排序
滚动适配