Skip to content

feat: add Message AI element component#863

Merged
rohanchkrabrty merged 3 commits into
mainfrom
feat-ai-message
Jul 23, 2026
Merged

feat: add Message AI element component#863
rohanchkrabrty merged 3 commits into
mainfrom
feat-ai-message

Conversation

@rohanchkrabrty

Copy link
Copy Markdown
Contributor

Summary

  • Adds the Message AI-element component to packages/raystack for rendering chat message bubbles with role-based variants
  • Includes Message and MessageBubble parts with CSS-module styling and exports from the package root
  • Adds unit tests covering rendering, variants, and composition (packages/raystack/components/message/__tests__/message.test.tsx)
  • Adds a docs page under the AI Elements section with demos and a props table (apps/www/src/content/docs/ai-elements/message/)
  • Stacked on feat: add PromptInput AI element #862 (feat-ai-promptinput) — merge that PR first

rohanchkrabrty and others added 2 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
@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 23, 2026 7:16pm

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 70eb6661-9403-483e-accf-04a27fd91719

📥 Commits

Reviewing files that changed from the base of the PR and between 03f022b and 19e67a2.

📒 Files selected for processing (10)
  • apps/www/src/content/docs/ai-elements/message/demo.ts
  • apps/www/src/content/docs/ai-elements/message/index.mdx
  • apps/www/src/content/docs/ai-elements/message/props.ts
  • apps/www/src/content/docs/ai-elements/meta.json
  • packages/raystack/components/message/__tests__/message.test.tsx
  • packages/raystack/components/message/index.tsx
  • packages/raystack/components/message/message-bubble.tsx
  • packages/raystack/components/message/message.module.css
  • packages/raystack/components/message/message.tsx
  • packages/raystack/index.tsx

📝 Walkthrough

Walkthrough

Adds a composable Message component with alignment, grouping, avatar, header, content, footer, actions, and bubble subcomponents. Adds solid and outline bubble variants with multiple colors, responsive action visibility, public exports, automated tests, and a documentation page with demos, API references, examples, and accessibility guidance.

Sequence Diagram(s)

sequenceDiagram
  participant DocumentationDemo
  participant Message
  participant MessageBubble
  participant MessageStyles
  DocumentationDemo->>Message: renders message composition
  Message->>MessageBubble: renders bubble surface
  Message->>MessageStyles: applies alignment and slot classes
  MessageBubble->>MessageStyles: applies variant and color classes
Loading

Suggested reviewers: rohilsurana, shreyag02


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-promptinput to main July 23, 2026 19:10
@rohanchkrabrty
rohanchkrabrty merged commit dde1260 into main Jul 23, 2026
3 of 5 checks passed
@rohanchkrabrty
rohanchkrabrty deleted the feat-ai-message branch July 23, 2026 19:11
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