diff --git a/web/app/components/workflow/nodes/_base/node.tsx b/web/app/components/workflow/nodes/_base/node.tsx index dbecd2d817..019f38ca0e 100644 --- a/web/app/components/workflow/nodes/_base/node.tsx +++ b/web/app/components/workflow/nodes/_base/node.tsx @@ -4,13 +4,6 @@ import type { } from 'react' import type { IterationNodeType } from '@/app/components/workflow/nodes/iteration/types' import type { NodeProps } from '@/app/components/workflow/types' -import { - RiAlertFill, - RiCheckboxCircleFill, - RiErrorWarningFill, - RiLoader2Line, - RiPauseCircleFill, -} from '@remixicon/react' import { cloneElement, memo, @@ -109,7 +102,7 @@ const BaseNode: FC = ({ } = useMemo(() => { return { showRunningBorder: (data._runningStatus === NodeRunningStatus.Running || data._runningStatus === NodeRunningStatus.Paused) && !showSelectedBorder, - showSuccessBorder: (data._runningStatus === NodeRunningStatus.Succeeded || hasVarValue) && !showSelectedBorder, + showSuccessBorder: (data._runningStatus === NodeRunningStatus.Succeeded || (hasVarValue && !data._runningStatus)) && !showSelectedBorder, showFailedBorder: data._runningStatus === NodeRunningStatus.Failed && !showSelectedBorder, showExceptionBorder: data._runningStatus === NodeRunningStatus.Exception && !showSelectedBorder, } @@ -127,7 +120,7 @@ const BaseNode: FC = ({ return (
@@ -167,7 +160,7 @@ const BaseNode: FC = ({ { data.type === BlockEnum.DataSource && (
-
+
{t('blocks.datasource', { ns: 'workflow' })}
@@ -252,7 +245,7 @@ const BaseNode: FC = ({ />
{data.title} @@ -268,7 +261,7 @@ const BaseNode: FC = ({
)} > -
+
{t('nodes.iteration.parallelModeUpper', { ns: 'workflow' })}
@@ -288,26 +281,26 @@ const BaseNode: FC = ({ !!(data.type === BlockEnum.Loop && data._loopIndex) && LoopIndex } { - isLoading && + isLoading && } { !isLoading && data._runningStatus === NodeRunningStatus.Failed && ( - + ) } { !isLoading && data._runningStatus === NodeRunningStatus.Exception && ( - + ) } { - !isLoading && (data._runningStatus === NodeRunningStatus.Succeeded || hasVarValue) && ( - + !isLoading && (data._runningStatus === NodeRunningStatus.Succeeded || (hasVarValue && !data._runningStatus)) && ( + ) } { !isLoading && data._runningStatus === NodeRunningStatus.Paused && ( - + ) }
@@ -341,7 +334,7 @@ const BaseNode: FC = ({ } { !!(data.desc && data.type !== BlockEnum.Iteration && data.type !== BlockEnum.Loop) && ( -
+
{data.desc}
) diff --git a/web/eslint-suppressions.json b/web/eslint-suppressions.json index 3d2de0fa37..9293446c0c 100644 --- a/web/eslint-suppressions.json +++ b/web/eslint-suppressions.json @@ -6800,12 +6800,6 @@ } }, "app/components/workflow/nodes/_base/node.tsx": { - "tailwindcss/enforce-consistent-class-order": { - "count": 5 - }, - "tailwindcss/no-unnecessary-whitespace": { - "count": 1 - }, "ts/no-explicit-any": { "count": 3 }