# ExecutionTimeline

A timed record of what happened during a run, as a list, a table or a waterfall with tokens and cost per step.

- **Use it for**: A timed record of what happened during a run.
- **Not for**: The plan before it runs. Try [Plan](https://unseenui.com/components/plan/), [AgentSteps](https://unseenui.com/components/agent-steps/).

## Installation

```bash
npm install @stackunseen/ui
```

## Usage

```tsx
import { ExecutionTimeline } from '@stackunseen/ui';
import '@stackunseen/ui/styles.css';

<ExecutionTimeline variant="timeline" entries={events} />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `className` | `string` |  |
| `detail` | `DetailLevel` |  |
| `entries` (required) | `TimelineEntry[]` |  |
| `filter` | `"failed" \| "all"` |  |
| `onFilterChange` | `((value: "all" \| "failed") => void)` |  |
| `variant` | `"table" \| "compact" \| "timeline" \| "waterfall"` |  |

## Keyboard

Tab reaches controls; Enter or Space activates buttons. Accordions use arrow keys, Home and End. Select menus support arrows and typeahead; Escape closes menus and dialogs and restores focus.

## Works with

[AgentSteps](https://unseenui.com/components/agent-steps/), [ToolCall](https://unseenui.com/components/tool-call/), [ToolResult](https://unseenui.com/components/tool-result/), [ToolGroup](https://unseenui.com/components/tool-group/), [RunInspector](https://unseenui.com/components/run-inspector/), [Plan](https://unseenui.com/components/plan/), [UsageMeter](https://unseenui.com/components/usage-meter/), [RunBoard](https://unseenui.com/components/run-board/), [AgentLanes](https://unseenui.com/components/agent-lanes/), [SubagentTree](https://unseenui.com/components/subagent-tree/), [WorkflowGraph](https://unseenui.com/components/workflow-graph/), [AttentionQueue](https://unseenui.com/components/attention-queue/)

Page: https://unseenui.com/components/execution-timeline/
