Merge remote-tracking branch 'origin/main' into feat/support-agent-sandbox

This commit is contained in:
yyh
2026-03-25 12:45:48 +08:00
55 changed files with 342 additions and 448 deletions

View File

@ -4,9 +4,8 @@ import type { WorkflowRunDetailResponse } from '@/models/log'
import type { NodeTracing } from '@/types/workflow'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { useTranslation } from 'react-i18next'
import { useContext } from 'use-context-selector'
import Loading from '@/app/components/base/loading'
import { ToastContext } from '@/app/components/base/toast/context'
import { toast } from '@/app/components/base/ui/toast'
import { WorkflowRunningStatus } from '@/app/components/workflow/types'
import { fetchRunDetail, fetchTracingList } from '@/service/log'
import { cn } from '@/utils/classnames'
@ -32,7 +31,6 @@ const RunPanel: FC<RunProps> = ({
tracingListUrl,
}) => {
const { t } = useTranslation()
const { notify } = useContext(ToastContext)
const [currentTab, setCurrentTab] = useState<string>(activeTab)
const [loading, setLoading] = useState<boolean>(true)
const [runDetail, setRunDetail] = useState<WorkflowRunDetailResponse>()
@ -55,12 +53,9 @@ const RunPanel: FC<RunProps> = ({
getResultCallback(res)
}
catch (err) {
notify({
type: 'error',
message: `${err}`,
})
toast.error(`${err}`)
}
}, [notify, getResultCallback, runDetailUrl])
}, [getResultCallback, runDetailUrl])
const getTracingList = useCallback(async () => {
try {
@ -70,12 +65,9 @@ const RunPanel: FC<RunProps> = ({
setList(nodeList)
}
catch (err) {
notify({
type: 'error',
message: `${err}`,
})
toast.error(`${err}`)
}
}, [notify, tracingListUrl])
}, [tracingListUrl])
const getData = useCallback(async () => {
setLoading(true)