From 17722f581bc4eab7db123c2581f3e99f16976e16 Mon Sep 17 00:00:00 2001 From: CorrectRoad Date: Thu, 26 Jun 2025 16:42:48 +0800 Subject: [PATCH] feat: add tooltip to workflow run node name (#21564) --- web/app/components/workflow/run/node.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/web/app/components/workflow/run/node.tsx b/web/app/components/workflow/run/node.tsx index 9555cbd087..a4df5f4c74 100644 --- a/web/app/components/workflow/run/node.tsx +++ b/web/app/components/workflow/run/node.tsx @@ -29,6 +29,7 @@ import type { import ErrorHandleTip from '@/app/components/workflow/nodes/_base/components/error-handle/error-handle-tip' import { hasRetryNode } from '@/app/components/workflow/utils' import { useDocLink } from '@/context/i18n' +import Tooltip from '@/app/components/base/tooltip' type Props = { className?: string @@ -129,10 +130,16 @@ const NodePanel: FC = ({ /> )} -
{nodeInfo.title}
+ {nodeInfo.title} + } + > +
{nodeInfo.title}
+
{nodeInfo.status !== 'running' && !hideInfo && (
{nodeInfo.execution_metadata?.total_tokens ? `${getTokenCount(nodeInfo.execution_metadata?.total_tokens || 0)} tokens ยท ` : ''}{`${getTime(nodeInfo.elapsed_time || 0)}`}
)}