diff --git a/web/app/components/base/features/new-feature-panel/__tests__/index.spec.tsx b/web/app/components/base/features/new-feature-panel/__tests__/index.spec.tsx index 77f9a0253b..4947d2c7c0 100644 --- a/web/app/components/base/features/new-feature-panel/__tests__/index.spec.tsx +++ b/web/app/components/base/features/new-feature-panel/__tests__/index.spec.tsx @@ -157,18 +157,6 @@ describe('NewFeaturePanel', () => { expect(screen.queryByText(/feature\.fileUpload\.title/)).not.toBeInTheDocument() expect(screen.queryByText(/feature\.imageUpload\.title/)).not.toBeInTheDocument() }) - - it('should show file upload tip in chat mode with showFileUpload', () => { - renderPanel({ isChatMode: true, showFileUpload: true }) - - expect(screen.getByText(/common\.fileUploadTip/)).toBeInTheDocument() - }) - - it('should show image upload legacy tip in non-chat mode with showFileUpload', () => { - renderPanel({ isChatMode: false, showFileUpload: true }) - - expect(screen.getByText(/common\.ImageUploadLegacyTip/)).toBeInTheDocument() - }) }) describe('MoreLikeThis Feature', () => { @@ -204,12 +192,4 @@ describe('NewFeaturePanel', () => { expect(screen.queryByText(/feature\.annotation\.title/)).not.toBeInTheDocument() }) }) - - describe('Edge Cases', () => { - it('should not show file upload tip when showFileUpload is false', () => { - renderPanel({ isChatMode: true, showFileUpload: false }) - - expect(screen.queryByText(/common\.fileUploadTip/)).not.toBeInTheDocument() - }) - }) }) diff --git a/web/app/components/base/features/new-feature-panel/index.tsx b/web/app/components/base/features/new-feature-panel/index.tsx index 8425e03ae1..84c7715577 100644 --- a/web/app/components/base/features/new-feature-panel/index.tsx +++ b/web/app/components/base/features/new-feature-panel/index.tsx @@ -1,7 +1,7 @@ import type { OnFeaturesChange } from '@/app/components/base/features/types' import type { InputVar } from '@/app/components/workflow/types' import type { PromptVariable } from '@/models/debug' -import { RiCloseLine, RiInformation2Fill } from '@remixicon/react' +import { RiCloseLine } from '@remixicon/react' import { useTranslation } from 'react-i18next' import AnnotationReply from '@/app/components/base/features/new-feature-panel/annotation-reply' @@ -64,19 +64,6 @@ const NewFeaturePanel = ({ {/* list */}
- {showFileUpload && ( -
-
-
-
- -
-
- {isChatMode ? t('common.fileUploadTip', { ns: 'workflow' }) : t('common.ImageUploadLegacyTip', { ns: 'workflow' })} -
-
-
- )} {!isChatMode && !inWorkflow && ( )}