class Crowbar::TUI::ReviewerModel

Overview

Interactive Terminal User Interface for reviewing session items, inspecting side-by-side hex diffs, examining transformation provenance, and applying deferred rewards to any past iteration.

Included Modules

Defined in:

crowbar/tui/reviewer.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(session : Session, session_dir : String = Session.default_dir, width : Int32 = 100, height : Int32 = 28) #

Instance Method Detail

def active_tab : Int32 #

def active_tab=(active_tab : Int32) #

def current_selected_item : SessionItem | Nil #

def diff_mode : Symbol #

def diff_mode=(diff_mode : Symbol) #

def filter_mode : Symbol #

def filter_mode=(filter_mode : Symbol) #

def filtered_items : Array(SessionItem) #

def height : Int32 #

def height=(height : Int32) #

def init : Opal::TEA::Cmd #
Description copied from module Opal::TEA::Model

Returns initial commands to execute upon application startup.


def reward_buffer : String #

def reward_buffer=(reward_buffer : String) #

def reward_mode : Bool #

def reward_mode=(reward_mode : Bool) #

def selected_index : Int32 #

def selected_index=(selected_index : Int32) #

def session : Session #

def session_dir : String #

def session_dir=(session_dir : String) #

def status_message : String | Nil #

def status_message=(status_message : String | Nil) #

def update(msg : Opal::TEA::Msg) : Tuple(Opal::TEA::Model, Opal::TEA::Cmd) #
Description copied from module Opal::TEA::Model

Updates the model state based on an incoming message, returning the new model and optional command.


def view : String #
Description copied from module Opal::TEA::Model

Renders the current state as a formatted terminal string.


def width : Int32 #

def width=(width : Int32) #