Skip to content

feat(space,queue): support sorting UP collections and series by publish time - #12

Merged
NihilDigit merged 2 commits into
NihilDigit:mainfrom
The-R0:pr-collection-time-sort
Nov 29, 2026
Merged

NihilDigit merged 2 commits into
NihilDigit:mainfrom
The-R0:pr-collection-time-sort

Conversation

@The-R0

@The-R0 The-R0 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

变化

为 UP 主合集与系列目录页(CollectionScreen)及对应播放队列新增按发布时间排序:

  • 顶栏新增排序菜单:默认排序 / 最新发布 / 最早发布(CollectionSort)。
  • 视频列表/系列(isSeason = false):直接透传服务端 sort=desc|asc 参数分页。
  • 合集(isSeason = true):300 条以内全量拉齐并缓存,切换排序本地精确重排零额外请求;超过 300 条的超大合集按首屏发布时间走向推断 sort_reverse 方向分页。
  • 播放队列同步(QueueContext.Collection、QueueSourceRepository):从合集目录点击播放时,播放队列保持当前所选的时间排序顺序。

验证

  • 新增单元测试 CollectionSortTest 覆盖排序稳定性、相同时间戳保序及超大合集 sort_reverse 方向推断。
  • 本地运行 ./gradlew :shared:compileKotlinDesktop :shared:desktopTest 全部通过。

@NihilDigit
NihilDigit merged commit 31d6013 into NihilDigit:main Nov 29, 2026
1 check passed
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