Ga naar hoofdinhoud

CnAiRecentSessions

Up-to-five recent-conversation cards shown on the AI Chat Companion's "start a new conversation" screen (the empty-state of CnAiChatPanel), plus a "View all conversations" expander that hands off to the searchable History tab (CnAiHistoryList). Purely presentational — the parent owns and fetches conversations and loading.

Props

PropTypeRequiredDefaultNotes
conversationsArrayNo[]Up to 5 normalized conversations (see aiChatConfig.js's normalizeConversation()).
activeConversationUuid (active-conversation-uuid)StringNonullUUID of the active conversation, for the active-card indicator.
loadingBooleanNofalseWhether the parent's conversation fetch is still in flight.

Events

EventPayloadNotes
selectString (uuid)A recent-conversation card was clicked.
view-all"View all conversations" clicked — parent opens the History tab.

Behaviour

  • Renders nothing while loading or when there are no conversations yet — the surrounding empty-state's own message already covers that case.

Reference