Skip to content

Commit 1bf8868

Browse files
jona62claude
andcommitted
feat: add React Flow graph view with toggle between Cytoscape and React Flow
Creates a Vite+React micro-frontend at crates/web/graph-ui/ using @xyflow/react with d3-force layout, built to crates/web/src/assets/graph-app/ for rust-embed inclusion. Adds a toggle bar on the /graph page to switch between the existing Cytoscape.js view and the new React Flow iframe view. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 82d9cb4 commit 1bf8868

15 files changed

Lines changed: 1662 additions & 11 deletions

File tree

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
/target
22
.codeindex/
3+
crates/web/graph-ui/node_modules/
4+
crates/web/graph-ui/dist/

‎crates/web/graph-ui/index.html‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>codeindex graph</title>
7+
</head>
8+
<body>
9+
<div id="root" style="width:100%;height:100vh;"></div>
10+
<script type="module" src="/src/main.tsx"></script>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)