Repository navigation
refactor(sidebar): delete the unused pre-template workspace card components - #46833
Conversation
WorktreeCardParentContent and WorktreeCardHeader had no importers since cards render from the template, and they still carried the rename-time wrapper swap that remounted the title. Their only dependents (meta row, secondary rows, presentation) go with them, along with stale baseline entries.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Upstream origin/main 0b23e7a (388 commits) into fork main 6f98610. Accepted upstream's test-suite cut (stablyai#46786) and dead card components (stablyai#46833) on all 44 modify/delete conflicts. Fork-feature regression tests removed with it: - #63: federation-worker-brief-agent-in-front, orchestration-structured-worker-retry - #67: federated-release-safety, federated-transport-safety, worker-release - #69: worker-list-pagination - claude accounts: repo-update-host-guard, claude-session-account-move - git graph: hosted-review-creation-gitlab-self-hosted - passkeys: main-process-ready-persistence-cleanup - branch cleanup: remove-worktree-branch-cleanup, worktree-remove-branch-deletion, remove-worktree - test isolation: dependency-security-release Fork-only tests that imported upstream-deleted fixtures were removed too. Code conflicts keep both sides: - Claude background evidence helper now uses upstream's running-task map (stablyai#47081); status payload carries fork monitoredWork + upstream backgroundCommands. - Worker start: upstream bindTerminal/handOver split reads the re-minted pane handle from setupStage (#29/#61); fork deadline brief guard (#63) plus upstream abort checks in preamble delivery. - Status bar: fork per-account usage roster with upstream's unreachable-host gating (stablyai#42644); a null account owner now shows no roster instead of local accounts. - client-ui-params.ts: moved feature-interaction schemas to their own module to stay under max-lines with the fork's omp status-bar fields. Gates: install:release, mobile frozen install, pnpm tc, mobile typecheck and typecheck:tests, conflict-area tests (38 files), independent review (1 finding, fixed), check:changed vs fork parent (only finding: upstream's unchanged bot-run-results.test.ts casts).
ELI5
Some old sidebar card code was still in the repo even though nothing used it. It also held the pattern that broke double-click rename (fixed in #46816), so someone could copy it back. This deletes it.
What Changed
WorktreeCardParentContentandWorktreeCardHeader, along with the three files only they used:worktree-card-meta-row,worktree-card-secondary-rowsandworktree-card-presentation. Cards render from the card template now.Why
These files had no importers: no static, dynamic, test, fixture, e2e, script or config references. They still swapped the title's wrapper on rename state, which is the remount pattern #46816 removed from the live template.
Linked Issue
Follow-up to #46816. No issue filed.
Visual Proof
N/A: deletes code nothing renders.
Testing
No tests: a pure deletion.
pnpm tc:webandpnpm check:changed(39 checks) pass. The dead set was found by walking imports until nothing else became orphaned; the repo'saudit:dead-code(knip) ran out of memory here.Performance
None, because only unreachable code is removed.
Risk
Low. If anything did still use these files, the build would fail. A plain revert restores them.
Level: Low
AI Disclosure
Review
Codex and a Claude reviewer both searched the repo for paths and exported names and found nothing left. The one P3 (stale comments) is fixed.
Agent skill upstream boundary
Notes
The DOM markers
data-worktree-card-parent-contentand friends stay; the template still sets them.Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)