Queue
The agent's todo list, split into what is left and what is done. A todo moves from one section to the other when it is done.
Usage
Queue
import { NgTemplateOutlet } from '@angular/common';import { Component, DestroyRef, ViewEncapsulation, computed, inject, signal,} from '@angular/core';import {A Trace with a collapsible line for each section, To do and Completed; the icon on each todo shows its status.
Anatomy
import { ScTrace, ScTraceLine, ScTraceIcon, ScTraceTitle, ScTraceCollapsible, ScTraceCollapsibleTrigger, ScTraceCollapsiblePanelContent, ScCollapsible, ScCollapsibleTrigger, ScCollapsiblePanel,} from '@semantic-components/ui';<div scTrace> <div scCollapsible scTraceCollapsible [open]="true"> <button scCollapsibleTrigger scTraceCollapsibleTrigger> <span scTraceLine> <span scTraceIcon><svg siListTodoIcon></svg></span> <span scTraceTitle>2 to do</span> </span> </button> <div scCollapsiblePanel> <div scTraceCollapsiblePanelContent> <div scTrace> <span scTraceLine>…</span> </div> </div> </div> </div> <div scCollapsible scTraceCollapsible>… 1 completed …</div></div>Statuses
The agent sends the whole list each time it updates it: render the latest. Mark the todo in progress as running only while the chat streams, so its title stops shimmering when the agent stops.
| Todo status | Section | Icon | Line status |
|---|---|---|---|
pending | To do | siCircleIcon | none |
in_progress | To do | siCircleDotIcon | "running" while the chat streams |
completed | Completed | siCircleCheckIcon | none |
Examples
A todo with a description opens to show it; one without stays a line.
Descriptions
It is clipped by overflow-hidden on the field.
Typing, clearing and keyboard selection.
Cover the renamed props and the new data attributes.
import { NgTemplateOutlet } from '@angular/common';import { Component, ViewEncapsulation } from '@angular/core';import { ScCollapsible, ScCollapsiblePanel, ScCollapsibleTrigger, ScTrace, ScTraceCollapsible, ScTraceCollapsiblePanelContent, ScTraceCollapsibleTrigger,RTL
import { Dir } from '@angular/cdk/bidi';import { Component, LOCALE_ID, ViewEncapsulation } from '@angular/core';import { ScCollapsible, ScCollapsiblePanel, ScCollapsibleTrigger, ScTrace, ScTraceCollapsible, ScTraceCollapsiblePanelContent, ScTraceCollapsibleTrigger,API reference
See the Trace.