diff --git a/src/routes/v2/pages/Editor/components/IssueResolution/resolutions/MissingPipelineInputValueResolution.tsx b/src/routes/v2/pages/Editor/components/IssueResolution/resolutions/MissingPipelineInputValueResolution.tsx index 294acd408d..2b333186ad 100644 --- a/src/routes/v2/pages/Editor/components/IssueResolution/resolutions/MissingPipelineInputValueResolution.tsx +++ b/src/routes/v2/pages/Editor/components/IssueResolution/resolutions/MissingPipelineInputValueResolution.tsx @@ -1,6 +1,7 @@ import { observer } from "mobx-react-lite"; -import { BlockStack } from "@/components/ui/layout"; +import { Icon } from "@/components/ui/icon"; +import { BlockStack, InlineStack } from "@/components/ui/layout"; import { Text } from "@/components/ui/typography"; import type { ComponentSpec, ValidationIssue } from "@/models/componentSpec"; import { useAnalytics } from "@/providers/AnalyticsProvider"; @@ -36,10 +37,12 @@ export const MissingPipelineInputValueResolution = observer( const entityId = issue.entityId; - const handleDefaultValueChange = (value: string) => { - const newDefault = value || undefined; - if (newDefault !== input.defaultValue) { - ioActions.setInputDefaultValue(spec, entityId, newDefault); + const effectiveValue = input.value ?? input.defaultValue; + + const handleValueChange = (value: string) => { + const newValue = value || undefined; + if (newValue !== effectiveValue) { + ioActions.setInputValue(spec, entityId, newValue); track("v2.pipeline_editor.input_details.default_value.updated"); } }; @@ -51,23 +54,41 @@ export const MissingPipelineInputValueResolution = observer( weight="semibold" className="text-gray-700 dark:text-foreground" > - Set a default value for pipeline input “{input.name}” + Set a value for pipeline input “{input.name}” - input.defaultValue} + - Default value - + effectiveValue} + > + Value + + + + + + Use as default + + +