Skip to content

feat(react): list conversations beside Chat with a threads prop - #1622

Queued
blove wants to merge 1 commit into
mainfrom
blove/react-chat-threads
Queued

blove wants to merge 1 commit into
mainfrom
blove/react-chat-threads

Conversation

@blove

@blove blove commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

What

React Chat gets threads, activeThreadId and onThreadSelect, matching the thread sidebar Angular's chat composition draws when it is given threads.

<Chat
  session={session}
  threads={threads}
  activeThreadId={threadId}
  onThreadSelect={selectThread}
/>
  • With the prop, the chat is wrapped in a tp-chat-shell row with a ThreadList sidebar before it. The sidebar shows on viewports at least 768px wide, as in Angular, and only once there are conversations.
  • The prop's presence, not its length, decides the wrapper, so a list that loads later never remounts the composer or loses the draft.
  • Without the prop the root element is unchanged. className stays on the chat itself.
  • The app switches sessions in onThreadSelect. For row actions, projects or a collapsible sidebar, apps compose ChatSidenav.

No new exports.

Verification

  • npx nx run-many -t test,type-tests,lint -p react passes (4 new tests in chat-threads.spec.tsx).
  • npx nx run-many -t build --projects=core,content,react and node scripts/react-parity/verify-packages.mjs pass.
  • node scripts/react-parity/inventory.mjs --check --drift warn passes.

Not checked in a browser: the sidebar's layout and the 768px breakpoint are covered only by the stylesheet, not by a rendered check.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
threadplane Ready Ready Preview Nov 16, 2026 6:44am UTC

Request Review

@blove
blove enabled auto-merge November 16, 2026 06:25
@blove
blove added this pull request to the merge queue Nov 16, 2026
Any commits made after this event will not be merged.

This branch was successfully deployed

1 active deployment
Preview – threadplane — aaee0eca Deployed Nov 16, 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