Skip to content

refactor(frontend): delete 11 unreferenced Vue components and views (#2492) - #2496

Merged
vybe merged 1 commit into
devfrom
refactor/2492-delete-dead-vue
Sep 3, 2026
Merged

vybe merged 1 commit into
devfrom
refactor/2492-delete-dead-vue

Conversation

@dolho

@dolho dolho commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Deletes the 11 unreferenced Vue files (~2,900 lines) from #2492's table. Every candidate was re-verified before deletion — no static import, no route, no name match anywhere in the tree, and none reachable through the dynamic patterns the scan can't see: every <component :is> in the codebase resolves from registries (GRID_WIDGETS, the report-renderer map) whose string values the same name search covers, and there are no template-literal imports.

The YamlEditor decision (AC 2)

Deleted, with EditorHelpPanel.vue. The CSP rationale that kept them "unrevived" (prod is script-src 'self' with no unsafe-eval/worker-src; monaco needs both) is a permanent property of the deployment, not a pending decision — any future YAML editor would be a rewrite against a CSP-clean library, so the 530-line dead pair bought nothing and cost a scan exception forever. architecture.md's owning paragraph now records the deletion and the reason.

Test + ratchet fallout

  • refreshTreatment.spec.js (ent#253) source-asserted two of the deleted panels. It keeps its store half — stores/observability.js is live and is where the hasLoaded/available honesty was actually fixed — and its DashboardPanel assertions; the dead panels' assertions leave with them (18 tests, all passing).
  • Loading-gate baseline: regenerated via scan-loading-gates.mjs → pure shrink (77→75 gates, 60→58 files).
  • Raw-color baseline: shrunk by removing exactly the 11 files' entries (16 nongray + 464 gray). A full scripted regen was tried first and rejected: the committed baseline has drifted (49 files added since the last regen carry violations), so a wholesale regen would have raised allowances — the opposite of the ratchet's only-shrink rule. That drift is a separate cleanup worth its own issue.

Docs (AC 4)

Current-state docs updated where they presented a deleted file as live: architecture.md, operating-room.md (component-table rows removed), file-manager.md (deprecation header now says deleted; sub-components under FilesPanel.vue remain live), activity-monitoring.md ("exists but not integrated" → deleted; Operations owns the surface), agent-custom-metrics.md (status note: the metrics API remains, the renderer is gone), opentelemetry-integration.md, system-manifest.md, workspace-composer-typeahead.md, PHASE_14_OPENTELEMETRY.md. Dated point-in-time records (feature-flows.md changelog rows, learnings.md, docs/reports/, the 2026-03-07 OPS-001 spec) are left as history per the architecture.md editorial rule.

Known residual

stores/observability.js lost its last component consumer. It is outside this issue's file list ("deletions only" over the enumerated 11), so it stays — the next reachability sweep will list it, or it can ride the docs-drift companion.

Verification

  • npm run build — passes (pre-existing chunk-size warning only)
  • npm run test:unit — 73 files, 1,579 tests, all passing
  • Ratchet scans re-run via their scripts (outputs above); backend untouched.

Closes #2492

🤖 Generated with Claude Code

https://claude.ai/code/session_01NLfHNPtB5UCMk4LonZiJux

…2492)

Every file re-verified dead before deletion: no static import, no route,
no name match in any .vue/.js outside itself, and none reachable through
the dynamic patterns the scan cannot see — every `<component :is>` in
the tree resolves from registries (GRID_WIDGETS, the report renderer
map) whose string values were covered by the same name search, and there
are no template-literal imports.

Deleted: views/FileManager.vue (route removed for the per-agent Files
tab long ago), MetricsPanel.vue + ObservabilityPanel.vue (ent#253 kept
fixing them while unreferenced), UnifiedActivityPanel.vue (never
integrated; Operations #1109 owns the surface), operator/QueueList.vue +
QueueStats.vue (Operating Room leftovers), rooms/RoomComposer.vue +
RoomTranscript.vue (ent#170 remnants; the Workspace room UI replaced
them), StatusIndicator.vue (#67 semantic tokens), and — the explicit
keep-or-delete the issue asks for — YamlEditor.vue + EditorHelpPanel.vue
DELETED: the CSP rationale that kept them unrevived (prod is
script-src 'self' with no unsafe-eval/worker-src) is permanent, so a
revival would be a rewrite either way, and a 530-line dead pair is pure
liability. architecture.md's paragraph now records that.

refreshTreatment.spec.js keeps its store half (stores/observability.js
is live and is where the hasLoaded/available honesty was fixed) and its
DashboardPanel source assertions; the assertions over the two deleted
panels leave with them. Ratchet baselines shrink monotonically:
loading-gate via its scan script (75 gates / 58 files), raw-color by
removing exactly the 11 files' entries from the committed baseline — a
full scripted regen was tried first and REJECTED because the committed
baseline has drifted (49 files added since the last regen carry
violations), so a wholesale regen would have RAISED allowances, the
opposite of the ratchet's only-shrink rule. That drift is a separate
cleanup.

Docs: architecture.md, operating-room.md, file-manager.md,
activity-monitoring.md, agent-custom-metrics.md,
opentelemetry-integration.md, system-manifest.md,
workspace-composer-typeahead.md, PHASE_14 updated where they presented a
deleted file as live; dated point-in-time records (feature-flows.md
changelog rows, learnings.md, docs/reports, the 2026-03-07 OPS-001 spec)
left as history per the architecture.md editorial rule.

Known residual: stores/observability.js lost its last component consumer
(ObservabilityPanel) — outside this issue's file list, so it stays; the
next reachability sweep will list it.

Closes #2492

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NLfHNPtB5UCMk4LonZiJux
@dolho dolho added the ui PR touches the frontend UI — triggers Playwright e2e tests label Sep 2, 2026

@obasilakis obasilakis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/validate-pr: APPROVE

Every one of the 11 deletions is independently verified unreferenced at PR head (ed56f66), across static, dynamic and router surfaces:

  • git grep -w <Stem> -- src/frontend/ returns only two prose comments in tests/unit/refreshTreatment.spec.js:6,13.
  • No *.vue filename string anywhere outside docs; zero non-literal import(...).
  • All 8 <component :is> sites resolve from icon getters, 'router-link'/'div' literals, tiles/catalog.js (4 tiles) or ReportRenderer.vue's 5-entry map — none names a deleted component.
  • No /files route in router/; the components/file-manager/ sub-tree is still consumed by the live FilesPanel.vue.

Both ratchets shrink and all 26 checks pass, including e2e (the ui label) and build.

Warnings

  • Docs drift left behind — all current-state, none in the PR's changed-file set. AC4 already defers this to a companion docs-drift issue, so partial coverage is anticipated; the files are:
    • docs/memory/feature-flows/dark-mode-theme.md:201,212,214,223,230,236 and :374,378,381,383,384 — coverage tables/checklists listing FileManager, UnifiedActivityPanel, MetricsPanel, ObservabilityPanel, EditorHelpPanel, YamlEditor
    • docs/memory/feature-flows/agent-network.md:68 — ObservabilityPanel as a live OTel surface
    • docs/memory/requirements/core-agent.md:84 — QueueList, FileManager
    • docs/memory/requirements/roadmap.md:81 — "YamlEditor was NOT revived", now stale
  • src/frontend/src/stores/observability.js is now consumer-less except refreshTreatment.spec.js. The PR discloses this as an out-of-scope residual (the issue is deletions-only over the enumerated 11), which is right — but it needs a follow-up or it re-enters the next reachability scan.
  • raw-color-baseline.json was hand-edited rather than regenerated, which AC3 explicitly asks against. The edit itself is verifiably conservative — exactly the 11 file keys removed, totals shrinking 753→737 nongray, 7423→6959 gray, 141→130 files — but the header still reads "generated": "2026-07-31" / "commit": "5b28999", so nothing records the newer edit. (loading-gate-baseline.json was properly regenerated, 77→75 and 60→58.)

Suggestions

  • File the docs-drift follow-up now and reference it in the PR body, so the four files above don't strand.
  • File the baseline-drift issue the PR body already argues for (49 files' violations added since the last full regen) — that's what forced the hand edit.
  • Fold stores/observability.js and its spec's store half into whichever follow-up lands first.

Findings produced by /validate-pr (Claude Code).

@vybe
vybe merged commit e5529b2 into dev Sep 3, 2026
26 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui PR touches the frontend UI — triggers Playwright e2e tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants