Class: Aidp::Harness::UI::FrameFormatter
- Inherits:
-
Object
- Object
- Aidp::Harness::UI::FrameFormatter
- Defined in:
- lib/aidp/harness/ui/frame_manager.rb
Overview
Formats frame display text
Instance Method Summary collapse
- #format_divider_text(text) ⇒ Object
- #format_frame_title(frame_type, title, frame_data = nil) ⇒ Object
- #format_progress_title(current, total) ⇒ Object
- #format_section_title(title) ⇒ Object
- #format_status_title(status) ⇒ Object
- #format_step_title(step_name, step_number, total_steps) ⇒ Object
- #format_subsection_title(title) ⇒ Object
- #format_workflow_title(workflow_name) ⇒ Object
Instance Method Details
#format_divider_text(text) ⇒ Object
340 341 342 |
# File 'lib/aidp/harness/ui/frame_manager.rb', line 340 def format_divider_text(text) "── #{text} ──" end |
#format_frame_title(frame_type, title, frame_data = nil) ⇒ Object
316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 |
# File 'lib/aidp/harness/ui/frame_manager.rb', line 316 def format_frame_title(frame_type, title, frame_data = nil) emoji = case frame_type when :section then "📋" when :subsection then "📝" when :workflow then "⚙️" when :step then "🔧" else "📋" end base_title = "#{emoji} #{title}" if frame_data && frame_data[:status] status_text = case frame_data[:status] when :running then "Running" when :completed then "Completed" when :failed then "Failed" else frame_data[:status].to_s.capitalize end base_title += " (#{status_text})" end base_title end |
#format_progress_title(current, total) ⇒ Object
360 361 362 |
# File 'lib/aidp/harness/ui/frame_manager.rb', line 360 def format_progress_title(current, total) "📊 Progress: #{current}/#{total}" end |
#format_section_title(title) ⇒ Object
344 345 346 |
# File 'lib/aidp/harness/ui/frame_manager.rb', line 344 def format_section_title(title) "📁 #{title}" end |
#format_status_title(status) ⇒ Object
364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 |
# File 'lib/aidp/harness/ui/frame_manager.rb', line 364 def format_status_title(status) case status when :running "🟢 Running" when :paused "🟡 Paused" when :completed "✅ Completed" when :failed "❌ Failed" when :cancelled "⏹️ Cancelled" else "❓ #{status.to_s.capitalize}" end end |
#format_step_title(step_name, step_number, total_steps) ⇒ Object
356 357 358 |
# File 'lib/aidp/harness/ui/frame_manager.rb', line 356 def format_step_title(step_name, step_number, total_steps) "⚡ Step #{step_number}/#{total_steps}: #{step_name}" end |
#format_subsection_title(title) ⇒ Object
348 349 350 |
# File 'lib/aidp/harness/ui/frame_manager.rb', line 348 def format_subsection_title(title) "📄 #{title}" end |
#format_workflow_title(workflow_name) ⇒ Object
352 353 354 |
# File 'lib/aidp/harness/ui/frame_manager.rb', line 352 def format_workflow_title(workflow_name) "🔄 #{workflow_name} Workflow" end |