diff --git a/ui/src/core/page-components/agent-detail/modals/edit-control/evaluator-config-section.tsx b/ui/src/core/page-components/agent-detail/modals/edit-control/evaluator-config-section.tsx index 077ea210..6f94f066 100644 --- a/ui/src/core/page-components/agent-detail/modals/edit-control/evaluator-config-section.tsx +++ b/ui/src/core/page-components/agent-detail/modals/edit-control/evaluator-config-section.tsx @@ -17,6 +17,7 @@ import { EvaluatorJsonView } from './evaluator-json-view'; import type { ConfigViewMode } from './types'; const DEFAULT_HEIGHT = 450; +const CONTENT_MIN_HEIGHT_EXTRA = 60; type ValidationStatus = 'idle' | 'validating' | 'valid' | 'invalid'; type EvaluatorConfigSectionProps = { @@ -72,6 +73,8 @@ export function EvaluatorConfigSection({ ? 'red' : 'dimmed'; + const contentHeight = height + CONTENT_MIN_HEIGHT_EXTRA; + return ( @@ -91,45 +94,44 @@ export function EvaluatorConfigSection({ - + + {statusLabel ? ( + + {statusLabel} + + ) : null} + + - {statusLabel ? ( - - {statusLabel} - - ) : null} - - {configViewMode === 'form' && ( - - {FormComponent ? ( + + {configViewMode === 'form' ? ( + FormComponent ? ( ) : ( No form available for this evaluator. Use JSON view to configure. - )} - - )} - - {configViewMode === 'json' && ( - - )} + ) + ) : ( + + )} + ); diff --git a/ui/src/core/page-components/agent-detail/modals/edit-control/evaluator-json-view.tsx b/ui/src/core/page-components/agent-detail/modals/edit-control/evaluator-json-view.tsx index cd218098..e9560df6 100644 --- a/ui/src/core/page-components/agent-detail/modals/edit-control/evaluator-json-view.tsx +++ b/ui/src/core/page-components/agent-detail/modals/edit-control/evaluator-json-view.tsx @@ -3,6 +3,10 @@ import { useDebouncedValue } from '@mantine/hooks'; import { useEffect, useRef } from 'react'; import { isApiError } from '@/core/api/errors'; +import { + labelPropsInline, + LabelWithTooltip, +} from '@/core/components/label-with-tooltip'; import { ApiErrorAlert } from './api-error-alert'; import type { EvaluatorJsonViewProps } from './types'; @@ -79,6 +83,13 @@ export const EvaluatorJsonView = ({ return (