CnAiChatPanel
Slide-out conversation panel for the AI Chat Companion — embeds an
NcAppSidebar with the message list (CnAiMessageList)
and the composer (CnAiInput). Rendered by
CnAiCompanion, which owns the stream state.
Props
| Prop | Type | Required | Default | Notes |
|---|---|---|---|---|
visible | Boolean | No | false | Controls panel visibility. |
streamState (stream-state) | Object | Yes | — | The reactive state object from useAiChatStream(): { isStreaming, currentText, toolCalls, error, messages }. |
fabRef (fab-ref) | Object | No | null | Ref to the FAB element — kept for API back-compat; focus return is handled by NcAppSidebar. |
Events
| Event | Payload | Description |
|---|---|---|
close | — | User dismissed the panel. |
send | message text | User submitted a message via CnAiInput. |
new-thread | — | User asked to start a fresh conversation. |
load-conversation | conversation uuid | User picked a past conversation from CnAiHistoryDialog. |
Reference
- Implementation: src/components/CnAiChatPanel/CnAiChatPanel.vue
- Parent: CnAiCompanion · Children: CnAiMessageList, CnAiInput · Transport: useAiChatStream
Approved-assistant mark
When thematiq is installed, the panel reads GET /apps/thematiq/api/assistant-mark once per page load and, if the mark is on, draws a footer row (role="note") under the input with the organisation's logo (max 24px high, the response's alt) and its label, shown exactly as received. The row appears in both the chat and history views. With thematiq absent, the mark off, or any failure, no row is rendered. No prop is involved. The label uses --color-main-text on --color-main-background.