Skip to content

LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。

TypeScript

fix: Graph stays mounted and updates in real-time after ingest

nash_su99a98d172681
diff --git a/src/components/layout/content-area.tsx b/src/components/layout/content-area.tsx
index ac026369..679f2413 100644
--- a/src/components/layout/content-area.tsx
+++ b/src/components/layout/content-area.tsx
@@ -10,20 +10,20 @@ import { GraphView } from "@/components/graph/graph-view"
export function ContentArea() {
const activeView = useWikiStore((s) => s.activeView)
- switch (activeView) {
- case "settings":
- return <SettingsView />
- case "sources":
- return <SourcesView />
- case "review":
- return <ReviewView />
- case "lint":
- return <LintView />
- case "search":
- return <SearchView />
- case "graph":
- return <GraphView />
- default:
- return <ChatPanel />
- }
+ return (
+ <div className="relative h-full">
+ {/* Graph stays mounted, shown/hidden via CSS so it updates in real-time */}
+ <div className={`absolute inset-0 ${activeView === "graph" ? "" : "invisible pointer-events-none"}`}>
+ <GraphView />
+ </div>
+
+ {/* Other views mount/unmount normally */}
+ {activeView === "settings" && <SettingsView />}
+ {activeView === "sources" && <SourcesView />}
+ {activeView === "review" && <ReviewView />}
+ {activeView === "lint" && <LintView />}
+ {activeView === "search" && <SearchView />}
+ {activeView === "wiki" && <ChatPanel />}
+ </div>
+ )
}