Skip to content

feat(ui): add knowledge graph view - #203

Open
netclectic wants to merge 8 commits into
petabridge:devfrom
netclectic:feature/knowledge-graph
Open

feat(ui): add knowledge graph view#203
netclectic wants to merge 8 commits into
petabridge:devfrom
netclectic:feature/knowledge-graph

Conversation

@netclectic

Copy link
Copy Markdown

Summary

Add a knowledge graph view to visualize memories and their relationships.

Changes

  • New IGraphService (auto-registered via [AutoRegisterInterfaces]; does not extend IStorage) returning all non-archived memories as nodes and their relationships as edges, optionally scoped to a workspace subtree or a single project.
  • New endpoints in HomeController: GET /api/graph?workspaceId=&projectId= and the /graph page.
  • New Views/Home/Graph.cshtml rendering with vis-network 10.1.0, self-hosted at wwwroot/js/vis-network.min.js (no external CDN dependency).
  • Node size ∝ incoming relationship count (indegree); nodes are unlabeled dots with titles shown only on hover (theme-aware tooltips); node color by memory type, edge color by relationship type; click navigates to the memory.
  • Zoom in / out / fit controls (works without a mouse wheel).
  • Sidebar navigation link and progressive loading UX with a hard timeout.

Testing

  • 195 unit tests pass, 188 integration tests pass (includes graph service integration tests for nodes/edges/scope).

Related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant