[Feature] Interactive Visual Codebase & Dependency Topology Explorer in Admin Dashboard - #8
Merged
Merged
Conversation
spelech
commented
Aug 25, 2026
spelech
left a comment
Owner
Author
There was a problem hiding this comment.
Code Review: Interactive Visual Codebase & Dependency Topology Explorer (PR #8)
✅ Verification & Findings:
- Backend Graph Topology REST APIs:
GET /admin/api/graph/topologyandGET /admin/api/graph/node-detailsefficiently aggregate files, symbols, AST relationships, and API routes with flexible view filters, depth BFS traversal, and cross-repo support. - Frontend Topology Component: Interactive force-directed canvas with pan/zoom/drag, minimap, type/edge filtering, autocomplete search-to-focus, SVG/JSON export, and slide-over inspector drawer.
- Comprehensive Test Coverage:
- Backend: 13 new pytest tests in
tests/backend/test_topology_graph.py(277 total backend tests passing). - Frontend: 82 Vitest unit tests passing across all components, Playwright E2E spec added, clean TypeScript build.
- Backend: 13 new pytest tests in
Approved and ready for merge once Docker CI pipeline finishes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #4
Implements an Interactive Visual Codebase & Dependency Topology Explorer within the ContextCortex Admin Dashboard, bridging static AST relationship graphs, API route hierarchies, and client caller links into an interactive, force-directed graph canvas.
Backend Enhancements
app/api/routes.py&app/services/topology.py:GET /admin/api/graph/topology: Gathers indexed files, AST symbols, AST relationships, and API server/client routes into graph nodes (file,module,class,function,route) and edges (IMPORTS,CALLS,DEFINES,HANDLES,ROUTES_TO). Supports multi-view filtering (files,symbols,routes,full), BFS subgraph scoping fromroot_nodebydepth, pagination limits, and cross-repo__all__exploration.GET /admin/api/graph/node-details: Returns rich entity metadata, source code preview/signature, line ranges, inbound callers/importers, outbound callees/imports, and git provider permalinks.TopologyNode,TopologyEdge,TopologyStats,TopologyResponse,NeighborDetail,NodeDetailsResponseinapp/models/schemas.py.tests/backend/test_topology_graph.py(13 tests verifying graph construction, view types, 404 handling, BFS traversal, and benchmark scaling on 500+ nodes).Frontend Enhancements
frontend/src/TopologyExplorer.tsx):frontend/src/App.tsx.frontend/src/tests/TopologyExplorer.test.tsxand Playwright E2E spec infrontend/e2e/topology.spec.ts.Validation
pytest -v: 277 passing tests across all backend test modules.python3 scripts/generate_requirements.py: Automated SRS generated and verified against live test suite.npm run test&npm run build: 82 passing frontend tests and clean TypeScript/Vite production build.