Skip to content

refactor: decommission the dashboard Graph view (Vue Flow node canvas) #1689

Closed

Description

@vybe

Summary

Remove the Graph mode from the dashboard's Grid / Graph / Timeline view toggle. The Graph view is the legacy Vue Flow node canvas; with the Grid view (magnetic tile canvas) and Timeline (default) covering fleet overview needs, the Graph mode is redundant surface area carrying its own component tree and four @vue-flow/* dependencies.

Context

The dashboard currently has three modes (VIEW_MODES = ['grid', 'graph', 'timeline'] in src/frontend/src/stores/network.js), with the choice persisted in localStorage['trinity-dashboard-view']. The Grid view superseded the Graph canvas as the spatial fleet view; keeping Graph means maintaining a parallel render path (drag/positions, fit-view, reset-layout) and the Vue Flow dependency for a view that no longer earns its upkeep.

Decommission scope is the dashboard Graph mode only — the Timeline replay feature (components/ReplayTimeline.vue) is part of Timeline mode and stays.

Acceptance Criteria

  • The dashboard mode toggle offers only Grid and Timeline; all viewMode === 'graph' branches (graph canvas, graph-only Reset Layout button, graph fit-view on load) are removed from src/frontend/src/views/Dashboard.vue
  • 'graph' removed from VIEW_MODES in src/frontend/src/stores/network.js, including graph-only state (node position persistence) and the setViewMode invalid-mode fallback (currently falls back to 'graph') — shared state used by Grid (working state, circuit-breaker map) is preserved
  • A persisted localStorage['trinity-dashboard-view'] = 'graph' preference degrades gracefully to the default mode (no error, no blank canvas)
  • src/frontend/src/components/AgentNode.vue and SystemAgentNode.vue deleted (Graph view is their only consumer)
  • All four @vue-flow/* packages removed from src/frontend/package.json (no remaining imports)
  • Frontend e2e/visual tests referencing graph mode updated; suite green
  • docs/memory/architecture.md (dashboard modes, technology stack Vue Flow entry) and the dashboard feature flow updated to reflect two modes

Technical Notes

  • Verify no other consumer of Vue Flow exists before dropping the deps (as of today only Dashboard.vue, AgentNode.vue, SystemAgentNode.vue import it).
  • ReplayTimeline.vue only references AgentNode.vue in a comment — replay is Timeline-mode functionality and is out of scope.
  • Decide whether the post-removal default for users with a saved 'graph' preference is timeline (current global default) — recommend timeline for least surprise.

Activity

  1. added
    priority-p2
    type-refactor
    theme-ui-ux
    status-ready
    on Jul 18, 2026
  2. added
    status-in-progress
    and removed
    status-ready
    on Jul 20, 2026
  3. self-assigned this
    on Jul 20, 2026
  4. added
    status-in-dev
    and removed
    status-in-progress
    on Jul 20, 2026
  5. removed
    status-in-dev
    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

Labels

priority-p2theme-ui-uxtype-refactor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions