from quillwright.models import Estimate, TraceStep # Status drives the icon: done -> check, active -> pulsing dot + cursor, error -> warning. def _step_html(s: TraceStep) -> str: badge = f'{s.model}' if s.model else "" if s.status == "active": marker = '' cursor = '' elif s.status == "error": marker = 'error' cursor = "" else: marker = 'check_circle' cursor = "" return ( f'
{s.action}: {s.detail}{cursor}
{badge}Waiting for capture…