Skip to content

armgit / dify

Public Imported from GitHub
0

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.

560 B
Raw Blame
import type { BackgroundTask } from '../models'
import { useTranslation } from 'react-i18next'
import { taskGraphIsIncomplete } from '../model'

export function DocumentGraphStatus({ task }: { task: BackgroundTask }) {
  const { t } = useTranslation(['knowledgeTasks'])
  if (!taskGraphIsIncomplete(task)) return null
  const failed = task.semanticEnrichment?.state === 'failed'
  return (
    <p className="mt-1 system-xs-regular text-text-warning" role="status">
      {failed ? t(($) => $.graphRepairFailed) : t(($) => $.graphRepairPending)}
    </p>
  )
}