Skip to main content

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​

PropTypeRequiredDefaultNotes
visibleBooleanNofalseControls panel visibility.
streamState (stream-state)ObjectYes—The reactive state object from useAiChatStream(): { isStreaming, currentText, toolCalls, error, messages }.
fabRef (fab-ref)ObjectNonullRef to the FAB element — kept for API back-compat; focus return is handled by NcAppSidebar.

Events​

EventPayloadDescription
close—User dismissed the panel.
sendmessage textUser submitted a message via CnAiInput.
new-thread—User asked to start a fresh conversation.
load-conversationconversation uuidUser picked a past conversation from CnAiHistoryDialog.

Reference​

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.