Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

feat(ui): #wiki=<slug> deep link — wiki entries addressable by URL

Martin Vogelcfebb1b2f9c3
diff --git a/graph-ui/src/App.tsx b/graph-ui/src/App.tsx
index 837fae46a..3216922e2 100644
--- a/graph-ui/src/App.tsx
+++ b/graph-ui/src/App.tsx
@@ -11,6 +11,7 @@ import { DashboardTab } from "./components/DashboardTab";
import { CommandK } from "./components/CommandK";
import { ProjectSwitcher } from "./components/ProjectSwitcher";
import { WikiPanel } from "./components/WikiPanel";
+import { wikiEntry } from "./wiki/entries";
import {
PromptBasketProvider,
PromptBasketDrawer,
@@ -97,6 +98,18 @@ export function App() {
return () => window.removeEventListener("popstate", onPopState);
}, []);
+ /* #wiki=<slug> deep link: wiki entries are addressable by URL (the doc_url
+ * target), opening the panel over whatever view the rest of the URL names. */
+ useEffect(() => {
+ const openFromHash = () => {
+ const match = window.location.hash.match(/wiki=([a-z][a-z-]*)/);
+ if (match && wikiEntry(match[1])) setWikiSlug(match[1]);
+ };
+ openFromHash();
+ window.addEventListener("hashchange", openFromHash);
+ return () => window.removeEventListener("hashchange", openFromHash);
+ }, []);
+
/* ⌘K / ctrl-K anywhere. */
useEffect(() => {
const onKey = (event: KeyboardEvent) => {