Merge: Knowledge graph views - Entry-centered graphs and stats (closes #73, #74)

This commit is contained in:
Jason Woltje
2026-01-29 23:39:27 -06:00
25 changed files with 1701 additions and 107 deletions

View File

@@ -128,6 +128,22 @@ export async function fetchTags(): Promise<KnowledgeTag[]> {
return response.data;
}
/**
* Fetch entry-centered graph view
*/
export async function fetchEntryGraph(slug: string, depth: number = 1) {
const params = new URLSearchParams();
params.append("depth", depth.toString());
return apiGet(`/api/knowledge/entries/${slug}/graph?${params.toString()}`);
}
/**
* Fetch knowledge base statistics
*/
export async function fetchKnowledgeStats() {
return apiGet("/api/knowledge/stats");
}
/**
* Mock entries for development (until backend endpoints are ready)
*/