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

View Source

A read-only panel over the harness's active when->then rules projection.

Renders the materialized view folded from extract{class: :rules, op, item} meta events (source :probe_c2_rules). hard: true rules are ENFORCED constraints -- the gate blocks on them -- rather than mere reminders, so they render with a filled marker and bold weight; soft rules render dimmed with a hollow marker. The distinction never relies on color alone (weight + glyph both carry it), and avoids red/alarm styling since a rule is a standing constraint, not an error.

Summary

Types

rule()

@type rule() :: %{when: String.t(), then: String.t(), hard: boolean()}

t()

@type t() :: %{
  id: String.t() | atom(),
  title: String.t(),
  rules: [rule()],
  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.