@@ -263,24 +263,6 @@ def handle_run_checkbox_change(
263263 return selection
264264
265265
266- def group_checkbox_update (
267- group_runs : list [str ], selection : RunSelection
268- ) -> ColoredCheckboxGroup :
269- color_palette = utils .get_color_palette ()
270- choice_indices = {run : i for i , run in enumerate (selection .choices )}
271- colors = [
272- color_palette [choice_indices .get (run , 0 ) % len (color_palette )]
273- for run in group_runs
274- ]
275- subset = utils .ordered_subset (group_runs , selection .selected )
276- return ColoredCheckboxGroup (
277- choices = group_runs ,
278- value = subset ,
279- colors = colors ,
280- label = f"Runs ({ len (group_runs )} )" ,
281- )
282-
283-
284266def handle_group_checkbox_change (
285267 group_selected : list [str ] | None ,
286268 selection : RunSelection ,
@@ -289,7 +271,6 @@ def handle_group_checkbox_change(
289271 selection .replace_group (group_runs or [], group_selected or [])
290272 return (
291273 selection ,
292- group_checkbox_update (group_runs or [], selection ),
293274 run_checkbox_update (selection ),
294275 )
295276
@@ -303,6 +284,5 @@ def handle_group_toggle(
303284 selection .replace_group (group_runs or [], target )
304285 return (
305286 selection ,
306- group_checkbox_update (group_runs or [], selection ),
307287 run_checkbox_update (selection ),
308288 )
0 commit comments