merge: ui/l-files-organize

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-06 12:27:08 +08:00
commit 8d2fcdc7a4
13 files changed
+454 -59

No files matched your search

@@ -44,6 +44,10 @@ describe.skipIf(skip)("整理记录筛选与统计", () => {
media_entity_id: r.entity,
download_task_id: "task" in r ? r.task : null,
source_path: r.src,
// 冻结计划里的二级分类(列表带出 media.category)
...(r.k === "film"
? { plan: JSON.stringify({ classification: { category: "欧美电影", matchedFields: [], fallback: false } }) }
: {}),
action: r.action,
status: r.status,
...("at" in r ? { created_at: r.at } : {}),
@@ -135,13 +139,15 @@ describe.skipIf(skip)("整理记录筛选与统计", () => {
}
});
it("列表项带海报、大小、下载器名称与 hash", async () => {
it("列表项带海报、分类、大小、下载器名称与 hash", async () => {
const [film] = await list("q=Arrival.2016");
expect(film).toMatchObject({
media: { title: "Arrival", posterPath: "/arrival.jpg" },
media: { title: "Arrival", posterPath: "/arrival.jpg", category: "欧美电影" },
sizeBytes: 1000,
download: { name: "Arrival.2016", hash: "abcdef0123456789abcdef0123456789abcdef01", downloaderName: "家里的 qB" },
});
const [show] = await list("q=Severance");
expect(show).toMatchObject({ media: { title: "Severance", category: null } });
const [unknown] = await list("kind=none");
expect(unknown).toMatchObject({ media: null, download: null, sizeBytes: 1000 });
});