feat(setting): 添加分类与目录路由预览 - #678
Draft
bgColorGray wants to merge 2 commits into
Draft
Conversation
There was a problem hiding this comment.
PR-Agent Code Review
该 PR 新增目录匹配模式、分类草稿联动和后端路由预览,并补充了相应类型、界面与多语言支持。当前异步加载与草稿状态处理存在一处可覆盖既有分类配置的数据丢失风险,以及两处可能产生错误或过期预览结果的状态同步回归,建议修复后再合并。
审查提交:5ba1006
| openSharedDialog( | ||
| CategoryEditDialog, | ||
| {}, | ||
| { initialConfig: cloneDeep(categoryConfig.value) }, |
| try { | ||
| const result = await api.get<{ value?: unknown }>(`system/setting/${directoryMatchModeKey}`) | ||
| directoryMatchMode.value = result.value === 'specificity' ? 'specificity' : 'sequential' | ||
| } catch (error) { |
| } | ||
| } | ||
|
|
||
| watch([movieList, tvList], () => emit('draft-change', buildPayload()), { deep: true }) |
Author
|
已完成上一轮审查后的状态重构与回归:
本次自动 PR-Agent 工作流的红灯是三个回退模型均返回 |
bgColorGray
marked this pull request as draft
August 14, 2026 11:20
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.
关联
变更
useDirectoryRouteSettings,以单一设置契约管理目录、匹配模式、远端快照、本地草稿、保存锁和静默刷新代次。null兜底规则;保存期间若继续编辑,则保留最新草稿并提示再次保存。saved / outdated / failed显式保存结果,避免旧快照保存成功后误报最新草稿已保存。依赖与兼容性
sequential,保持现有默认行为。验证
localStorage故障注入的既有基线用例subscribe page > keeps page state usable when sort storage reads or writes fail。git diff --check与敏感信息扫描通过。