feat: add LOD graph rendering and performance optimizations#362
feat: add LOD graph rendering and performance optimizations#362naicud wants to merge 1 commit intoabhigyanpatwari:mainfrom
Conversation
- Level-of-detail graph rendering (summary, hierarchy, full)
- Graph summary builder (structural aggregation by cluster)
- New API endpoints: /api/graph/{info,summary,expand,neighbors,hierarchy,ancestors,schema}
- Node hard cap with truncation for large graphs
- Refactored useAppState into per-concern hooks
- New components: DataExplorer, ContextMenu, NeighborPanel, SchemaGraph, SearchPanel, StylingPanel
- Summary and hierarchy graph adapters
- ForceAtlas2 tuning for LOD rendering
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
@naicud is attempting to deploy a commit to the NexusCore Team on Vercel. A member of the Team first needs to authorize it. |
|
@magyargergo ┌─────┬─────────────────────────┬──────┬────────┐ |
CI Report✅ All checks passed Pipeline Status
Test Results
✅ All 2747 tests passed 20 test(s) skipped — expand for detailsIntegration:
Unit:
Code CoverageCombined (Unit + Integration)
Coverage breakdown by test suiteUnit Tests
Integration Tests
📋 View full run · Generated by CI |
Summary
Adds Level-of-Detail (LOD) graph rendering to handle large codebases (10K+ nodes) that would overwhelm the browser, plus performance optimizations and a major UI restructuring.
LOD Rendering
Three rendering levels that progressively reveal detail:
Users click to expand clusters, drill into neighborhoods, and navigate large graphs fluidly.
Performance
buildGraph()with limit/truncation andtruncated/totalAvailableresponse metadatabuildStructuralSummaryFromDb()— server-side summary generation from graph DBfastStripNullable()— type resolution optimizationskipGraphPhases— pipeline option to skip expensive graph phasesNew API Endpoints
/api/graph/{info, summary, expand, neighbors, hierarchy, ancestors, neighbor-counts, schema}UI Restructuring
useAppStaterefactored into 6 per-concern hooks:useGraphState,useFilterState,useChatState,useWorkerState,useKeyboardShortcuts,useStyleConfigDataExplorer,ContextMenu,NeighborPanel,SchemaGraph,SearchPanel,StylingPanelsummary-graph-adapter.ts,hierarchy-graph-adapter.tsfor LOD data transformationChanges (37 files)
api.ts,graph-summary.ts,pipeline.tsgraph-lod.ts,summary-graph-adapter.ts,hierarchy-graph-adapter.tsGraphCanvas.tsx,App.tsxuseAppState.tsx,useSigma.tsgraph-adapter.ts,constants.tsTest plan
cd gitnexus && npm run build && cd ../gitnexus-web && npm run build🤖 Generated with Claude Code