From 7ac0f0c08c5511580828b32d2d71714df0b9abe3 Mon Sep 17 00:00:00 2001 From: twwu Date: Tue, 17 Jun 2025 16:13:49 +0800 Subject: [PATCH] feat: enhance processing components by adding runDisabled state and fetching indicators --- .../process-documents/actions.tsx | 3 +++ .../create-from-pipeline/process-documents/hooks.ts | 3 ++- .../create-from-pipeline/process-documents/index.tsx | 7 ++++--- .../data-source/website-crawl/base/crawler.tsx | 11 +++++++---- .../data-source/website-crawl/base/options/index.tsx | 4 +++- .../panel/test-run/document-processing/actions.tsx | 4 +++- .../panel/test-run/document-processing/hooks.ts | 3 ++- .../panel/test-run/document-processing/index.tsx | 10 +++++----- 8 files changed, 29 insertions(+), 16 deletions(-) diff --git a/web/app/components/datasets/documents/create-from-pipeline/process-documents/actions.tsx b/web/app/components/datasets/documents/create-from-pipeline/process-documents/actions.tsx index 072ab61a98..301a2d97e7 100644 --- a/web/app/components/datasets/documents/create-from-pipeline/process-documents/actions.tsx +++ b/web/app/components/datasets/documents/create-from-pipeline/process-documents/actions.tsx @@ -5,11 +5,13 @@ import { RiArrowLeftLine } from '@remixicon/react' type ActionsProps = { onBack: () => void + runDisabled?: boolean onProcess: () => void } const Actions = ({ onBack, + runDisabled, onProcess, }: ActionsProps) => { const { t } = useTranslation() @@ -26,6 +28,7 @@ const Actions = ({