From 8e1aef6120a6d8e4646b19a9b7bf1ecc3cc2605b Mon Sep 17 00:00:00 2001 From: AkaraChen Date: Wed, 20 Nov 2024 16:24:06 +0800 Subject: [PATCH] feat: new dataset footer ui --- .../common/economical-retrieval-method-config/index.tsx | 4 +++- .../datasets/common/retrieval-method-config/index.tsx | 2 +- web/app/components/datasets/create/step-two/index.tsx | 9 ++++++--- .../components/datasets/create/step-two/option-card.tsx | 2 +- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/web/app/components/datasets/common/economical-retrieval-method-config/index.tsx b/web/app/components/datasets/common/economical-retrieval-method-config/index.tsx index 14ae8a4f6e..7108d359d9 100644 --- a/web/app/components/datasets/common/economical-retrieval-method-config/index.tsx +++ b/web/app/components/datasets/common/economical-retrieval-method-config/index.tsx @@ -24,7 +24,9 @@ const EconomicalRetrievalMethodConfig: FC = ({
} title={t('dataset.retrieval.invertedIndex.title')} - description={t('dataset.retrieval.invertedIndex.description')} isActive> + description={t('dataset.retrieval.invertedIndex.description')} isActive + activeHeaderClassName='bg-gradient-to-r from-[#F0EEFA] to-[#F9FAFB]' + > = ({ title={
{t('dataset.retrieval.hybrid_search.title')}
-
{t('dataset.retrieval.hybrid_search.recommend')}
+
{t('dataset.retrieval.hybrid_search.recommend')}
} description={t('dataset.retrieval.hybrid_search.description')} isActive={ diff --git a/web/app/components/datasets/create/step-two/index.tsx b/web/app/components/datasets/create/step-two/index.tsx index c122f940e7..0ea6cd2baa 100644 --- a/web/app/components/datasets/create/step-two/index.tsx +++ b/web/app/components/datasets/create/step-two/index.tsx @@ -7,6 +7,7 @@ import { useBoolean } from 'ahooks' import { XMarkIcon } from '@heroicons/react/20/solid' import { RocketLaunchIcon } from '@heroicons/react/24/outline' import { + RiArrowLeftLine, RiCloseLine, RiSearchEyeLine, } from '@remixicon/react' @@ -951,9 +952,11 @@ const StepTwo = ({ {!isSetting ? (
- -
- + +
) : ( diff --git a/web/app/components/datasets/create/step-two/option-card.tsx b/web/app/components/datasets/create/step-two/option-card.tsx index cd0129e9f0..96263d51a0 100644 --- a/web/app/components/datasets/create/step-two/option-card.tsx +++ b/web/app/components/datasets/create/step-two/option-card.tsx @@ -34,7 +34,7 @@ export const OptionCardHeader: FC = (props) => { -
+
{title}
{description}