@@ -135,7 +135,8 @@ def __init__(self, total_repos: int):
135
135
)
136
136
self .layout ["info" ]["other_info" ].split_row (
137
137
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 ),
139
140
)
140
141
self .layout ["info" ]["agent_info" ].split_row (
141
142
Layout (name = "agent_name" , ratio = 1 ),
@@ -151,6 +152,10 @@ def __init__(self, total_repos: int):
151
152
self .layout ["info" ]["other_info" ]["backend" ].update (
152
153
Panel (self .backend_display , title = "Backend" , border_style = "blue" )
153
154
)
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
+ )
154
159
self .log_dir_display = Text ("" , justify = "center" )
155
160
self .layout ["info" ]["other_info" ]["log_dir" ].update (
156
161
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:
227
232
Panel (self .time_display , title = "Time Taken" , border_style = "blue" )
228
233
)
229
234
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
+
230
242
def update_backend_display (self , backend : str ) -> None :
231
243
"""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" )
233
245
self .layout ["info" ]["other_info" ]["backend" ].update (
234
246
Panel (self .backend_display , title = "Backend" , border_style = "blue" )
235
247
)
0 commit comments