Skip to content

feat: implement all four visualization views - #23

Merged
humzakhan merged 4 commits into
mainfrom
humzakhan/phase4-dependency-graph
Mar 13, 2026
Merged

humzakhan merged 4 commits into
mainfrom
humzakhan/phase4-dependency-graph

Conversation

@humzakhan

Copy link
Copy Markdown
Owner

Summary

Implements the remaining three visualization views and enhances the Architecture Map:

Architecture Map (Phase 3)

  • Rewrite with React Flow replacing Cytoscape.js
  • Custom ModuleCard React components as nodes
  • Layer filter bar, minimap, zoom controls
  • Framer Motion entry animations

Dependency Graph (Phase 4)

  • File-level React Flow graph with fan-in/fan-out metrics on each node
  • DFS-based circular dependency detection with red animated edges
  • Dead code identification (zero inbound, not entry point)
  • View mode filter: All / Circular / Unused

Data Models (Phase 5)

  • ERD-style cards for class, interface, and type exports
  • Relationship edges between related models
  • Field preview in each card

Call Flow Tracer (Phase 6)

  • Vertical flow of critical path steps
  • Animated purple edges connecting steps
  • Staggered entry animations
  • Path selector dropdown for switching between flows

Test plan

  • TypeScript compiles clean (tsc --noEmit)
  • Vite production build succeeds
  • All four view tabs render correctly
  • Circular dependency detection logic tested with DFS
  • Empty states render when no data available

Replace Cytoscape.js imperative graph with React Flow:
- Each module is a React component (ModuleCard) with rich content
- Framer Motion entry animations on nodes
- Built-in minimap, controls, and background grid
- Layer filter bar to show/hide nodes by architectural layer
- Hierarchical layout grouped by layer type
- Interactive zoom, pan, and node selection
- Node selection highlighting with glow effect
React Flow-based dependency graph with:
- File-level nodes showing fan-in/fan-out metrics
- DFS-based circular dependency detection with red animated edges
- Dead code detection (zero inbound, not entry point)
- View mode filter: All / Circular / Unused
- Framer Motion entry animations on nodes
- Minimap with color coding for issues
React Flow-based data model viewer that:
- Extracts class, interface, and type exports from summaries
- Renders ERD-style cards showing kind, name, file, and fields
- Draws relationship edges between related models
- Supports interactive zoom, pan, and node selection
- Falls back to empty state when no models detected
React Flow-based call flow tracer that:
- Renders critical path steps as a vertical flow
- Animated edges connecting steps (purple pulsing)
- Staggered entry animations per step
- Progress bar showing depth in the call stack
- Path selector for switching between critical paths
- Layer inference from module names for color coding
@humzakhan
humzakhan force-pushed the humzakhan/phase4-dependency-graph branch from dc42429 to 2a77a14 Compare March 13, 2026 18:10
@humzakhan
humzakhan merged commit 663ea43 into main Mar 13, 2026
2 checks passed
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