Repository navigation
Description
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 fromsrc/frontend/src/views/Dashboard.vue -
'graph'removed fromVIEW_MODESinsrc/frontend/src/stores/network.js, including graph-only state (node position persistence) and thesetViewModeinvalid-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.vueandSystemAgentNode.vuedeleted (Graph view is their only consumer) - All four
@vue-flow/*packages removed fromsrc/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.vueimport it). ReplayTimeline.vueonly referencesAgentNode.vuein 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 istimeline(current global default) — recommend timeline for least surprise.
Activity
refactor(dashboard): decommission the Graph view (Vue Flow node canva…
docs(screenshots): refresh the numbered set to the current UI and IA (#…