Skip to content

Delete 4 orphaned frontend components - #2602

Merged
mstomar125 merged 1 commit into
mainfrom
issue-2580-orphaned-components
Sep 14, 2026
Merged

mstomar125 merged 1 commit into
mainfrom
issue-2580-orphaned-components

Conversation

@mstomar125

Copy link
Copy Markdown
Contributor

Summary

Deletes 4 Svelte components confirmed to have zero importers anywhere in the repo:

  • packages/desktop-app/src/lib/components/version-conflict-modal.svelte — pre-ADR-068 conflict UI, superseded by conflicts-pane.svelte/conflict-toast.svelte/stores/conflicts.svelte.ts
  • packages/desktop-app/src/lib/components/agents/ai-onboarding-dialog.svelte — original ACP-agent onboarding, superseded by ai-chat-model-selector.svelte/ai-chat-pty-session.svelte
  • packages/desktop-app/src/lib/components/agents/agent-selector.svelte — same onboarding pair
  • packages/desktop-app/src/lib/components/chat/tool-call-display.svelte — built to render ToolExecutionRecord tool calls, never wired into chat-message.svelte

lib/components/agents/ is now empty and was removed along with its contents. No co-located test files existed for any of the 4 (none were deleted).

Re-verified immediately before deletion (not just relying on the issue filing) via repo-wide grep — both kebab-case filenames and PascalCase component names — that all 4 still have zero importers outside their own definitions. All shared modules the 4 files imported from (focus-trap, model-store.svelte, agent-store.svelte, agent-types) have other real consumers, so no further dead-code cascade.

1236 lines removed, 0 added.

Test plan

  • bun run test baseline before changes: 240 files / 4951 tests passed
  • bun run quality:fix clean (eslint, svelte-check, tsc, cargo fmt, cargo clippy) — zero errors/warnings
  • bun run test:all clean (frontend coverage + scripts + skill + full Rust workspace)
  • Pre-push gate (scripts/test-gate.ts, ADR-047) passed clean: build:skill, quality:scripts:check, test:all, cargo build --bin nodespaced, full e2e suite — zero failures

Closes #2580

🤖 Generated with Claude Code

version-conflict-modal.svelte is the pre-ADR-068 conflict UI, superseded
by conflicts-pane.svelte/conflict-toast.svelte/stores/conflicts.svelte.ts.
ai-onboarding-dialog.svelte and agent-selector.svelte are the original
ACP-agent onboarding pair, superseded by ai-chat-model-selector.svelte/
ai-chat-pty-session.svelte. tool-call-display.svelte was built to render
ToolExecutionRecord tool calls but was never wired into chat-message.svelte.

Re-verified via repo-wide grep immediately before deletion that all four
still have zero importers outside their own definitions. No co-located
test files existed for any of them. lib/components/agents/ is now empty
and was removed along with its contents.

Closes #2580

Co-Authored-By: Claude Sonnet 5 <[email protected]>
@mstomar125
mstomar125 merged commit c9fa6b4 into main Sep 14, 2026
@mstomar125
mstomar125 deleted the issue-2580-orphaned-components branch September 14, 2026 05:49
malibio added a commit that referenced this pull request Sep 16, 2026
…loses #2591) (#2670)

DESIGN.md restricts box-shadow to floating surfaces (popovers, dropdowns)
and states modals get no drop shadow -- the backdrop provides separation.
Eight components carried hand-picked shadows in violation of that rule.

Removes the shadow from all of them. The Toast section specifies z-index
only and the "Don't" list scopes shadows to popovers/dropdowns, so
conflict-toast and update-banner fall under the same rule as the modal
panels rather than getting a sanctioned toast shadow.

Underneath the shadows sat a larger defect. Four of these components
referenced a --color-* vocabulary (--color-surface, --color-text-primary,
--color-border, --color-accent, ...) that app.css defines nowhere, so every
reference silently resolved to its hardcoded fallback. Those fallbacks are
dark-only values (#1e1e1e surface, #e0e0e0 text), meaning these components
rendered dark chrome in light mode regardless of theme -- a real theming
bug masked by token-shaped syntax that did nothing.

Each literal is mapped by semantic intent rather than nearest hex match:
the delete button's #c0392b becomes --destructive, update-banner's and
pro-relogin's action blues become --primary (DESIGN.md: primary for all
interactive affordances), conflict-toast's amber becomes --warning.

Backdrop overlays keep rgba(0, 0, 0, 0.5): that is the consistent app-wide
convention across every modal, and the issue scopes backdrop opacity out.
conflict-toast's animation violations are pre-existing and unrelated.

The design-token baseline ratchets 251 -> 201 accordingly.

version-conflict-modal.svelte, named in the issue as the holder of a
hardcoded Material palette, was deleted as an orphaned component in #2602;
its two acceptance criteria are moot.

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.

Delete 4 orphaned/superseded frontend components (version-conflict-modal, agent onboarding pair, tool-call-display)

1 participant