Skip to content

feat: Org Chart force-directed communication graph view #872

@Aureliolo

Description

@Aureliolo

Context

The Org Chart page (#778) ships with a Hierarchy/Communication view toggle in the toolbar, but the force-directed "Communication" view is stubbed -- selecting it shows a toast ("not yet available"). This issue covers the full implementation.

Scope

  • Force-directed graph layout using d3-force (or similar physics simulation)
  • Nodes represent agents (same AgentNode/CeoNode components)
  • Edge encoding: thickness = communication volume, animation speed = frequency
  • Data source: GET /messages channel data for inter-agent communication volume
  • Toggle between hierarchy (dagre) and force-directed layouts preserves node selection and viewport

Design reference

Dependencies

  • Communication volume data available from messages API (may need a new aggregation endpoint)

Deliverables

  • Force-directed layout engine integrated with React Flow
  • Edge thickness/animation encoding for communication patterns
  • Smooth transition animation between hierarchy and force views
  • Unit tests for force layout computation
  • Update Storybook stories

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio:mediumShould do, but not blockingspec:company-structureDESIGN_SPEC Section 4 - Company Structuretype:featNew feature implementation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions