Skip to content

feat(react): add composed sidebar sections for ChatSidenav - #1621

Open
blove wants to merge 2 commits into
mainfrom
blove/react-sidenav-composed
Open

blove wants to merge 2 commits into
mainfrom
blove/react-sidenav-composed

Conversation

@blove

@blove blove commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

What

A new React ChatSidenavSections component: the usual sidebar content that Angular's sidenav composes, for React's ChatSidenav shell.

<ChatSidenav mode={mode} open={drawerOpen} onModeChange={setDesktopMode} onOpenChange={setDrawerOpen}>
  <ChatSidenavSections
    onNewChat={startThread}
    threads={threads}
    archivedThreads={archived}
    activeThreadId={threadId}
    onThreadSelect={selectThread}
    threadActions={threadActions}
    projects={projects}
    selectedProjectId={projectId}
    onProjectSelect={selectProject}
    projectActions={projectActions}
  />
</ChatSidenav>
  • Renders New chat, Projects, Recent and a collapsed Archived section from ProjectList and ThreadList.
  • Each section appears only when its data is supplied; New chat only with onNewChat.
  • The lists stay controlled: the app owns the data, selection and row commands. projects are also offered as move destinations.
  • Archived conversations are unmounted until the section is opened; an empty one says so.
  • Label props replace the built-in headings; children render after the sections.
  • ChatSidenav itself is unchanged. Search and collapse stay on the shell.

New exports: ChatSidenavSections, ChatSidenavSectionsProps. The runtime export is added to the pinned list in verify-packages.mjs and its spec fixture.

Not included: Angular's Devtools button in the sidenav footer. React apps mount ChatDebug themselves.

Verification

  • npx nx run-many -t test,type-tests,lint -p react passes (9 new tests in chat-sidenav-sections.spec.tsx).
  • npx nx run-many -t build --projects=core,content,react, node scripts/react-parity/verify-packages.mjs and node scripts/react-parity/verify-langgraph-candidate.mjs pass.
  • node --test scripts/react-parity/verify-packages.spec.mjs passes (102 tests).
  • node scripts/react-parity/inventory.mjs --check --drift warn passes.
  • Checked in a browser with a scratch page inside ChatSidenav: sections, active rows, row menus and the expanded Archived section render, with no console errors.

Not run: the AG-UI candidate verifier.

🤖 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 11:13am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview – threadplane — 5a8ea07d 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