feat(subscriptions): 按 MP 收敛订阅默认值与表单
- 定时主动搜索默认关(DEFAULT_SEARCH_INTERVAL_HOURS = 0),新建 / 手动照常各搜一次,之后靠 RSS 与站点快照 - 多版本自动补全系统缺省改为关 - 表单:基础页 = 作品与范围、下载、洗版;收录版本、优先级、自动补全折叠到进阶页「多版本」 - 对照文档 §7.3 记录落实范围 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
709414778e
commit
ed083fd138
12 files changed
+111
-74
No files matched your search
@@ -1,5 +1,5 @@
|
||||
// 多版本自动补全(docs/design/subscriptions.md §2.2):非主收录版本在主版本已满足的单元上补下其他版本。
|
||||
// 开关按 订阅 → 规则组(链上后者优先)→ 系统缺省(开)取值;补全预算按订阅、按自然日计,超出记延后。
|
||||
// 开关按 订阅 → 规则组(链上后者优先)→ 系统缺省(关,MP 没有多版本补全)取值;补全预算按订阅、按自然日计,超出记延后。
|
||||
|
||||
export type AutoFillModeValue = "inherit" | "on" | "off";
|
||||
|
||||
@@ -15,7 +15,7 @@ export interface AutoFillResolution {
|
||||
export function resolveAutoFill(
|
||||
mode: AutoFillModeValue | undefined,
|
||||
groupFlags: readonly { id: string; autoFill: boolean | null }[] = [],
|
||||
systemDefault = true,
|
||||
systemDefault = false,
|
||||
): AutoFillResolution {
|
||||
if (mode === "on" || mode === "off") return { enabled: mode === "on", mode, source: "subscription" };
|
||||
for (let k = groupFlags.length - 1; k >= 0; k--) {
|
||||
|
||||
Reference in new issue
Block a user