Skip to main content

Module widgets

Module widgets 

Source
Expand description

Stateless TUI widgets.

Each widget takes explicit props; the compose function in render::mod pulls those props from State per frame. No widget holds a reference to any god-object.

Structs§

ApprovalModalWidget
AttachmentWidget
Widget that displays attached image indicators
ChatState
State for the chat widget
ChatWidget
Props for ChatWidget
ConversationListWidget
ImageClickTarget
Entry in the click map: maps a content line to an image in chat history
InputState
State for the input widget
InputWidget
Props for InputWidget. The slash-command palette is rendered separately as SlashPaletteWidget in the bottom region (see render.rs); this widget just draws the bordered input box.
SlashPaletteWidget
StatusBannerWidget
StatusWidget
Props for StatusWidget (stateless widget)

Enums§

GenerationStatus
Local-to-render-layer generation phase enum. The compose function converts from domain::TurnState + domain::GenPhase into one of these four states; widgets render off this local view so they don’t need to pattern-match the full domain enum.

Functions§

build_status_lines
Build the status-line rows: a generation/tool spinner followed by one row per queued message.