Raxol.UI.Components.Harness.TaintBadge (Raxol v2.9.2)

View Source

A tiny inline badge marking untrusted, tool-derived content.

Render-dual of one event envelope's provenance.trust field: renders "⚠ untrusted" in yellow when provenance.trust == :tainted (passed in as taint: true); renders nothing when trusted. This is the frontend's lethal-trifecta visibility marker -- content whose provenance traces back to untrusted tool output must stay visibly marked, never silently blended into the primary feed.

Composed inline by Raxol.UI.Components.Harness.ToolResultBlock.

Summary

Types

t()

@type t() :: %{id: String.t() | atom(), taint: boolean(), 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.