Repository navigation
Delete 4 orphaned frontend components - #2602
Merged
Merged
Conversation
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]>
3 tasks
This was referenced Sep 16, 2026
Closed
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 byconflicts-pane.svelte/conflict-toast.svelte/stores/conflicts.svelte.tspackages/desktop-app/src/lib/components/agents/ai-onboarding-dialog.svelte— original ACP-agent onboarding, superseded byai-chat-model-selector.svelte/ai-chat-pty-session.sveltepackages/desktop-app/src/lib/components/agents/agent-selector.svelte— same onboarding pairpackages/desktop-app/src/lib/components/chat/tool-call-display.svelte— built to renderToolExecutionRecordtool calls, never wired intochat-message.sveltelib/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 testbaseline before changes: 240 files / 4951 tests passedbun run quality:fixclean (eslint, svelte-check, tsc, cargo fmt, cargo clippy) — zero errors/warningsbun run test:allclean (frontend coverage + scripts + skill + full Rust workspace)scripts/test-gate.ts, ADR-047) passed clean: build:skill, quality:scripts:check, test:all, cargo build --bin nodespaced, full e2e suite — zero failuresCloses #2580
🤖 Generated with Claude Code