Merge branch 'dl2b'

Co-Authored-By: Claude Fable 5.1 <[email protected]>

# Conflicts:
#	apps/web/app/components/library/versions.tsx
This commit is contained in:
root committed 2026-09-29 22:15:35 +08:00
commit 606e97815f
11 files changed
+105 -35

No files matched your search

+8
View File
@@ -10,6 +10,14 @@ describe("reasonText(DEAI-2 原因码人话化)", () => {
expect(reasonText("below_min_size")?.text).toContain("最小体积");
});
it("下载面板用到的码(DL-2b):整理失败、冲突、下载被删", () => {
expect(reasonSentence("transfer_failed")).toBe("文件没有整理成功。在整理记录里查看失败的文件");
expect(reasonSentence("blocked")).toBe("有冲突要先处理。去待处理");
expect(reasonText("download_removed")?.text).toBe("下载任务已从下载器删除");
expect(reasonText("target_root_not_managed")?.text).toContain("本工具管理");
for (const c of ["blocked_by_conflict", "main_failed", "not_imported_kind"]) expect(reasonText(c)).not.toBeNull();
});
it("不认识的码返回 null;句子兜底不把码原样给人看", () => {
expect(reasonText("some_new_code")).toBeNull();
expect(reasonSentence("some_new_code")).toBe("处理失败");