@@ -21,6 +21,7 @@ import { ProfilingResultsDialog } from '../shared/profiling_results_dialog.js';
2121import { AXES , FACET_AXES , GROUP_BY_AXES , EMPTY , appliesToSelectedColumn } from '/app/static/js/components/test_picker_taxonomy.js' ;
2222import { enterPage , exitPage , getPageSignal } from '/app/static/js/page_lifecycle.js' ;
2323import { jsonObject , maxLength } from '/app/static/js/form_validators.js' ;
24+ import { capitalize } from '/app/static/js/display_utils.js' ;
2425
2526const { button : btn , div, i : icon , span, strong } = van . tags ;
2627
@@ -820,6 +821,8 @@ const DetailPanel = (row) => {
820821 const paramCols = row . default_parm_columns
821822 ? row . default_parm_columns . split ( ',' ) . map ( c => c . trim ( ) ) . filter ( Boolean )
822823 : [ ] ;
824+ const paramLabels = ( row . default_parm_prompts || '' ) . split ( ',' ) . map ( v => v . trim ( ) ) ;
825+ const paramHelp = ( row . default_parm_help || '' ) . split ( '|' ) . map ( v => v . trim ( ) ) ;
823826
824827 return div (
825828 { class : 'flex-column fx-gap-3 border border-radius-1 p-4 mt-2' } ,
@@ -836,7 +839,11 @@ const DetailPanel = (row) => {
836839 Attribute ( { label : 'Lock Refresh' , value : row . lock_refresh_display } ) ,
837840 Attribute ( { label : 'Urgency' , value : row . urgency } ) ,
838841 Attribute ( { label : 'Export to Observability' , value : row . export_to_observability_display } ) ,
839- ...paramCols . map ( col => Attribute ( { label : col , value : String ( row [ col ] ?? '' ) } ) ) ,
842+ ...paramCols . map ( ( col , index ) => Attribute ( {
843+ label : paramLabels [ index ] || capitalize ( col . replaceAll ( '_' , ' ' ) ) ,
844+ help : paramHelp [ index ] || null ,
845+ value : String ( row [ col ] ?? '' ) ,
846+ } ) ) ,
840847 ) ,
841848 div (
842849 { class : 'flex-column fx-flex fx-gap-3' } ,
0 commit comments