Skip to content

Commit 5d9e3b4

Browse files
etoyamaclaude
andcommitted
fix: align frontend referenced_knowledge type with backend dict[str, list[str]]
Closes #38 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ca3dc9c commit 5d9e3b4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/e2e/fixtures/mock-data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface Design {
1515
chart: Record<string, unknown>[];
1616
source_ids: string[];
1717
next_action: Record<string, unknown> | null;
18-
referenced_knowledge: Record<string, unknown>[] | null;
18+
referenced_knowledge: Record<string, string[]>;
1919
created_at: string;
2020
updated_at: string;
2121
}
@@ -34,7 +34,7 @@ export function makeDesign(overrides?: Partial<Design>): Design {
3434
chart: [],
3535
source_ids: [],
3636
next_action: null,
37-
referenced_knowledge: null,
37+
referenced_knowledge: {},
3838
created_at: "2026-01-01T00:00:00",
3939
updated_at: "2026-01-01T00:00:00",
4040
...overrides,

frontend/src/types/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export interface Design {
8484
methodology: Methodology | null;
8585
source_ids: string[];
8686
next_action: Record<string, unknown> | null;
87-
referenced_knowledge: Record<string, unknown>[] | null;
87+
referenced_knowledge: Record<string, string[]>;
8888
created_at: string;
8989
updated_at: string;
9090
}

0 commit comments

Comments
 (0)