feat: dataset creation UI tinkering
This commit is contained in:
parent
8f178290be
commit
7d673e7f14
@ -303,7 +303,7 @@ const EmbeddingProcess: FC<Props> = ({ datasetId, batchId, documents = [], index
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{indexingStatusDetail.indexing_status === 'completed' && (
|
{indexingStatusDetail.indexing_status === 'completed' && (
|
||||||
<RiCheckboxCircleFill className='shrink-0 size-4' />
|
<RiCheckboxCircleFill className='shrink-0 size-4 text-text-success' />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -122,9 +122,9 @@ const StepOne = ({
|
|||||||
return true
|
return true
|
||||||
if (isShowVectorSpaceFull)
|
if (isShowVectorSpaceFull)
|
||||||
return true
|
return true
|
||||||
|
|
||||||
return false
|
return false
|
||||||
}, [files])
|
}, [files, isShowVectorSpaceFull])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='flex w-full h-full'>
|
<div className='flex w-full h-full'>
|
||||||
<div className='grow overflow-y-auto relative'>
|
<div className='grow overflow-y-auto relative'>
|
||||||
@ -229,7 +229,15 @@ const StepOne = ({
|
|||||||
<VectorSpaceFull />
|
<VectorSpaceFull />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<Button disabled={isShowVectorSpaceFull || !notionPages.length} className={s.submitButton} variant='primary' onClick={onStepChange}>{t('datasetCreation.stepOne.button')}</Button>
|
<div className="flex justify-end gap-2 max-w-[640px]">
|
||||||
|
{/* <Button>{t('datasetCreation.stepOne.cancel')}</Button> */}
|
||||||
|
<Button disabled={isShowVectorSpaceFull || !notionPages.length} variant='primary' onClick={onStepChange}>
|
||||||
|
<span className="flex gap-0.5 px-[10px]">
|
||||||
|
<span className="px-0.5">{t('datasetCreation.stepOne.button')}</span>
|
||||||
|
<RiArrowRightLine className="size-4" />
|
||||||
|
</span>
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
@ -252,7 +260,15 @@ const StepOne = ({
|
|||||||
<VectorSpaceFull />
|
<VectorSpaceFull />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<Button disabled={isShowVectorSpaceFull || !websitePages.length} className={s.submitButton} variant='primary' onClick={onStepChange}>{t('datasetCreation.stepOne.button')}</Button>
|
<div className="flex justify-end gap-2 max-w-[640px]">
|
||||||
|
{/* <Button>{t('datasetCreation.stepOne.cancel')}</Button> */}
|
||||||
|
<Button disabled={isShowVectorSpaceFull || !websitePages.length} variant='primary' onClick={onStepChange}>
|
||||||
|
<span className="flex gap-0.5 px-[10px]">
|
||||||
|
<span className="px-0.5">{t('datasetCreation.stepOne.button')}</span>
|
||||||
|
<RiArrowRightLine className="size-4" />
|
||||||
|
</span>
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{!datasetId && (
|
{!datasetId && (
|
||||||
|
Loading…
Reference in New Issue
Block a user