diff --git a/web/app/components/workflow/variable-inspect/artifacts-tab.tsx b/web/app/components/workflow/variable-inspect/artifacts-tab.tsx index 147233d5ce..4025d32c0b 100644 --- a/web/app/components/workflow/variable-inspect/artifacts-tab.tsx +++ b/web/app/components/workflow/variable-inspect/artifacts-tab.tsx @@ -8,10 +8,12 @@ import { import { useCallback, useState } from 'react' import { useTranslation } from 'react-i18next' import ActionButton from '@/app/components/base/action-button' +import SearchLinesSparkle from '@/app/components/base/icons/src/vender/knowledge/SearchLinesSparkle' import { FileDownload01 } from '@/app/components/base/icons/src/vender/line/files' import Loading from '@/app/components/base/loading' import ArtifactsTree from '@/app/components/workflow/skill/file-tree/artifacts-tree' import { useAppContext } from '@/context/app-context' +import { useDocLink } from '@/context/i18n' import { useDownloadSandboxFile, useSandboxFilesTree } from '@/service/use-sandbox-file' import { cn } from '@/utils/classnames' import InspectLayout from './inspect-layout' @@ -27,6 +29,7 @@ const formatFileSize = (bytes: number | null): string => { const ArtifactsTab: FC = (headerProps) => { const { t } = useTranslation('workflow') + const docLink = useDocLink() const { userProfile } = useAppContext() const sandboxId = userProfile?.id @@ -66,11 +69,23 @@ const ArtifactsTab: FC = (headerProps) => { if (!hasFiles) { return ( -
-
-

- {t('skillSidebar.artifacts.emptyState')} -

+
+
+
+ +
+
+
{t('debug.variableInspect.tabArtifacts.emptyTitle')}
+
{t('debug.variableInspect.tabArtifacts.emptyTip')}
+ + {t('debug.variableInspect.tabArtifacts.emptyLink')} + +
diff --git a/web/i18n/en-US/workflow.json b/web/i18n/en-US/workflow.json index 706ed86b6f..22d6c4cd89 100644 --- a/web/i18n/en-US/workflow.json +++ b/web/i18n/en-US/workflow.json @@ -293,6 +293,9 @@ "debug.variableInspect.systemNode": "System", "debug.variableInspect.tab.artifacts": "Artifacts", "debug.variableInspect.tab.variables": "Variables", + "debug.variableInspect.tabArtifacts.emptyLink": "Learn more", + "debug.variableInspect.tabArtifacts.emptyTip": "Files generated by the agent during test runs. They may be automatically cleared later.", + "debug.variableInspect.tabArtifacts.emptyTitle": "No artifacts generated yet", "debug.variableInspect.tabArtifacts.previewNotAvailable": "Preview not available. Click download to view this file.", "debug.variableInspect.tabArtifacts.selectFile": "Select a file to preview", "debug.variableInspect.title": "Variable Inspect", diff --git a/web/i18n/zh-Hans/workflow.json b/web/i18n/zh-Hans/workflow.json index 5401b3762e..f46462de33 100644 --- a/web/i18n/zh-Hans/workflow.json +++ b/web/i18n/zh-Hans/workflow.json @@ -291,6 +291,9 @@ "debug.variableInspect.systemNode": "系统变量", "debug.variableInspect.tab.artifacts": "产物", "debug.variableInspect.tab.variables": "变量", + "debug.variableInspect.tabArtifacts.emptyLink": "了解更多", + "debug.variableInspect.tabArtifacts.emptyTip": "Agent 在测试运行期间生成的文件,可能会在之后被自动清理。", + "debug.variableInspect.tabArtifacts.emptyTitle": "暂无产物", "debug.variableInspect.tabArtifacts.previewNotAvailable": "暂不支持预览,请点击下载查看此文件。", "debug.variableInspect.tabArtifacts.selectFile": "选择文件进行预览", "debug.variableInspect.title": "变量检查",