Repository navigation
fix(react-core): keep the composer preview aligned when it scrolls - #7472
tylerslaton wants to merge 10 commits into
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Warning Review limit reachedNext included review available in 59 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: CopilotKit/CopilotKit/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: CopilotKit/CopilotKit/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughScrollbar rules are now scoped within ChangesScrollbar Styles
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to This change should preserve thin scrollbars on CopilotKit surfaces while allowing the chat preview to hide its textarea scrollbar. No concrete regression is evident, so it appears ready to merge. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
@copilotkit/a2ui-renderer
@copilotkit/agentcore-runner
@copilotkit/angular
@copilotkit/channels
@copilotkit/channels-core
@copilotkit/channels-discord
@copilotkit/channels-intelligence
@copilotkit/channels-slack
@copilotkit/channels-teams
@copilotkit/channels-telegram
@copilotkit/channels-ui
@copilotkit/channels-whatsapp
@copilotkit/core
@copilotkit/intelligence-langgraph
@copilotkit/intelligence-mastra
@copilotkit/mcp-apps-renderer
@copilotkit/react-core
@copilotkit/react-native
@copilotkit/react-textarea
@copilotkit/react-ui
@copilotkit/runtime
@copilotkit/runtime-client-gql
@copilotkit/sdk-js
@copilotkit/shared
@copilotkit/sqlite-runner
@copilotkit/voice
@copilotkit/vue
@copilotkit/web-components
@copilotkit/web-inspector
commit: |
|
Size Change: 0 B Total Size: 1.79 MB ℹ️ View Unchanged
|
d1fb06a to
9e288e7
Compare
9e288e7 to
98801b8
Compare
98801b8 to
d03a417
Compare
MCP App iframes were always told the host theme was light. The host context now reports "dark" when the iframe sits inside a `.dark` ancestor, so apps rendered in a dark chat match it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Gives <copilotkit-threads-drawer> a cleaner, ChatGPT-like layout that follows CopilotKit's theme tokens: - a header with the "Conversations" title and a collapse button, and a dashed "New chat" row above the recent conversations - an `overlay` attribute so the drawer can open as a panel over a chat popup or sidebar instead of sitting beside the chat - sidebar color tokens in the generated defaults, loading skeletons that stagger in order, and tidier row, menu and empty/error states Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The drawer element now labels itself "Conversations" instead of "Threads". Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Lays the groundwork for the chat design refresh, keeping today's look but making it more refined and consistent: - theme tokens: a softer dark palette and one radius scale driven by `--radius` (cards and bubbles, the composer and code blocks share it) - markdown: GitHub-style prose, code blocks with light and dark syntax themes, readable inline code, tables and images, all on CopilotKit tokens - primitives: token-based button, dropdown and tooltip styles - attachments: an audio chip with play/pause and duration, previews that stay visible while uploading - tool calls: a compact card with a text shimmer while the call runs, shared by the wildcard renderer; the reasoning header shimmers too - MCP Apps and Open Generative UI use tokens instead of fixed colors, and standalone components carry `data-copilotkit` so tokens apply everywhere - the scoped preflight covers only CopilotKit's own elements Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Composer
- sizes itself by its own width rather than the viewport: one short row
while the text fits, the text on its own row once it wraps, and voice
input folded into the "+" menu when the input is very narrow
- a `layout` prop ("auto" | "stacked"), compact stacked spacing, a pill
that matches the theme's card surface, and room for 8 lines of text
- list markers and links are styled as you type (`highlightMarkdown`)
Suggestions
- in a conversation they're a scrollable row docked right above the input
- on the welcome screen they're cards with a title and a two-line body, in
a two-column grid of equal-height cards (`appearance="cards"`)
Welcome screen
- the greeting, cards and input sit together in the middle, and ease in on
mount (`introAnimation`, on by default, off for reduced motion)
Conversation content fades out behind the input instead of showing through
around the disclaimer.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…wn in user messages
- Toolbar per reply: when one user message produces several assistant
messages (text, tool calls, more text), only the last one shows copy /
feedback / regenerate, and copy and read-aloud cover the whole reply.
`toolbarScope="message"` on the assistant message restores one toolbar
per message.
- Writing cursor: while a reply streams, the pulsing cursor rides at the end
of its text (paragraphs, list items, headings, quotes, table cells) and
waits just below blocks without text, like code. It stays below the list
while waiting for the first words. `inlineCursor={false}` on the message
view keeps it below the messages.
- User messages render markdown the way chat apps do: code blocks, lists,
emphasis and links render, line breaks stay as typed, `#` lines stay
literal and pasted HTML shows as text.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…tional threads drawer - `threadsDrawer` on CopilotPopup / CopilotSidebar (and their views) adds the conversations drawer: a history button in the header's top-left opens it as a panel over the chat, and focus returns to that button when it closes (or moves to the composer after "New chat") - the welcome screen centers the greeting, suggestion cards and input together, and in the sidebar it eases in each time the sidebar opens - window chrome: a 56px header, softer shadows, the shared 20px radius, no backdrop behind the popup, and a quieter toggle button Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…r every chat component The React Storybook is the design space for CopilotKit's chat UI: - runs on @storybook/react-vite with react-core aliased to source for HMR, the host app's Tailwind and react-core's own scoped styles side by side, and light/dark themes; the Inspector is off - every story renders inside a real CopilotKitProvider backed by a local streaming agent, so components run through the real agent pipeline without a runtime - stories for every component exported from react-core, including the new welcome cards, suggestions bar, composer widths and markdown, toolbar per reply, streaming cursor, audio attachments and the threads drawer in the popup and sidebar; the Storybook starter examples are gone Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The React Native chat now follows the same design as the web components: - theme tokens with the web's light/dark values (dark mode follows the device) and the shared radius scale - a pill composer on the card surface that grows to 8 lines - suggestions: a scrollable row of pills above the input in a conversation, and a centered welcome screen with a two-column grid of equal-height cards (title and two-line body) above the input; the prebuilt chat now shows the agent's suggestions via useSuggestions - a welcome-only intro animation (`introAnimation`, off with Reduce Motion) - assistant replies as full-width text; while a reply streams the cursor sits at the end of its text, or below a code block (`inlineCursor`) - markdown styles rebuilt on the tokens, a muted user bubble, and a compact card for tool calls without a renderer that pulses while running - popup, sidebar and modal chrome: 56px header, 20px corners, softer shadows and a neutral toggle button Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… scrolls The thin-scrollbar rules were unlayered, so they beat the composer textarea's `scrollbar-width: none` utility. Past its 8-line limit the textarea showed a scrollbar the preview underneath doesn't have, and the two drifted apart. The rules now live in the base layer, so utilities win. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
d03a417 to
a5d3adb
Compare
60c1548 to
e9ab3dc
Compare
|
Folded into #7463 (the composer preview CSS lives in |
Summary
The thin-scrollbar rules in
globals.csswere unlayered, so they beat the composer textarea'sscrollbar-width: noneutility. Past its 8-line limit the textarea showed a scrollbar that the markdown preview underneath doesn't have, and the two drifted apart. The rules now live in@layer base, so utilities win. Found while porting the composer to Angular.Stack
Chat design refresh across CopilotKit's UI packages, linked as a GitHub stack. Merge in order; each PR is based on the one above it.
Test plan
scrollbar-width: nonewhile other CopilotKit surfaces keep the thin scrollbar🤖 Generated with Claude Code