Skip to content

feat: Org Chart inline drag-drop agent reassignment #873

@Aureliolo

Description

@Aureliolo

Context

The Org Chart page (#778) supports CRUD via right-click context menus, but drag-drop reassignment of agents between departments is not yet implemented. The docs/design/page-structure.md defers inline graph editing to v0.6+, but the original issue (#778, absorbing #674) listed drag-drop as a deliverable.

Scope

  • Drag agent nodes between department group nodes to reassign
  • Visual feedback during drag: ghost preview, drop zone highlight (accent border + accent/5% background)
  • Spring animation on drop settle (springBouncy preset)
  • Invalid drop (outside any department) springs back to original position
  • Optimistic update with rollback on API failure
  • ARIA announcements for drag start/over/drop events

Design reference

Dependencies

Deliverables

  • React Flow onNodeDrag + onNodeDragStop with department drop target detection
  • Visual feedback (ghost, drop zone highlight, settle animation)
  • Optimistic update with rollback
  • Accessibility: ARIA live announcements
  • Unit tests for drop target detection logic

Metadata

Metadata

Assignees

No one assigned

    Labels

    prio:mediumShould do, but not blockingspec:company-structureDESIGN_SPEC Section 4 - Company Structurespec:human-interactionDESIGN_SPEC Section 13 - Human Interaction Layertype:featureNew feature implementationv0.5Minor version v0.5v0.5.1Patch release v0.5.1

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions