diff --git a/common/constants.ts b/common/constants.ts index 74ec6cdf..07e7ad5e 100644 --- a/common/constants.ts +++ b/common/constants.ts @@ -476,7 +476,7 @@ export const ERROR_GETTING_WORKFLOW_MSG = 'Failed to retrieve template'; export const NO_TEMPLATES_FOUND_MSG = 'There are no templates'; export const NO_MODIFICATIONS_FOUND_TEXT = 'Template does not contain any modifications'; -export const JSONPATH_ROOT_SELECTOR = '$.'; +export const JSONPATH_ROOT_SELECTOR = '$'; export enum SORT_ORDER { ASC = 'asc', DESC = 'desc', diff --git a/public/pages/workflow_detail/workflow_inputs/input_fields/map_array_field.tsx b/public/pages/workflow_detail/workflow_inputs/input_fields/map_array_field.tsx index 6e935f6f..3a50e20e 100644 --- a/public/pages/workflow_detail/workflow_inputs/input_fields/map_array_field.tsx +++ b/public/pages/workflow_detail/workflow_inputs/input_fields/map_array_field.tsx @@ -26,11 +26,12 @@ import { MapField } from './map_field'; interface MapArrayFieldProps { fieldPath: string; // the full path in string-form to the field (e.g., 'ingest.enrich.processors.text_embedding_processor.inputField') - helpText?: string; keyTitle?: string; keyPlaceholder?: string; + keyHelpText?: string; valueTitle?: string; valuePlaceholder?: string; + valueHelpText?: string; onMapAdd?: (curArray: MapArrayFormValue) => void; onMapDelete?: (idxToDelete: number) => void; keyOptions?: { label: string }[]; @@ -123,11 +124,12 @@ export function MapArrayField(props: MapArrayFieldProps) { diff --git a/public/pages/workflow_detail/workflow_inputs/input_fields/map_field.tsx b/public/pages/workflow_detail/workflow_inputs/input_fields/map_field.tsx index fbc545ea..784823dd 100644 --- a/public/pages/workflow_detail/workflow_inputs/input_fields/map_field.tsx +++ b/public/pages/workflow_detail/workflow_inputs/input_fields/map_field.tsx @@ -29,11 +29,12 @@ interface MapFieldProps { fieldPath: string; // the full path in string-form to the field (e.g., 'ingest.enrich.processors.text_embedding_processor.inputField') label?: string; helpLink?: string; - helpText?: string; keyTitle?: string; keyPlaceholder?: string; + keyHelpText?: string; valueTitle?: string; valuePlaceholder?: string; + valueHelpText?: string; keyOptions?: { label: string }[]; valueOptions?: { label: string }[]; addEntryButtonText?: string; @@ -111,9 +112,21 @@ export function MapField(props: MapFieldProps) { - - {props.keyTitle || 'Key'} - + + + + {props.keyTitle || 'Key'} + + + {props.keyHelpText && ( + + + + )} + @@ -122,10 +135,10 @@ export function MapField(props: MapFieldProps) { {props.valueTitle || 'Value'} - {props.helpText && ( + {props.valueHelpText && ( diff --git a/public/pages/workflow_detail/workflow_inputs/processor_inputs/ml_processor_inputs.tsx b/public/pages/workflow_detail/workflow_inputs/processor_inputs/ml_processor_inputs.tsx index a5ce285e..e12e4dd9 100644 --- a/public/pages/workflow_detail/workflow_inputs/processor_inputs/ml_processor_inputs.tsx +++ b/public/pages/workflow_detail/workflow_inputs/processor_inputs/ml_processor_inputs.tsx @@ -378,8 +378,6 @@ export function MLProcessorInputs(props: MLProcessorInputsProps) { { diff --git a/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/output_transform_modal.tsx b/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/output_transform_modal.tsx index 15ef0364..c7e94475 100644 --- a/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/output_transform_modal.tsx +++ b/public/pages/workflow_detail/workflow_inputs/processor_inputs/modals/output_transform_modal.tsx @@ -33,7 +33,6 @@ import { IConfigField, IProcessorConfig, IngestPipelineConfig, - JSONPATH_ROOT_SELECTOR, MapArrayFormValue, MapFormValue, ModelInterface, @@ -213,10 +212,9 @@ export function OutputTransformModal(props: OutputTransformModalProps) { const OutputMap = (