CommentThread
One conversation on a document, invoice or task: comments, one level of replies, @mentions shown as brand text, in-place edit and delete for your own comments (in a More menu), and a composer.
A side panel that holds a page's comment threads, with an Open / Resolved / All filter.
A side panel hosting a page's comment threads.
The button opens the Drawer; the inline panel below works the same and docks beside a page; the page sets its width. Open a thread, Resolve it, or go back to All threads. On a phone, Close, Back and Resolve grow to md (36).
CommentsPanel lists threads with an Open / Resolved / All filter and hosts the selected thread: pass a CommentThread (without a title) as children. It opens in a kit Drawer from its trigger; inline renders it in place.
A side panel hosting the comment threads for a page: an Open / Resolved / All filter, thread previews, and the selected thread (pass a kit CommentThread as children) with Resolve. Built on kit Drawer and SegmentedControl; inline renders it in place, and inline="auto" docks it beside the page from --grid-breakpoint-lg.
import { CommentsPanel } from "agentic-ds-kit";From contracts/commentspanel.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| threads | array | Yes | — | { id, title, preview, count, resolved?, updatedAt, context? }[]. context names the record (e.g. "INV-1842 · Northwind") and leads the open thread's meta line: "INV-1842 · 3 comments · Open". Use one date format for updatedAt, e.g. "Nov 20, 10:26". |
| open | boolean | Yes | — | — |
| onOpenChange | function | Yes | — | — |
| selectedId | string | No | — | — |
| onSelect | function | Yes | — | (id | null) => void; null goes back to the list. |
| onResolve | function | No | — | — |
| filter | open | resolved | all | No | open | — |
| onFilterChange | function | No | — | — |
| children | ReactNode | No | — | The selected thread, usually a CommentThread without a title. |
| composer | ReactNode | No | — | Shown under the list, e.g. a page-level CommentThread. |
| label | string | No | Comments | — |
| emptyTitle | string | No | No comments yet | — |
| emptyDescription | string | No | — | — |
| inline | boolean | "auto" | No | false | true renders the panel in place. "auto" docks it beside the page from --grid-breakpoint-lg while open (the trigger comes back when it closes) and uses the Drawer below that. |
| showTrigger | boolean | No | true | — |
| loading | boolean | No | false | — |
| error | string | No | — | — |
| onRetry | function | No | — | — |
One conversation on a document, invoice or task: comments, one level of replies, @mentions shown as brand text, in-place edit and delete for your own comments (in a More menu), and a composer.
The durable in-app inbox of product notifications: an sm bell with the unread count opens a 24rem kit Popover (a full-height Drawer below --grid-breakpoint-sm) with the list, Mark all read and View all.
A queue of what agents need from you: approvals, questions, failed runs and finished recaps.
Edge panel for secondary tasks.