Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
Feat/add document status tooltip (#937)
zxhlyhf53242c08114
diff --git a/web/app/components/datasets/documents/detail/index.tsx b/web/app/components/datasets/documents/detail/index.tsxindex a18bae99302..ebeb2b301bf 100644--- a/web/app/components/datasets/documents/detail/index.tsx+++ b/web/app/components/datasets/documents/detail/index.tsx@@ -127,7 +127,7 @@ const DocumentDetail: FC<Props> = ({ datasetId, documentId }) => {</div><Divider className='!h-4' type='vertical' /><DocumentTitle extension={documentDetail?.data_source_info?.upload_file?.extension} name={documentDetail?.name} />- <StatusItem status={documentDetail?.display_status || 'available'} scene='detail' />+ <StatusItem status={documentDetail?.display_status || 'available'} scene='detail' errorMessage={documentDetail?.error || ''} />{documentDetail && !documentDetail.archived && (<SegmentAddimportStatus={importStatus}diff --git a/web/app/components/datasets/documents/list.tsx b/web/app/components/datasets/documents/list.tsxindex df9aadd7f40..b3bc61bfe12 100644--- a/web/app/components/datasets/documents/list.tsx+++ b/web/app/components/datasets/documents/list.tsx@@ -27,7 +27,8 @@ import NotionIcon from '@/app/components/base/notion-icon'import ProgressBar from '@/app/components/base/progress-bar'import { DataSourceType, type DocumentDisplayStatus, type SimpleDocumentDetail } from '@/models/datasets'import type { CommonResponse } from '@/models/common'-import { DotsHorizontal } from '@/app/components/base/icons/src/vender/line/general'+import { FilePlus02 } from '@/app/components/base/icons/src/vender/line/files'+import { DotsHorizontal, HelpCircle } from '@/app/components/base/icons/src/vender/line/general'export const SettingsIcon: FC<{ className?: string }> = ({ className }) => {return <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" className={className ?? ''}>@@ -73,7 +74,8 @@ export const StatusItem: FC<{reverse?: booleanscene?: 'list' | 'detail'textCls?: string-}> = ({ status, reverse = false, scene = 'list', textCls = '' }) => {+ errorMessage?: string+}> = ({ status, reverse = false, scene = 'list', textCls = '', errorMessage }) => {const DOC_INDEX_STATUS_MAP = useIndexStatus()const localStatus = status.toLowerCase() as keyof typeof DOC_INDEX_STATUS_MAPreturn <div className={@@ -83,6 +85,16 @@ export const StatusItem: FC<{}><Indicator color={DOC_INDEX_STATUS_MAP[localStatus]?.color as IndicatorProps['color']} className={reverse ? 'ml-2' : 'mr-2'} /><span className={cn('text-gray-700 text-sm', textCls)}>{DOC_INDEX_STATUS_MAP[localStatus]?.text}</span>+ {+ errorMessage && (+ <Tooltip+ selector='dataset-document-detail-item-status'+ content={errorMessage}+ >+ <HelpCircle className='ml-1 w-[14px] h-[14px] text-gray-700' />+ </Tooltip>+ )+ }</div>}