module UI::Probes::RuntimeOverrideProbe

Overview

RuntimeOverrideProbe — Phase 3 rubric BX5.

Backs the phase-03-runtime-override-probe slug. The "Make Red" trigger button mutates target_red; the scene rebuild logic reads this value at render time and applies a red background_color override to the target Button.

NOTE on architecture: SwiftUI hosting in the current SwiftKit bridge does not respond to property mutation after the initial render. A genuine re-paint requires either (a) the rubric's caller to teardown and re-render the slug, or (b) a SwiftKit reactive-property facade (deferred per phase-03-remediation-3-blockers-2026-05-21.md). This singleton holds the mutated state regardless, so a re-render of the slug picks up the new background. The probe Label override-state mirrors the boolean so the rubric can confirm the on_tap fired even when the visual repaint is gated on the SwiftKit reactive path.

Defined in:

ui/probes/runtime_override_probe.cr

Class Method Summary

Class Method Detail

def self.current_text : String #

[View source]
def self.reset : Nil #

[View source]
def self.set_red : Nil #

[View source]
def self.target_red? : Bool #

[View source]