From fbf3abddf2894cfd73023278af89b92094b85357 Mon Sep 17 00:00:00 2001 From: twwu Date: Tue, 29 Jul 2025 14:52:17 +0800 Subject: [PATCH] feat: Add tooltip for configuration button in header and update translations --- .../data-source/base/header.tsx | 27 ++++++++++++------- web/i18n/en-US/dataset-pipeline.ts | 1 + web/i18n/zh-Hans/dataset-pipeline.ts | 1 + 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/web/app/components/datasets/documents/create-from-pipeline/data-source/base/header.tsx b/web/app/components/datasets/documents/create-from-pipeline/data-source/base/header.tsx index 96eef3350d..0756e1eb37 100644 --- a/web/app/components/datasets/documents/create-from-pipeline/data-source/base/header.tsx +++ b/web/app/components/datasets/documents/create-from-pipeline/data-source/base/header.tsx @@ -4,6 +4,8 @@ import Button from '@/app/components/base/button' import { RiBookOpenLine, RiEqualizer2Line } from '@remixicon/react' import type { CredentialSelectorProps } from './credential-selector' import CredentialSelector from './credential-selector' +import Tooltip from '@/app/components/base/tooltip' +import { useTranslation } from 'react-i18next' type HeaderProps = { docTitle: string @@ -17,6 +19,8 @@ const Header = ({ onClickConfiguration, ...rest }: HeaderProps) => { + const { t } = useTranslation() + return (
@@ -24,16 +28,21 @@ const Header = ({ {...rest} /> - + +