Skip to content

chore(ui): delete 9 unrouted fake-data tabs + orphan mock files (W15 PR 3 of 8) - #208

Merged
Ghenghis merged 1 commit into
developfrom
claude/w15-cleanup-fake-tabs
May 10, 2026
Merged

Ghenghis merged 1 commit into
developfrom
claude/w15-cleanup-fake-tabs

Conversation

@Ghenghis

@Ghenghis Ghenghis commented May 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

Per W15-A4 §6 (Mock/Fake Auditor) and W15-A3 (Route/Component Completeness), this PR deletes 21 dead-but-shipped source files from the ui/ tree:

  • 9 unrouted UNACCEPTABLE_FAKE tabs in 03_implementation/ui/src/tabs/ (each shipped hardcoded MOCK_* arrays as if-real UI state; none in App.tsx:TAB_COMPONENTS)
  • 11 orphan mock data files in 03_implementation/ui/src/data/mock/ (only consumed by the 9 tabs above)
  • 1 stale 14-tab manifest 03_implementation/ui/src/app/routes.tsx (pre-W6 dead code; superseded by routes.ts with 17 live tabs)

This is PR 3 of the 8-PR W15 cleanup sequence per W15-A6 §6.

Hermes evidence chain

  • Hermes evidence chain: PASS
  • Task ID: W15-CLEANUP-2026-05-10
  • hermes_run_gate: build + tsc + import-audit clean
  • Lock owner: claude-w15-cleanup (all 22 files locked + released)
  • Hermes evidence: pre-deletion grep audit produced 0 import hits for the 9 tabs and only-internal hits for the 11 mocks; tsc --noEmit and npm run build both exit 0 after deletion.

File deletion list

Tabs (9)

  • 03_implementation/ui/src/tabs/Workflows.tsx
  • 03_implementation/ui/src/tabs/PrintQueue.tsx
  • 03_implementation/ui/src/tabs/SystemLogs.tsx
  • 03_implementation/ui/src/tabs/Proof.tsx
  • 03_implementation/ui/src/tabs/BlenderMCP.tsx
  • 03_implementation/ui/src/tabs/Slicing.tsx
  • 03_implementation/ui/src/tabs/Fleet.tsx
  • 03_implementation/ui/src/tabs/PrinterControl.tsx
  • 03_implementation/ui/src/tabs/DockedApps.tsx

Mock data (11)

  • 03_implementation/ui/src/data/mock/agents.ts
  • 03_implementation/ui/src/data/mock/dag.ts
  • 03_implementation/ui/src/data/mock/dimensional.ts
  • 03_implementation/ui/src/data/mock/jobs.ts
  • 03_implementation/ui/src/data/mock/logs.ts
  • 03_implementation/ui/src/data/mock/notifications.ts
  • 03_implementation/ui/src/data/mock/printers.ts
  • 03_implementation/ui/src/data/mock/proof.ts
  • 03_implementation/ui/src/data/mock/serviceHealth.ts
  • 03_implementation/ui/src/data/mock/system.ts
  • 03_implementation/ui/src/data/mock/workflows.ts

Stale manifest (1)

  • 03_implementation/ui/src/app/routes.tsx (14-tab pre-W6 manifest; not imported)

Pre-deletion audit

Check Result
grep "from.*tabs/<NAME>" for each tab 0 hits in production code (all 9)
grep "data/mock/" repo-wide 10 hits, all inside the 9 tabs being deleted
grep PRIMARY_TABS only in routes.ts (not routes.tsx)
grep "app/routes.tsx" 1 hit in playwright.breadth.config.ts:45 (comment, not import)

No file had any unexpected import. 0 aborted deletions.

Verification

Gate Result
npx tsc --noEmit exit 0
npm run build exit 0 (only pre-existing chunk-size warnings)
npx vitest run 118 passed / 4 skipped / 0 failed (15 test files)
git diff --cached --stat 21 files changed, 2148 deletions(-), 0 insertions(+)
App.tsx TAB_COMPONENTS unchanged Confirmed (no routes lost)

Sources cited

  1. Official: ESLint no-unused-modules rule — https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unused-modules.md
  2. Cross-project: TypeScript dead-code-elimination patterns (Vite tree-shaking + tsconfig.noUnusedLocals).

Cites: W15-A4 §3, §6 + W15-A3 + W15-A6 §6

Test plan

  • tsc --noEmit passes
  • npm run build passes
  • vitest run passes (118/0)
  • git diff --stat shows ONLY deletions in tabs/ + data/mock/ + routes.tsx
  • Production routes unchanged (App.tsx:TAB_COMPONENTS untouched)
  • Pre-deletion grep audit clean (0 unexpected imports)
  • W15 ledger updated with this PR entry
  • Hermes locks released

Summary by CodeRabbit

  • Chores
    • Removed multiple placeholder UI tabs and associated mock data files used for development and testing purposes.
    • Cleaned up application routing configuration and orphaned mock dataset files.
    • Updated project completion documentation to reflect cleanup activities and verification results.

Review Change Stack

…PR 3 of 8)

Removes pre-Wave-6 dead code identified by W15-A4 (Mock/Fake Auditor) and
W15-A3 (Route/Component Completeness) audits. None of these files were
routed by the production `TAB_COMPONENTS` map in `App.tsx` (17 entries,
sourced from `app/routes.ts`) — they were tree-shaken from the bundle
today but existed in `src/` with `export function …Tab()` signatures
inviting accidental wire-up.

Per W15-A6 §6 (Recommended single-PR shape):
- 9 tabs in `ui/src/tabs/`: Workflows, PrintQueue, SystemLogs, Proof,
  BlenderMCP, Slicing, Fleet, PrinterControl, DockedApps (each shipped
  hardcoded `MOCK_*` arrays as canned UI state — OWASP A09:2021
  observability failure if ever routed).
- 11 mock data files in `ui/src/data/mock/`: agents, dag, dimensional,
  jobs, logs, notifications, printers, proof, serviceHealth, system,
  workflows (all orphan once the 9 tabs above are removed).
- 1 stale 14-tab manifest `ui/src/app/routes.tsx` (pre-W6; superseded
  by `routes.ts` with the live 17-tab set; only referenced by a
  Playwright config comment).

Hermes evidence chain: PASS
Task ID: W15-CLEANUP-2026-05-10
hermes_run_gate: build + tsc + import-audit clean

Pre-deletion audit (per file, 21 files):
- `grep -r "from.*tabs/<NAME>"`: 0 hits in production code for each tab
- `grep -r "data/mock/"`: 10 hits, ALL inside the 9 tabs being deleted
- `grep PRIMARY_TABS`: defined only in `routes.ts` (not `routes.tsx`);
  Sidebar + SimpleHermesDashboard import from `app/routes` which
  resolves to `routes.ts` (Vite + tsc prefer `.ts` over `.tsx`)
- `grep app/routes.tsx`: only hit is a comment in
  `playwright.breadth.config.ts:45`, not an import

Verification:
- `tsc --noEmit`: exit 0
- `npm run build`: exit 0 (only pre-existing chunk-size warnings)
- `vitest run`: 118 passed / 4 skipped / 0 failed (15 test files)

Diff:
- 21 files changed, 2148 deletions(-), 0 insertions(+)
- App.tsx unchanged (these tabs were never in TAB_COMPONENTS)
- No production routes lost

Sources cited:
1. Official: ESLint `no-unused-modules` rule
   (https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-unused-modules.md)
2. Cross-project: TypeScript dead-code-elimination patterns (Vite tree-
   shaking + `tsconfig.noUnusedLocals`).

Cites: W15-A4 §3, §6 + W15-A3 (stale routes.tsx)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented May 10, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a4913079-1e1f-44e6-ac39-0c8ec4959812

📥 Commits

Reviewing files that changed from the base of the PR and between 8dccb7b and b1bf2a5.

📒 Files selected for processing (22)
  • 03_implementation/docs/handoffs/GUI_VISUAL_E2E_COMPLETION_LEDGER_2026-05-10.md
  • 03_implementation/ui/src/app/routes.tsx
  • 03_implementation/ui/src/data/mock/agents.ts
  • 03_implementation/ui/src/data/mock/dag.ts
  • 03_implementation/ui/src/data/mock/dimensional.ts
  • 03_implementation/ui/src/data/mock/jobs.ts
  • 03_implementation/ui/src/data/mock/logs.ts
  • 03_implementation/ui/src/data/mock/notifications.ts
  • 03_implementation/ui/src/data/mock/printers.ts
  • 03_implementation/ui/src/data/mock/proof.ts
  • 03_implementation/ui/src/data/mock/serviceHealth.ts
  • 03_implementation/ui/src/data/mock/system.ts
  • 03_implementation/ui/src/data/mock/workflows.ts
  • 03_implementation/ui/src/tabs/BlenderMCP.tsx
  • 03_implementation/ui/src/tabs/DockedApps.tsx
  • 03_implementation/ui/src/tabs/Fleet.tsx
  • 03_implementation/ui/src/tabs/PrintQueue.tsx
  • 03_implementation/ui/src/tabs/PrinterControl.tsx
  • 03_implementation/ui/src/tabs/Proof.tsx
  • 03_implementation/ui/src/tabs/Slicing.tsx
  • 03_implementation/ui/src/tabs/SystemLogs.tsx
  • 03_implementation/ui/src/tabs/Workflows.tsx

📝 Walkthrough

Walkthrough

This PR removes nine mock-only UI tab implementations, eleven supporting mock data modules, and the tab route manifest (routes.tsx with TabDef and TABS exports). The completion ledger documents the cleanup with audit and build verification results.

Changes

Mock UI Cleanup and Orphan Tab Removal

Layer / File(s) Summary
Tab Route Manifest
03_implementation/ui/src/app/routes.tsx
Removed exported TabDef type and TABS constant array (14 tab entries) along with lucide-react icon imports.
Mock Data Modules
03_implementation/ui/src/data/mock/*.ts
Deleted all mock data exports: MOCK_AGENTS, MOCK_PLAN_DAG, MOCK_DIMENSIONAL_REPORTS, MOCK_JOBS, MOCK_LOGS, MOCK_NOTIFICATIONS, MOCK_PRINTERS, MOCK_PROOF_BUNDLES, LATEST_BUNDLE, MOCK_SERVICE_HEALTH, MOCK_SYSTEM_SNAPSHOT, and workflow templates (STANDARD_PIPELINE_TEMPLATE, DIMENSIONAL_TRUTH_PIPELINE_TEMPLATE, MOCK_WORKFLOWS).
Tab Component Implementations
03_implementation/ui/src/tabs/BlenderMCP.tsx, DockedApps.tsx, Fleet.tsx, PrintQueue.tsx, PrinterControl.tsx, Proof.tsx, Slicing.tsx, SystemLogs.tsx, Workflows.tsx
Removed nine React tab components and their internal helper components (e.g., KV, PrinterRow, JogButton, TempRow, TemplateCard) along with status-tone mappings and local mock datasets.
Cleanup Documentation
03_implementation/docs/handoffs/GUI_VISUAL_E2E_COMPLETION_LEDGER_2026-05-10.md
Added Wave 15 cleanup loop entry documenting removal of unrouted fake tabs, orphan mock data files, and stale routes manifest; includes pre-deletion audit results and post-cleanup verification (tsc --noEmit, npm run build, vitest run).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • Ghenghis/Hermes3D#13: Directly removes the same UI files, route exports, and mock data that were introduced in Phase 2 UI final.
  • Ghenghis/Hermes3D#15: Modifies the same mock DAG and tab components that this PR removes, creating overlapping changes.
  • Ghenghis/Hermes3D#14: Adds FleetTab and MOCK_PRINTERS that this PR removes, indicating conflicting changes.

Poem

🐰 A cleanup hop through phantom tabs,
Mock data scattered, now all zapped,
Routes retracted, ledger logged,
Phase 2 orphans finally delogged! 📋✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/w15-cleanup-fake-tabs

Comment @coderabbitai help to get the list of available commands and usage tips.

@Ghenghis
Ghenghis merged commit 3934eb8 into develop May 10, 2026
3 of 4 checks passed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request implements a cleanup of the GUI codebase by removing unrouted tabs, orphan mock data files, and a stale route manifest. It deletes various mock data definitions and their associated UI tab components, including the Blender MCP, Fleet, Print Queue, and Workflows tabs. Additionally, the handoff ledger has been updated to document these removals. There are no review comments to assess, and I have no feedback to provide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant