# `Juggernaut.Report.Trends`
[🔗](https://github.com/holsee/juggernaut/blob/v0.4.0/lib/juggernaut/report/trends.ex#L1)

Trends over the recorded history (design notes §7.2, §11): one point per history record,
oldest first, as recorded. A field that is missing or of the wrong type is `nil` (shown
as a gap), so one odd record never stops the page, as in `mix juggernaut.history`.

# `phases`

```elixir
@spec phases([map()]) :: %{names: [String.t()], runs: [map()]}
```

The phase clocks of each record, oldest first: `%{run_id, commit, phases: %{name => ms}}`
with the phase names in run order (`names`) across all records.

# `runs`

```elixir
@spec runs([map()], String.t()) :: [map()]
```

One point per record: id, start, commit, dirty, lane, verdict, score, mutants, wall
time (`finished_at` - `started_at`), results reused and their recorded time, and
whether it is the run the page shows (`selected_id`).

---

*Consult [api-reference.md](api-reference.md) for complete listing*
