Skip to content

chore(console): remove dead compose-library frontend code (studio#128) - #133

Merged
brettchien merged 1 commit into
mainfrom
chore/remove-dead-compose-library-ui-128
Aug 29, 2026
Merged

chore(console): remove dead compose-library frontend code (studio#128)#133
brettchien merged 1 commit into
mainfrom
chore/remove-dead-compose-library-ui-128

Conversation

@brettchien

Copy link
Copy Markdown
Contributor

Summary

Item 6 of #128's runbook. Discovered while scoping this: there was never a separate "Edit config" screen for the compose library specifically — the "Edit config" action on the Fleets screen edits fleets.toml (the fleet-binding config), a different thing entirely. The compose library (Template/Overlay) was only ever reachable through the New Fleet wizard's old Step 2, which #132 already fully replaced. So this item turned out to be code cleanup, not a UI screen to remove.

Change

Removed console/src/compose.ts (Library/BundlePreview types, libraryNames, renderPreviewHtml) and its test file — confirmed via grep that nothing in the console imports it anymore after #132.

Deliberately not touched: studio_compose::compose_named/Bundle (Rust) and the deploy_provision/compose_library_get/compose_library_set/compose_preview MCP tools. These are still the live path for provision_from_library/provision_from_library_k8s — the compose-library provisioning flow itself still exists and works, the wizard just doesn't route through it anymore. Removing a still-registered, still-working MCP tool that some other caller could be using is a bigger, separate decision than cleaning up now-dead console code, and there's no signal the mechanism itself (as opposed to the wizard's old UI) should go away.

Verification

  • npm run typecheck clean, npm test 100/100 passing (106 → 100, exactly compose.test.ts's 6 tests going with it), npm run build succeeds.
  • Bundle size unchanged — this was already dead/tree-shaken code, a source-hygiene cleanup rather than a size win.

Ref #128.

🤖 Generated with Claude Code

compose.ts (Library/BundlePreview types, libraryNames, renderPreviewHtml)
had exactly one caller left in the console — the New Fleet wizard's old
Template/Overlay Step 2, replaced entirely in the vendor+chat-platform+ACP
rewrite. Nothing else in the console imports it anymore (confirmed: only
its own test file did). Removing both.

Scoped to the frontend only — studio_compose::compose_named/Bundle (Rust)
and the deploy_provision/compose_library_get/compose_library_set/
compose_preview MCP tools are untouched: they're still the live path for
provision_from_library/provision_from_library_k8s (the compose-library
provisioning flow itself still exists and works, the wizard just doesn't
route through it anymore), and removing a still-registered, still-working
MCP tool is a bigger call than cleaning up now-dead console code — not
made here.

Verification: npm run typecheck clean, npm test 100/100 passing (106 -
compose.test.ts's 6), npm run build succeeds, bundle size unchanged
(already tree-shaken, this is a source-hygiene cleanup not a size win).

Ref #128.
@brettchien
brettchien merged commit ec8905f into main Aug 29, 2026
2 checks passed
@brettchien
brettchien deleted the chore/remove-dead-compose-library-ui-128 branch August 29, 2026 09:10
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