([])
@@ -40,6 +41,14 @@ const TestRunPanel = () => {
return isShowVectorSpaceFull
}, [fileList, isShowVectorSpaceFull])
+ const nextBtnDisabled = useMemo(() => {
+ if (dataSourceType === DataSourceType.FILE)
+ return nextDisabled
+ if (dataSourceType === DataSourceType.NOTION)
+ return isShowVectorSpaceFull || !notionPages.length
+ return false
+ }, [dataSourceType, nextDisabled, isShowVectorSpaceFull, notionPages.length])
+
const handleClose = () => {
setShowTestRunPanel?.(false)
}
@@ -87,7 +96,7 @@ const TestRunPanel = () => {
{
- currentStep === 0 && (
+ currentStep === 1 && (
<>
{
updateFile={updateFile}
updateFileList={updateFileList}
notSupportBatchUpload={notSupportBatchUpload}
- isShowVectorSpaceFull={isShowVectorSpaceFull}
/>
)}
{dataSourceType === DataSourceType.NOTION && (
)}
+ {isShowVectorSpaceFull && (
+
+ )}
- {dataSourceType === DataSourceType.FILE && (
-
- )}
- {dataSourceType === DataSourceType.NOTION && (
-
- )}
+
>
)
diff --git a/web/app/components/rag-pipeline/components/panel/test-run/step-indicator.tsx b/web/app/components/rag-pipeline/components/panel/test-run/step-indicator.tsx
index 870961f0e8..5fc599833a 100644
--- a/web/app/components/rag-pipeline/components/panel/test-run/step-indicator.tsx
+++ b/web/app/components/rag-pipeline/components/panel/test-run/step-indicator.tsx
@@ -19,7 +19,7 @@ const StepIndicator = ({
return (
{steps.map((step, index) => {
- const isCurrentStep = index === currentStep
+ const isCurrentStep = index === currentStep - 1
const isLastStep = index === steps.length - 1
return (