@@ -70,11 +70,11 @@ def render(
7070 ],
7171 )
7272
73- others_summary_column , pii_summary_column , score_column , actions_column , export_button_column = st .columns ([.2 , .2 , .15 , .3 , .15 ], vertical_alignment = "bottom" )
73+ others_summary_column , pii_summary_column , score_column , actions_column , export_button_column = st .columns ([.25 , .2 , .1 , .3 , .15 ], vertical_alignment = "bottom" )
7474 (liklihood_filter_column , table_filter_column , column_filter_column , issue_type_filter_column , action_filter_column , sort_column ) = (
7575 st .columns ([.2 , .15 , .2 , .2 , .15 , .1 ], vertical_alignment = "bottom" )
7676 )
77- testgen .flex_row_end (actions_column )
77+ testgen .flex_row_end (actions_column , wrap = True )
7878 testgen .flex_row_end (export_button_column )
7979
8080 filters_changed = False
@@ -187,21 +187,17 @@ def render(
187187 summaries = get_profiling_anomaly_summary (run_id )
188188 others_summary = [summary for summary in summaries if summary .get ("type" ) != "PII" ]
189189 with others_summary_column :
190- testgen .summary_bar (
190+ testgen .summary_counts (
191191 items = others_summary ,
192192 label = "Hygiene Issues" ,
193- height = 20 ,
194- width = 400 ,
195193 )
196194
197195 anomalies_pii_summary = [summary for summary in summaries if summary .get ("type" ) == "PII" ]
198196 if anomalies_pii_summary :
199197 with pii_summary_column :
200- testgen .summary_bar (
198+ testgen .summary_counts (
201199 items = anomalies_pii_summary ,
202- label = "Potential PII" ,
203- height = 20 ,
204- width = 400 ,
200+ label = "Potential PII (Risk)" ,
205201 )
206202
207203 selected , selected_row = fm .render_grid_select (
@@ -525,8 +521,8 @@ def get_profiling_anomaly_summary(profile_run_id: str) -> list[dict]:
525521 { "label" : "Likely" , "value" : result .likely_ct , "color" : "orange" },
526522 { "label" : "Possible" , "value" : result .possible_ct , "color" : "yellow" },
527523 { "label" : "Dismissed" , "value" : result .dismissed_ct , "color" : "grey" },
528- { "label" : "High Risk " , "value" : result .pii_high_ct , "color" : "red" , "type" : "PII" },
529- { "label" : "Moderate Risk " , "value" : result .pii_moderate_ct , "color" : "orange" , "type" : "PII" },
524+ { "label" : "High" , "value" : result .pii_high_ct , "color" : "red" , "type" : "PII" },
525+ { "label" : "Moderate" , "value" : result .pii_moderate_ct , "color" : "orange" , "type" : "PII" },
530526 { "label" : "Dismissed" , "value" : result .pii_dismissed_ct , "color" : "grey" , "type" : "PII" },
531527 ]
532528
0 commit comments