mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 01:26:33 +08:00
feat: update dataset embedding error message display
This commit is contained in:
parent
e206866908
commit
6da7efaa1d
@ -29,6 +29,7 @@ import UpgradeBtn from '@/app/components/billing/upgrade-btn'
|
|||||||
import { useProviderContext } from '@/context/provider-context'
|
import { useProviderContext } from '@/context/provider-context'
|
||||||
import { sleep } from '@/utils'
|
import { sleep } from '@/utils'
|
||||||
import { RETRIEVE_METHOD } from '@/types/app'
|
import { RETRIEVE_METHOD } from '@/types/app'
|
||||||
|
import Tooltip from '@/app/components/base/tooltip'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
datasetId: string
|
datasetId: string
|
||||||
@ -295,12 +296,15 @@ const EmbeddingProcess: FC<Props> = ({ datasetId, batchId, documents = [], index
|
|||||||
<div className="shrink-0 text-xs">{`${getSourcePercent(indexingStatusDetail)}%`}</div>
|
<div className="shrink-0 text-xs">{`${getSourcePercent(indexingStatusDetail)}%`}</div>
|
||||||
)}
|
)}
|
||||||
{indexingStatusDetail.indexing_status === 'error' && (
|
{indexingStatusDetail.indexing_status === 'error' && (
|
||||||
<>
|
<Tooltip
|
||||||
<span className="flex items-center max-w-[200px] text-xs text-text-destructive truncate" title={indexingStatusDetail.error || ''}>
|
popupClassName='px-4 py-[14px] max-w-60 text-sm leading-4 text-text-secondary border-[0.5px] border-components-panel-border rounded-xl'
|
||||||
{indexingStatusDetail.error || 'Error'}
|
offset={4}
|
||||||
|
popupContent={indexingStatusDetail.error}
|
||||||
|
>
|
||||||
|
<span>
|
||||||
|
<RiErrorWarningFill className='shrink-0 size-4 text-text-destructive' />
|
||||||
</span>
|
</span>
|
||||||
<RiErrorWarningFill className='shrink-0 size-4 text-text-destructive' />
|
</Tooltip>
|
||||||
</>
|
|
||||||
)}
|
)}
|
||||||
{indexingStatusDetail.indexing_status === 'completed' && (
|
{indexingStatusDetail.indexing_status === 'completed' && (
|
||||||
<RiCheckboxCircleFill className='shrink-0 size-4 text-text-success' />
|
<RiCheckboxCircleFill className='shrink-0 size-4 text-text-success' />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user