Skip to content

refactor(sidebar): delete the unused pre-template workspace card components - #46833

Merged
AmoabaKelvin merged 2 commits into
mainfrom
chore/remove-dead-card-parent-content
Nov 22, 2026
Merged

AmoabaKelvin merged 2 commits into
mainfrom
chore/remove-dead-card-parent-content

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

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.

Files Added Deleted Net
Test 0 0 0 0
Prod 8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​632 $\color{#cf222e}{\Huge{\mathbf{−}}}$​630

What Changed

  • Deleted WorktreeCardParentContent and WorktreeCardHeader, along with the three files only they used: worktree-card-meta-row, worktree-card-secondary-rows and worktree-card-presentation. Cards render from the card template now.
  • Removed their stale entries from the focus-read baseline and the localization allowlist, and two comments that referred to parity tests that no longer exist.

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

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below
  • Every added test fails without this change and avoids the test anti-patterns

No tests: a pure deletion. pnpm tc:web and pnpm check:changed (39 checks) pass. The dead set was found by walking imports until nothing else became orphaned; the repo's audit: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

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

The DOM markers data-worktree-card-parent-content and friends stay; the template still sets them.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

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.
@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The patch deletes the worktree card presentation builder and type, along with components for the header, parent content, metadata, and secondary rows. It removes related focus-baseline and localization-allowlist entries. It also edits a default template comment that referenced parity tests.

Merge Risk: Minimal · up to 08f22

This change removes unused worktree card components and their stale config entries. The live card renders from the template, so users should see no behavior change. Merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: deleting unused pre-template workspace card components. The raw summary confirms the deleted components and files match this, and the title is specific and concise. It…
Description check Passed The description follows the template. It has ELI5, What Changed, Why, Linked Issue (follow-up to #46816, no issue filed), Visual Proof marked N/A with reason, Testing, Performance, Risk with level, AI…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: deleting unused pre-template workspace card components. The raw summary confirms the deleted components and files match this, and the title is specific and concise. It uses the conventional refactor(sidebar) prefix.

Full details: Description check

Explanation

The description follows the template. It has ELI5, What Changed, Why, Linked Issue (follow-up to #46816, no issue filed), Visual Proof marked N/A with reason, Testing, Performance, Risk with level, AI Disclosure, Review, upstream boundary, Notes, and Checklist. The Linked Issue section is weak because the template says an actual issue should always be linked for outside contributors. The author says no issue was filed, and the Performance line has only a short reason. The AI Disclosure section is empty. The author may be a maintainer, which the template allows, but the reviewer should confirm.

Resolution

Confirm whether the author is a stablyai maintainer. If the author is an outside contributor, link an actual issue in the Linked Issue section. Optionally fill in the AI Disclosure section if AI tools were used.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e1c09ed1-b3b2-46c4-8ff6-37170a3253c2
Commits

Reviewing files that changed from the base of the PR and between f2c21fa and 08f22c4.

Files selected for processing: 8

  • config/focus-setting-read-baseline.txt
  • config/localization-coverage-allowlist.json
  • src/renderer/src/components/sidebar/workspace-card/metadata/worktree-card-meta-row.tsx
  • src/renderer/src/components/sidebar/workspace-card/surface/worktree-card-header.tsx
  • src/renderer/src/components/sidebar/workspace-card/surface/worktree-card-parent-content.tsx
  • src/renderer/src/components/sidebar/workspace-card/surface/worktree-card-presentation.tsx
  • src/renderer/src/components/sidebar/workspace-card/surface/worktree-card-secondary-rows.tsx
  • src/renderer/src/components/sidebar/workspace-card/template/default-workspace-card.ts
Files with no reviewable changes: 6

  • config/localization-coverage-allowlist.json
  • src/renderer/src/components/sidebar/workspace-card/metadata/worktree-card-meta-row.tsx
  • src/renderer/src/components/sidebar/workspace-card/surface/worktree-card-header.tsx
  • src/renderer/src/components/sidebar/workspace-card/surface/worktree-card-parent-content.tsx
  • src/renderer/src/components/sidebar/workspace-card/surface/worktree-card-presentation.tsx
  • src/renderer/src/components/sidebar/workspace-card/surface/worktree-card-secondary-rows.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

@AmoabaKelvin
AmoabaKelvin merged commit edf5b88 into main Nov 22, 2026
32 checks passed
DoozyX added a commit to DoozyX/orca that referenced this pull request Nov 23, 2026
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).
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