Ga naar hoofdinhoud

CnAiHistoryList

Searchable conversation list with inline rename/describe editing. Shared by two surfaces: CnAiChatPanel's inline "History" sidebar tab (embedded directly — it's a plain list, not a modal, so ADR-004's file-isolation rule doesn't apply), and CnAiHistoryDialog, which wraps it in an NcDialog overlay for consumers still using the dialog directly.

Search matches on both title and description (case-insensitive substring); description is read from metadata.description, the field the inline rename/describe control writes back via PATCH.

Props

PropTypeRequiredDefaultNotes
conversationsArrayNo[]Normalized conversations (see aiChatConfig.js's normalizeConversation()).
loadingBooleanNofalseWhether the parent's conversation fetch is still in flight.
fetchErrorBooleanNofalseWhether the parent's conversation fetch failed.
activeConversationUuid (active-conversation-uuid)StringNonullUUID of the active conversation, for the active-row indicator.
chatAppId (chat-app-id)StringNoBackend app id the rename/describe PATCH resolves against.
searchableBooleanNofalseWhether to show the name/description search field.

Events

EventPayloadNotes
selectString (uuid)A conversation row was clicked.
renamed{ uuid, title, description }Emitted after an inline rename/describe PATCH succeeds.

Behaviour

  • Shows "Could not connect to AI service" on fetchError, an empty-state label when there are no conversations, and a loading state while the fetch is in flight.
  • Rename/describe writes title + metadata.description (the hermiq conversation schema exposes no dedicated description column).

Reference