Skip to content

refactor(chat): split ChatPanel into components, a session hook and a pure reducer (no visible change) - #224

Merged
Kumar2421 merged 1 commit into
mainfrom
refactor/chat-panel-split
Oct 23, 2026
Merged

Kumar2421 merged 1 commit into
mainfrom
refactor/chat-panel-split

Conversation

@Kumar2421

Copy link
Copy Markdown
Owner

ChatPanel (360 lines) becomes a ~35-line composition over components/dashboard/chat/{ChatShell,MessageList,MessageBubble,Composer,ModelPicker,EmptyState}, useChatSession and a pure reducer (lib/domain/chat/chatSessionState.ts), with the only fetch isolated in lib/query/chatTransport.ts. Same default export and props; selectors/classes/aria preserved; UnlockPanel stays at the top. Seams: MessageBubble has an empty actions slot, EmptyState takes starters, transport is swappable. 1881 tests pass incl. reducer table tests. Not provably identical (reasoned, not run): pending now cleared via reducer actions instead of finally; composer stays an input. e2e not run.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
okara-alternative Ready Ready Preview Oct 23, 2026 11:56am UTC

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-23T11:55:30.180274Z
We couldn’t complete this review. Comment @codex review to try again.
5763abe PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@Kumar2421
Kumar2421 merged commit ba81aca into main Oct 23, 2026
4 checks passed
@Kumar2421
Kumar2421 deleted the refactor/chat-panel-split branch October 23, 2026 11:58

This branch was successfully deployed

1 active deployment
Preview — 5763abe9 Deployed Oct 23, 2026 by vercel[bot]
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