# `<alta-run-progress>`

> A run going, then how it ended: a progress line, the last activity in words, stop, the log folded, the failure lines.

A run going, then how it ended: a progress line, the last activity in words, stop, the log folded, the failure lines.

[All components](https://docs.altasystem.ai/ui/components/)

## States

The closed list `data-state` takes on the element.

- <span id="state-idle"></span>`idle`
- <span id="state-starting"></span>`starting`
- <span id="state-running"></span>`running`
- <span id="state-waiting"></span>`waiting`
- <span id="state-stopping"></span>`stopping`
- <span id="state-proving"></span>`proving`
- <span id="state-done"></span>`done`
- <span id="state-failed"></span>`failed`
- <span id="state-cancelled"></span>`cancelled`
- <span id="state-lost"></span>`lost`
- <span id="state-undoing"></span>`undoing`
- <span id="state-undone"></span>`undone`

## Other attributes

On the element, or on a part (`part: attribute`). A list of values is closed.

| Attribute | On | Values |
|---|---|---|
| `data-progress` | the element | `known`, `unknown` |
| `data-job` | the element | present or absent |
| `data-mark` | `log-line` | `ok`, `warn`, `fail`, `todo`, `note` |

## Events

Dispatched on the element, bubbling. Listen with `addEventListener`.

- <span id="event-alta-run-state"></span>`alta-run-state`
- <span id="event-alta-run-done"></span>`alta-run-done`
- <span id="event-alta-run-failed"></span>`alta-run-failed`
- <span id="event-alta-cancel"></span>`alta-cancel`
- <span id="event-alta-undo"></span>`alta-undo`
- <span id="event-alta-retry"></span>`alta-retry`
- <span id="event-alta-show-dialog"></span>`alta-show-dialog`

## Parts

Every node you can style, as `[data-part="…"]`.

`head` · `mark` · `line` · `percent` · `bar` · `bar-fill` · `live` · `device` · `code` · `copy` · `link` · `waiting` · `show` · `fail` · `fail-title` · `fail-line` · `needs` · `note` · `bottom` · `foot` · `stop` · `undo` · `retry` · `log-toggle` · `log` · `log-line`

## Style it

```css
[data-aui="run-progress"][data-state="undone"] [data-part="head"] { /* … */ }
```

## Words it reads

Keys of the string tables (override them on `<alta-provider>`).

`run.`

## Files

`packages/ui/src/elements/run-progress.ts` · `packages/ui/styles/components/step.css`
