run & tracing

This commit is contained in:
zxhlyh
2025-05-29 14:31:00 +08:00
parent 9176790adf
commit 1c2c4b62f8
12 changed files with 92 additions and 27 deletions

View File

@ -6,6 +6,7 @@ import { RiCloseLine } from '@remixicon/react'
import cn from '@/utils/classnames'
import type { IChatItem } from '@/app/components/base/chat/chat/type'
import Run from '@/app/components/workflow/run'
import { useStore } from '@/app/components/app/store'
type MessageLogModalProps = {
currentLogItem?: IChatItem
@ -24,6 +25,7 @@ const MessageLogModal: FC<MessageLogModalProps> = ({
const { t } = useTranslation()
const ref = useRef(null)
const [mounted, setMounted] = useState(false)
const appDetail = useStore(state => state.appDetail)
useClickAway(() => {
if (mounted)
@ -62,7 +64,8 @@ const MessageLogModal: FC<MessageLogModalProps> = ({
<Run
hideResult
activeTab={defaultTab as any}
runID={currentLogItem.workflow_run_id}
runDetailUrl={`/apps/${appDetail?.id}/workflow-runs/${currentLogItem.workflow_run_id}`}
tracingListUrl={`/apps/${appDetail?.id}/workflow-runs/${currentLogItem.workflow_run_id}/node-executions`}
/>
</div>
)