|
|
|
|
@ -147,34 +147,38 @@ const PipelineSettings = ({
|
|
|
|
|
<div
|
|
|
|
|
className='relative flex h-[calc(100vh-56px)] min-w-[1024px] overflow-x-auto rounded-t-2xl border-t border-effects-highlight bg-background-default-subtle'
|
|
|
|
|
>
|
|
|
|
|
<div className='flex h-full flex-1 flex-col px-14'>
|
|
|
|
|
<LeftHeader title={t('datasetPipeline.documentSettings.title')} />
|
|
|
|
|
<div className='grow overflow-y-auto'>
|
|
|
|
|
<ProcessDocuments
|
|
|
|
|
ref={formRef}
|
|
|
|
|
lastRunInputData={lastRunData!.input_data}
|
|
|
|
|
datasourceNodeId={lastRunData!.datasource_node_id}
|
|
|
|
|
onProcess={onClickProcess}
|
|
|
|
|
onPreview={onClickPreview}
|
|
|
|
|
onSubmit={handleSubmit}
|
|
|
|
|
/>
|
|
|
|
|
<div className='h-full min-w-0 flex-1'>
|
|
|
|
|
<div className='flex h-full flex-col px-14'>
|
|
|
|
|
<LeftHeader title={t('datasetPipeline.documentSettings.title')} />
|
|
|
|
|
<div className='grow overflow-y-auto'>
|
|
|
|
|
<ProcessDocuments
|
|
|
|
|
ref={formRef}
|
|
|
|
|
lastRunInputData={lastRunData!.input_data}
|
|
|
|
|
datasourceNodeId={lastRunData!.datasource_node_id}
|
|
|
|
|
onProcess={onClickProcess}
|
|
|
|
|
onPreview={onClickPreview}
|
|
|
|
|
onSubmit={handleSubmit}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{/* Preview */}
|
|
|
|
|
<div className='flex h-full flex-1 pl-2 pt-2'>
|
|
|
|
|
<ChunkPreview
|
|
|
|
|
dataSourceType={lastRunData!.datasource_type}
|
|
|
|
|
files={files}
|
|
|
|
|
onlineDocuments={onlineDocuments}
|
|
|
|
|
websitePages={websitePages}
|
|
|
|
|
isIdle={isIdle}
|
|
|
|
|
isPending={isPending && isPreview.current}
|
|
|
|
|
estimateData={estimateData}
|
|
|
|
|
onPreview={onClickPreview}
|
|
|
|
|
handlePreviewFileChange={noop}
|
|
|
|
|
handlePreviewOnlineDocumentChange={noop}
|
|
|
|
|
handlePreviewWebsitePageChange={noop}
|
|
|
|
|
/>
|
|
|
|
|
<div className='h-full min-w-0 flex-1'>
|
|
|
|
|
<div className='flex h-full flex-col pl-2 pt-2'>
|
|
|
|
|
<ChunkPreview
|
|
|
|
|
dataSourceType={lastRunData!.datasource_type}
|
|
|
|
|
files={files}
|
|
|
|
|
onlineDocuments={onlineDocuments}
|
|
|
|
|
websitePages={websitePages}
|
|
|
|
|
isIdle={isIdle}
|
|
|
|
|
isPending={isPending && isPreview.current}
|
|
|
|
|
estimateData={estimateData}
|
|
|
|
|
onPreview={onClickPreview}
|
|
|
|
|
handlePreviewFileChange={noop}
|
|
|
|
|
handlePreviewOnlineDocumentChange={noop}
|
|
|
|
|
handlePreviewWebsitePageChange={noop}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
|