@@ -135,7 +135,8 @@ def __init__(self, total_repos: int):
135135 )
136136 self .layout ["info" ]["other_info" ].split_row (
137137 Layout (name = "backend" , ratio = 1 ),
138- Layout (name = "log_dir" , ratio = 1 ),
138+ Layout (name = "branch" , ratio = 2 ),
139+ Layout (name = "log_dir" , ratio = 2 ),
139140 )
140141 self .layout ["info" ]["agent_info" ].split_row (
141142 Layout (name = "agent_name" , ratio = 1 ),
@@ -151,6 +152,10 @@ def __init__(self, total_repos: int):
151152 self .layout ["info" ]["other_info" ]["backend" ].update (
152153 Panel (self .backend_display , title = "Backend" , border_style = "blue" )
153154 )
155+ self .branch_display = Text ("" , justify = "center" )
156+ self .layout ["info" ]["other_info" ]["branch" ].update (
157+ Panel (self .branch_display , title = "Branch" , border_style = "blue" )
158+ )
154159 self .log_dir_display = Text ("" , justify = "center" )
155160 self .layout ["info" ]["other_info" ]["log_dir" ].update (
156161 Panel (self .log_dir_display , title = "Log Directory" , border_style = "blue" )
@@ -227,9 +232,16 @@ def update_time_display(self, time_in_seconds: int) -> None:
227232 Panel (self .time_display , title = "Time Taken" , border_style = "blue" )
228233 )
229234
235+ def update_branch_display (self , branch : str ) -> None :
236+ """Update the branch display with the given branch."""
237+ self .branch_display = Text (f"{ branch } " , justify = "center" )
238+ self .layout ["info" ]["other_info" ]["branch" ].update (
239+ Panel (self .branch_display , title = "Branch" , border_style = "blue" )
240+ )
241+
230242 def update_backend_display (self , backend : str ) -> None :
231243 """Update the backend display with the given backend."""
232- self .backend_display = Text (f"Backend Using: { backend } " , justify = "center" )
244+ self .backend_display = Text (f"{ backend } " , justify = "center" )
233245 self .layout ["info" ]["other_info" ]["backend" ].update (
234246 Panel (self .backend_display , title = "Backend" , border_style = "blue" )
235247 )
0 commit comments