Skip to content

feat: Multi-select and group drag on dashboard graph view #192

Closed

Description

@vybe

Summary

Add the ability to drag-select multiple agents on the dashboard graph view and move them as a group, enabling users to organize their agent layout spatially.

Motivation

As agent fleets grow, users need to visually organize agents into logical clusters (e.g., by team, workflow, or function). Currently, agents can only be dragged one at a time. Multi-select and group move would make spatial organization significantly faster.

Current Behavior

  • Single agent nodes can be dragged individually (@node-drag-stop in Dashboard.vue)
  • Positions are persisted to localStorage via networkStore.saveNodePositions()
  • No multi-select or box-select capability exists

Proposed Behavior

1. Box Selection (Marquee Select)

  • Click and drag on empty canvas area to draw a selection rectangle
  • All agent nodes within the rectangle become selected (highlighted border/glow)
  • Hold Shift to add to existing selection
  • Click empty canvas to deselect all

2. Click-to-Select

  • Ctrl/Cmd + Click on individual nodes to toggle selection
  • Selected nodes show a distinct visual indicator (e.g., colored border, selection ring)

3. Group Drag

  • Dragging any selected node moves all selected nodes together, preserving relative positions
  • On drag stop, persist all moved node positions to localStorage (existing saveNodePositions() mechanism)

4. Visual Feedback

  • Selection rectangle: semi-transparent blue overlay with dashed border
  • Selected nodes: subtle highlight ring or border color change
  • During group drag: slight opacity reduction or shadow elevation on the moving group

Technical Approach

Library: Vue Flow (@vue-flow/core v1.48.0) already supports multi-selection natively via the selectionMode prop and selection events.

Key Vue Flow features to leverage:

  • selection-mode prop on <VueFlow> — enables box selection
  • @selection-drag-stop event — fires when selected nodes are moved
  • @selection-start / @selection-end events
  • Node selected state — built-in property on each node
  • Multi-select with Ctrl/Cmd + Click is supported out of the box

Files to modify:

  • src/frontend/src/views/Dashboard.vue — Enable selection mode, add selection event handlers
  • src/frontend/src/stores/network.js — Persist group positions on selection drag stop
  • src/frontend/src/components/AgentNode.vue — Add selected-state styling
  • src/frontend/src/components/SystemAgentNode.vue — Same selected-state styling

Acceptance Criteria

  • Users can draw a selection box on the canvas to select multiple agents
  • Ctrl/Cmd + Click toggles individual node selection
  • Dragging any selected node moves all selected nodes as a group
  • Group-moved positions are persisted to localStorage
  • Selected nodes have a visible indicator (border/glow)
  • Clicking empty canvas deselects all nodes
  • Existing single-node drag behavior is unaffected when no multi-select is active

Activity

  1. added
    enhancement
    priority-p3
    on Mar 26, 2026
  2. added
    complexity-low
    theme-ui-ux
    on Jun 3, 2026
  3. added
    type-feature
    on Jun 3, 2026
  4. added
    status-incubating
    on Jun 14, 2026
  5. vybe commented on Jul 3, 2026

    @vybe
    ContributorAuthor

    Incubation triage 2026-07-03: closing — P3 polish, parked ~3 months with no pull. Reopen if graph-view usage grows.

  6. removed
    status-incubating
    on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    complexity-lowenhancementpriority-p3theme-ui-uxtype-feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions