SessionTimeline
What one agent session did, from top to bottom: started, the plan, each tool call, waiting for a person and the end with its duration. It takes the agent_session.* events of core as they are (started, activity, finished) and sorts them by time; labels.activities names each activity slug and activityStates picks its state. An open session shows a running clock on its last event.
- SessionTimeline
- Status
- Stable
- axe:
- Light, Dark, High contrast
- Unit tests:
- yes
- Keyboard pass:
- not yet
- Screen reader pass:
- not yet
- Used in:
- no app yet
PreviewLink to the section Preview
Live in all three themes. Everything here is interactive.
Light theme, SessionTimeline
- Started
- Plan writtenThree steps: read the schema, write the migration, run the tests.
- Tool callnpm test
- Waiting for youWhich of the two migrations should stay?
- Tool callgit commit
- FinishedRan for: 9:12
- Started
- Plan written
- Tool callnpm test
- Tool callgit diffRunning for: 1:35
Dark theme, SessionTimeline
- Started
- Plan writtenThree steps: read the schema, write the migration, run the tests.
- Tool callnpm test
- Waiting for youWhich of the two migrations should stay?
- Tool callgit commit
- FinishedRan for: 9:12
- Started
- Plan written
- Tool callnpm test
- Tool callgit diffRunning for: 1:35
High contrast theme, SessionTimeline
- Started
- Plan writtenThree steps: read the schema, write the migration, run the tests.
- Tool callnpm test
- Waiting for youWhich of the two migrations should stay?
- Tool callgit commit
- FinishedRan for: 9:12
- Started
- Plan written
- Tool callnpm test
- Tool callgit diffRunning for: 1:35
UsageLink to the section Usage
import { SessionTimeline } from '@skribly/ui/agents'<SessionTimeline events={events} labels={labels} />Every label is a prop, so the app passes its own words in its own language. See no built-in text.
AccessibilityLink to the section Accessibility
- An ordered list named by labels.list, so a screen reader announces the number of events and the position of each.
- Each event is a SessionStateChip, a word with its own glyph, never colour alone, and a time element with the machine-readable moment, formatted in the locale of the person.
- The duration and the running clock are timers with their label.
- Nothing in it takes focus.
This demo runs through axe in all three themes on every test run. See what the tests check.