Skip to content

refactor: Split frontend large components (ProcessEditor, ReplayTimeline, TasksPanel) #125

Closed as not planned

Description

@vybe

Problem

Three frontend components exceed 1000 lines:

File Lines
views/ProcessEditor.vue 1594
components/ReplayTimeline.vue 1211
components/TasksPanel.vue 1167

Additionally near-critical:
| views/Agents.vue | 1174 |
| views/AgentDetail.vue | 1062 |

Proposed Solution

ProcessEditor.vue (1594 → ~400 + components)

  • Extract ProcessYamlEditor.vue — YAML editor with validation
  • Extract ProcessStepForm.vue — Step configuration form
  • Extract ProcessPreview.vue — Visual step preview
  • Extract useProcessValidation.js — Validation composable

ReplayTimeline.vue (1211 → ~300 + components)

  • Extract TimelineCanvas.vue — D3/canvas rendering
  • Extract TimelineControls.vue — Zoom, pan, playback controls
  • Extract useTimelineLayout.js — Layout calculation composable

TasksPanel.vue (1167 → ~300 + components)

  • Extract TaskForm.vue — Task creation/editing form
  • Extract ExecutionList.vue — Execution history table
  • Extract ExecutionStatusBadge.vue — Status rendering

Agents.vue (1174 → ~300 + components)

  • Extract AgentFilterBar.vue — Name/status/tag filters
  • Extract AgentCard.vue — Individual agent tile (if not already)

AgentDetail.vue (1062 → ~300 + components)

  • Extract remaining inline tab content into dedicated panel components

Acceptance Criteria

  • No frontend file > 600 lines
  • All UI functionality preserved
  • Hot reload works for extracted components

Source

Refactor audit 2026-03-13

Activity

  1. added
    priority-p1
    type-refactor
    on Mar 14, 2026
  2. added
    complexity-medium
    theme-devex
    on Jun 3, 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-mediumpriority-p1theme-devextype-refactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions