@@ -5,12 +5,12 @@ use crate::components::{
55} ;
66use crate :: ui:: Theme ;
77use charmer_runs:: RunInfo ;
8- use charmer_state:: { JobStatus , PipelineState , MAIN_PIPELINE_JOB_ID } ;
8+ use charmer_state:: { JobStatus , MAIN_PIPELINE_JOB_ID , PipelineState } ;
99use crossterm:: event:: { self , Event , KeyCode , KeyEvent , KeyModifiers } ;
1010use ratatui:: {
11+ Frame ,
1112 layout:: { Constraint , Direction , Layout , Rect } ,
1213 widgets:: Clear ,
13- Frame ,
1414} ;
1515use std:: time:: { Duration , Instant } ;
1616
@@ -113,11 +113,11 @@ pub struct App {
113113 command_expanded : bool , // Whether command section is expanded in details
114114
115115 // Run management
116- pub runs : Vec < RunInfo > , // Available runs
117- pub selected_run : Option < String > , // Currently selected run UUID
118- pub show_run_picker : bool , // Whether run picker modal is open
119- pub run_picker_index : usize , // Selected index in run picker
120- pub show_all_jobs : bool , // Whether to show all jobs or just snakemake jobs
116+ pub runs : Vec < RunInfo > , // Available runs
117+ pub selected_run : Option < String > , // Currently selected run UUID
118+ pub show_run_picker : bool , // Whether run picker modal is open
119+ pub run_picker_index : usize , // Selected index in run picker
120+ pub show_all_jobs : bool , // Whether to show all jobs or just snakemake jobs
121121}
122122
123123impl App {
@@ -627,7 +627,10 @@ impl App {
627627 if let Some ( run) = self . runs . get ( self . run_picker_index ) {
628628 self . selected_run = Some ( run. run_uuid . clone ( ) ) ;
629629 self . status_message = Some ( (
630- format ! ( "Selected run: {}" , & run. run_uuid[ ..8 . min( run. run_uuid. len( ) ) ] ) ,
630+ format ! (
631+ "Selected run: {}" ,
632+ & run. run_uuid[ ..8 . min( run. run_uuid. len( ) ) ]
633+ ) ,
631634 Instant :: now ( ) ,
632635 ) ) ;
633636 }
@@ -836,11 +839,7 @@ impl App {
836839 & run. run_uuid
837840 } ;
838841
839- let jobs_str = format ! (
840- "{}/{}" ,
841- run. completed_jobs,
842- run. total_jobs. unwrap_or( 0 )
843- ) ;
842+ let jobs_str = format ! ( "{}/{}" , run. completed_jobs, run. total_jobs. unwrap_or( 0 ) ) ;
844843
845844 let time_ago = format_time_ago ( run. last_updated ) ;
846845
0 commit comments