Skip to content

Conversation

@StageGuard
Copy link
Member

close #2527, #1779, #184, #463.

landscape

左侧为条目所有剧集的总和信息,进度为所有对应条目的整体进度
右侧为单个条目的缓存信息

image

支持选择一个条目的所有剧集,或者单选剧集
右上角有一键全选按钮

image

portrait

不分组,平铺所有剧集

image

支持筛选和排序

image image

滚动适配

image

Copy link
Contributor

Copilot AI left a 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.

Copy link
Contributor

Copilot AI left a 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.

@StageGuard StageGuard enabled auto-merge (squash) January 4, 2026 14:54
@StageGuard StageGuard merged commit 6b920cb into main Jan 5, 2026
28 checks passed
@StageGuard StageGuard deleted the sg/new-cache-page branch January 5, 2026 00:54
@WingChunWong WingChunWong mentioned this pull request Jan 18, 2026
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.

一键删除缓存

2 participants