Skip to content

Split ThreadView.tsx: move sibling components to src/components/thread/ (#1447 pass B) - #1449

Merged
currentbits merged 1 commit into
mainfrom
coder/refactor-b-split-threadview-tsx-eb12cc
Oct 4, 2026
Merged

currentbits merged 1 commit into
mainfrom
coder/refactor-b-split-threadview-tsx-eb12cc

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Pass B of #1447. ThreadView.tsx held the ThreadView component plus ~4.4k lines of separate components. Those move, verbatim, into five files:

File Lines Holds
thread/messages.tsx 1475 message blocks, tool/step rows, thinking cards
thread/cards.tsx 999 spec, teach, divergence, btw, permission, external-approval cards
thread/ChangesPanel.tsx 828 changes panel
thread/NextGitActionButton.tsx 647 git split button
thread/headerBits.tsx 527 badges, fork control, header strips

ThreadView.tsx goes from 9,442 to 5,042 lines. The ThreadView component body is untouched apart from imports. CSS stays in ThreadView.module.css.

Pure move, checked: every added line also appears among the removed lines, except export keywords on the moved declarations and the new imports.

Verification: npm run typecheck and npx vite build clean; renderer 2713/2713.

Not in scope: splitting the 4.4k-line ThreadView component body itself (needs a design pass; tracked on #1447).

🤖 Generated with Claude Code

…1447)

Pure move of ~4.4k lines into src/components/thread/: headerBits,
messages, cards, NextGitActionButton, ChangesPanel. ThreadView.tsx keeps
the ThreadView component and re-exports diffLineTotals for tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

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