Storybook stories for `DataRoomDocCard`, demonstrating the inline chat card component used to render `data_room_doc` and `markdown` document types in the chat UI. ## Key Components | Export | Type | Description | |---|---|---| | `meta` | `Meta` | Storybook metadata — mounts component inside `ChatColumnDecorator` with `fullscreen` layout | | `DataRoom` | `Story` | Card variant using a `data_room_doc` item with `"Data room"` badge | | `KnowledgeBaseMarkdown` | `Story` | Card variant using a `markdown` item with `"OpenFrame Docs"` badge | ## Key Concepts - **Single component, multiple source types** — `DataRoomDocCard` renders both `data_room_doc` and `markdown` doc types; the `sourceRepo` field on the item drives the badge label. - **`badgeText` is required** — callers must resolve the label before rendering (e.g. via `SOURCE_LABELS_BY_TABLE`) and pass it explicitly as a prop. - **`anchorProps`** — generated via `makeAnchorProps(url)` from the shared fixture helper; wraps the card in a navigable link. ## Usage Example ```typescript import { DataRoomDocCard } from '@/components/chat/entity-cards' import { makeAnchorProps } from './__fixtures__/chat-card-decorator' import { dataRoomDocItem } from './__fixtures__/chat-cards' // Data room document // Markdown / OpenFrame Docs document ``` ## Source [`DataRoomDocCard.stories.tsx`](https://github.com/flamingo-stack/openframe-oss-lib/blob/main/DataRoomDocCard.stories.tsx)