constellation-analyzer/src/utils
Jan-Henrik Bruhn 0e90f022fc feat: add graph metrics and analysis to right panel
Implements section 6.1 from UX_ANALYSIS.md - Graph Metrics and Analysis.
Transforms the empty "No Selection" state in the right panel into a
valuable analysis dashboard.

Features:
- Graph analysis utility with metric calculations:
  - Actor/relation counts
  - Graph density (connectivity ratio)
  - Average connections per actor
  - Most connected actors (top 5)
  - Isolated actors count
  - Connected components detection
  - Breakdown by actor/relation type

- GraphMetrics component with sections:
  - Overview: basic stats and density
  - Most Connected Actors: ranked list
  - Graph Structure: isolated nodes, components
  - Type breakdowns: actors and relations by type
  - Visual polish: icons, tooltips, hover states
  - Warning highlights for isolated actors
  - Info highlights for multiple components

- Integration:
  - Replaces empty state in RightPanel
  - Automatically updates when graph changes
  - Memoized calculations for performance
  - Consistent styling with existing panels

Now provides immediate analytical value when opening a document,
making the application live up to its "Analyzer" name.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-10 23:20:22 +02:00
..
colorUtils.ts Initial commit 2025-10-10 11:15:51 +02:00
edgeUtils.ts Initial commit 2025-10-10 11:15:51 +02:00
graphAnalysis.ts feat: add graph metrics and analysis to right panel 2025-10-10 23:20:22 +02:00
graphExport.ts feat: add crispy PNG/SVG graph export with tight cropping 🔥 2025-10-10 23:01:33 +02:00
iconUtils.tsx Initial commit 2025-10-10 11:15:51 +02:00
nodeUtils.ts Initial commit 2025-10-10 11:15:51 +02:00