feat(playlist): 自建歌单支持侧边栏拖拽排序并同步顺序到网易云 - #342
Open
laoshuikaixue wants to merge 3 commits into
Open
laoshuikaixue wants to merge 3 commits into
laoshuikaixue wants to merge 3 commits into
Conversation
- 新增接口 reorderCreatedPlaylists,支持同步自建歌单顺序并更新本地状态 - 在用户登录状态下,重排侧栏在线歌单顺序时自动调用同步接口 - 添加同步成功和失败的提示信息支持 - 将歌单缓存持久化封装为 persistPlaylistsCache 函数,确保更新后缓存同步 - 侧栏设置保存时,新增对在线歌单顺序变更的检测与同步调用 - 更新中英文本地化文案,支持同步状态提示
- 新增 useSidebarPlaylistDrag 组合函数实现长按拖拽逻辑 - 侧边栏侧边栏歌单行添加拖拽相关事件绑定 - 实现拖拽时的插入线与拖拽标签跟随指针显示 - 支持「我的歌单」和「收藏的歌单」独立排序与提交新顺序 - 在线歌单拖拽顺序支持同步回写网易云接口 - 拖拽过程中添加自动滚动和取消拖拽的快捷键处理 - 拖拽后阻止点击跳转,优化用户体验
laoshuikaixue
marked this pull request as draft
October 1, 2026 09:48
- 修改 reorderPlaylists 接口参数格式,支持全局顺序(自建 + 收藏)重排 - 更新主进程 playlist_order_update 接口,适配全局顺序重排需求 - 统一侧边栏歌单顺序同步逻辑,支持分别提交自建与收藏歌单分组顺序 - 添加 resolveNeteaseIds 工具,将存档 key 顺序解析为对应歌单 id 顺序 - 调整用户状态管理,合并自建与收藏歌单同步函数为 syncPlaylistOrder - 保证「我喜欢的音乐」歌单固定置顶,不参与顺序重排 - 优化侧边栏和设置页组件同步顺序时的性能和逻辑准确性 - 增加同步成功与失败的用户提示反馈
laoshuikaixue
marked this pull request as ready for review
October 1, 2026 10:05
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动类型
是否包含破坏性变更
自查清单
pnpm format,并确认pnpm typecheck、pnpm lint通过pnpm build:native验证;未手写native/*/index.d.tsdev分支提交Closed #341