refact workflow run log

This commit is contained in:
zxhlyh
2024-12-27 16:17:44 +08:00
parent 23913b8640
commit e4cc8f7010
12 changed files with 193 additions and 400 deletions

View File

@ -24,6 +24,7 @@ import Toast from '../../base/toast'
import InputsPanel from './inputs-panel'
import cn from '@/utils/classnames'
import Loading from '@/app/components/base/loading'
import formatNodeList from '@/app/components/workflow/run/utils/format-log'
const WorkflowPreview = () => {
const { t } = useTranslation()
@ -160,7 +161,7 @@ const WorkflowPreview = () => {
{currentTab === 'TRACING' && (
<TracingPanel
className='bg-background-section-burn'
list={workflowRunningData?.tracing || []}
list={formatNodeList(workflowRunningData?.tracing || [], t)}
/>
)}
{currentTab === 'TRACING' && !workflowRunningData?.tracing?.length && (