Raxol.UI.Components.Harness.DriftIndicator (Raxol v2.6.1)

View Source

Cross-family drift verdict gauge: how far this run has drifted from its originating agent family, on a 0 (identical) to 100 (fully drifted) scale.

Uses the same green -> yellow -> red gauge idiom as Raxol.UI.Components.Harness.ContextMeter and Raxol.UI.Components.Harness.SpendMeter.

Summary

Types

t()

@type t() :: %{
  id: String.t() | atom(),
  score: number(),
  family: String.t(),
  width: pos_integer(),
  warn_threshold: number(),
  danger_threshold: number(),
  style: map(),
  theme: map()
}

Functions

broadcast(msg)

command(cmd)

handle_event(event, state, context)

Callback implementation for Raxol.UI.Components.Base.Component.handle_event/3.

mount(state)

Callback implementation for Raxol.UI.Components.Base.Component.mount/1.

schedule(msg, delay)

unmount(state)

Callback implementation for Raxol.UI.Components.Base.Component.unmount/1.

update(props, state)

Callback implementation for Raxol.UI.Components.Base.Component.update/2.