Skip to content

Commit 2f338bd

Browse files
frectonzclaude
andcommitted
feat: add Schema tab with ERD visualization
Add a new Schema tab at /schema that displays an interactive Entity Relationship Diagram showing database tables, columns, and foreign key relationships using ReactFlow. - Add @xyflow/react and dagre dependencies for diagram rendering - Create ERD components (erd-diagram, table-node, use-layout hook) - Add schema route with loader for ERD data - Update navigation to include Schema tab in desktop and mobile views - Add ReactFlow custom styles for controls, minimap, and edges Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9137c07 commit 2f338bd

10 files changed

Lines changed: 581 additions & 4 deletions

File tree

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
pname = "ui";
5656
version = "0.0.0";
5757
src = ./ui;
58-
npmDepsHash = "sha256-1k054qLwvpSrWfBKXJRVVomCh1dMSEtjtwUTWCoAaEg=";
58+
npmDepsHash = "sha256-tM3PLk9/H08YbNGNXM2bdnMNzBKlPxI4j4yTKoVTCzk=";
5959
installPhase = ''
6060
cp -pr --reflink=auto -- dist "$out/"
6161
'';

ui/package-lock.json

Lines changed: 201 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@
2424
"@tanstack/react-router": "^1.130.2",
2525
"@tanstack/react-table": "^8.21.3",
2626
"@uidotdev/usehooks": "^2.4.1",
27+
"@xyflow/react": "^12.10.0",
2728
"class-variance-authority": "^0.7.1",
2829
"clsx": "^2.1.1",
30+
"dagre": "^0.8.5",
2931
"lucide-react": "^0.533.0",
3032
"monaco-editor": "^0.52.2",
3133
"monaco-sql-languages": "^0.15.1",
@@ -46,6 +48,7 @@
4648
"@tanstack/react-query-devtools": "^5.83.0",
4749
"@tanstack/router-devtools": "^1.35.3",
4850
"@tanstack/router-plugin": "^1.130.2",
51+
"@types/dagre": "^0.7.53",
4952
"@types/node": "^24.1.0",
5053
"@types/react": "^19.1.9",
5154
"@types/react-dom": "^19.1.7",

0 commit comments

Comments
 (0)