feat: 素材处理管线——自动处理、审核流程、6状态机

This commit is contained in:
2026-06-07 22:50:05 +08:00
parent a389888eb4
commit 90fdb44b20
30 changed files with 1452 additions and 55 deletions

View File

@@ -12,6 +12,8 @@ const MOCK_CREATED: Material = {
createdAt: "2026-06-03T00:00:00.000Z",
description: "测试描述",
id: "new-id",
materialType: "general",
processedContent: null,
projectId: "project-1",
status: "pending",
updatedAt: "2026-06-03T00:00:00.000Z",

View File

@@ -12,6 +12,8 @@ const MOCK_MATERIAL: Material = {
createdAt: "2026-06-03T00:00:00.000Z",
description: "测试素材描述",
id: "test-id",
materialType: "general",
processedContent: null,
projectId: "project-1",
status: "pending",
updatedAt: "2026-06-03T00:00:00.000Z",
@@ -28,7 +30,7 @@ describe("MaterialCard", () => {
}),
);
expect(screen.getByText("测试素材描述")).not.toBeNull();
expect(screen.getByText("待审核")).not.toBeNull();
expect(screen.getByText("待处理")).not.toBeNull();
});
test("点击卡片触发 onSelect", () => {

View File

@@ -13,6 +13,8 @@ const MOCK_MATERIALS: Material[] = [
createdAt: "2026-06-03T00:00:00.000Z",
description: "素材一",
id: "id-1",
materialType: "general",
processedContent: null,
projectId: "project-1",
status: "pending",
updatedAt: "2026-06-03T00:00:00.000Z",
@@ -22,6 +24,8 @@ const MOCK_MATERIALS: Material[] = [
createdAt: "2026-06-02T00:00:00.000Z",
description: "素材二",
id: "id-2",
materialType: "meeting",
processedContent: null,
projectId: "project-1",
status: "pending",
updatedAt: "2026-06-02T00:00:00.000Z",