ngx-prompt-kit

Conversation List

ngx-prompt-kit original — not part of ibelick/prompt-kit

Sidebar of past conversations. Optional date grouping (Today / Yesterday / Last 7 Days / Older), inline rename, and a hover-revealed actions menu.

Examples

Grouped by date

Default mode. Empty buckets are not rendered. Hover or focus a row to reveal the actions menu.

Today

Yesterday

Last 7 Days

Older

Flat list

Set [groupBy]='none' to render conversations in their original order without date headers.

Installation

Add the conversation-list component (and the cn() utility) to your project.

ng generate ngx-prompt-kit:conversation-list

Component API

PkConversationList

PropTypeDefaultDescription
conversationsreadonly Conversation[]The conversations to render (required).
groupBy"date" | "none" "date" Bucket items by Today / Yesterday / Last 7 Days / Older, or render flat.
activeIdstring | null null The id of the currently selected conversation.
classstringExtra classes for the host.

PkConversationItem

PropTypeDefaultDescription
conversationConversationThe conversation to render (required).
isActiveboolean false Highlight as the active row.
classstringExtra classes for the row.

Outputs (both)

PropTypeDefaultDescription
selected(id: string) => voidFires when a row is clicked.
renamed({ id, title }) => voidFires after the inline rename input commits a non-empty, changed value.
deleted(id: string) => voidFires when the Delete action is chosen.