docs(react): document Card Message rendering in the v7 UI Kit#421
Conversation
Add documentation for the v7 React UI Kit card message feature (category "card"), rendered by the CometChatCardBubble plugin over the prebuilt CometChatCardView renderer: - components/card-bubble.mdx: new page for CometChatCardBubble (props, card actions, fallback behavior, CSS selectors) with the message hierarchy diagram - event-system.mdx: add the message/card-received SDK event and the ui:card/action UI event (Card Actions section + quick reference) - plugins/overview.mdx: add the built-in Card plugin row - components-overview.mdx: add the CometChatCardBubble row - docs.json: register the card-bubble page in the sidebar nav Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Docs review — ✅ ApproveReact v7 UIKit card-rendering docs — a new ✅ Verified
Clean, well-sourced PR (companion to #420). Ready to merge. 🚀 🤖 Automated docs review (Mintlify link/redirect/content checks + API verification against @cometchat/chat-uikit-react v7 card branch and npm). |
jitvarpatil
left a comment
There was a problem hiding this comment.
Docs review — ✅ Approve
React v7 UIKit card-rendering docs — a new CometChatCardBubble component page (191 lines) + event-system card rows (5 files, +204/-1). All-new content, no deletions → no redirect risk. I verified the component, events, and package against the React UIKit card-message-rendering branch and npm — all correct.
✅ Verified
- Structure: new
card-bubble.mdxwired into nav; 0 build breaks, 0 orphans, 0 broken links; all internal links resolve. - API (against
ENG-36540-card-message-rendering, React UIKit v7):CometChatCardBubble— real exported component (src/index.ts).ui:card/actionevent (used inCometChatAIAssistantBubble.tsx) andmessage/card-received(inuseMessageListEvents.ts) — both real event keys (v7's hooks/string-event architecture, correctly used here).@cometchat/cards-reactrenderer — a real dependency in the UIKitpackage.jsonand published on npm (1.0.0).
- Content correctness: cards correctly framed as receive-only / render-only ("the UI Kit renders them, it does not send them"; "mirroring
CometChatTextBubble"; "your app owns all action behavior"). Imports correct (CometChatCardBubblefrom@cometchat/chat-uikit-react,CometChatfrom@cometchat/chat-sdk-javascript). - No version drift (no hardcoded
@7pins) and no placeholders/TODOs.
Clean, well-sourced PR (companion to #420). Ready to merge. 🚀
🤖 Automated docs review (Mintlify link/redirect/content checks + API verification against @cometchat/chat-uikit-react v7 card branch and npm).
Add documentation for the v7 React UI Kit card message feature (category "card"), rendered by the CometChatCardBubble plugin over the prebuilt CometChatCardView renderer:
Description
Related Issue(s)
Type of Change
Checklist
Additional Information
Screenshots (if applicable)