Skip to content

feat: add Chat AI element#865

Merged
rohanchkrabrty merged 5 commits into
mainfrom
feat-ai-chat
Jul 24, 2026
Merged

feat: add Chat AI element#865
rohanchkrabrty merged 5 commits into
mainfrom
feat-ai-chat

Conversation

@rohanchkrabrty

Copy link
Copy Markdown
Contributor

Summary

  • Adds the Chat AI-element component to packages/raystack — a composable chat scroller with Chat.Messages, Chat.Item, Chat.JumpButton, Chat.Separator, and Chat.Attachment parts for building AI conversation UIs.
  • Implements a stick-to-bottom message scroller (chat-messages.tsx) with a jump-to-latest button, plus a useChatMessages hook exposing imperative scroll/message actions via context.
  • Ships attachment rendering with upload states (ChatAttachmentState) and CSS-module styling using --rs-* design tokens.
  • Adds unit tests for the component and a docs page under the AI Elements section with demos and a props reference.
  • Stacked on feat: add Reasoning AI element #864 (feat-ai-reasoning) — this PR only contains the Chat commit on top of it.

rohanchkrabrty and others added 4 commits July 23, 2026 11:27
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C7QST4WHS5DmTqgJkvQoyf
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C7QST4WHS5DmTqgJkvQoyf
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C7QST4WHS5DmTqgJkvQoyf
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C7QST4WHS5DmTqgJkvQoyf
@vercel

vercel Bot commented Jul 23, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
apsara Ready Ready Preview, Comment Jul 24, 2026 5:05am

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@rohanchkrabrty, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 46 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b3bdbbec-55dc-4f72-96b2-d5405dc8fa42

📥 Commits

Reviewing files that changed from the base of the PR and between 6d37652 and 5340cef.

📒 Files selected for processing (14)
  • apps/www/src/content/docs/ai-elements/chat/demo.ts
  • apps/www/src/content/docs/ai-elements/chat/index.mdx
  • apps/www/src/content/docs/ai-elements/chat/props.ts
  • apps/www/src/content/docs/ai-elements/meta.json
  • packages/raystack/components/chat/__tests__/chat.test.tsx
  • packages/raystack/components/chat/chat-attachment.tsx
  • packages/raystack/components/chat/chat-context.tsx
  • packages/raystack/components/chat/chat-item.tsx
  • packages/raystack/components/chat/chat-messages.tsx
  • packages/raystack/components/chat/chat-separator.tsx
  • packages/raystack/components/chat/chat.module.css
  • packages/raystack/components/chat/chat.tsx
  • packages/raystack/components/chat/index.tsx
  • packages/raystack/index.tsx

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Base automatically changed from feat-ai-reasoning to main July 24, 2026 04:59
@rohanchkrabrty
rohanchkrabrty merged commit 03c5439 into main Jul 24, 2026
4 of 5 checks passed
@rohanchkrabrty
rohanchkrabrty deleted the feat-ai-chat branch July 24, 2026 05:03
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.

2 participants