Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
refactor(web): consolidate duplicate type imports (#42690)
yyha50918dfe8b1
diff --git a/oxlint-suppressions.json b/oxlint-suppressions.jsonindex cb02e958c99..81d6cfed979 100644--- a/oxlint-suppressions.json+++ b/oxlint-suppressions.json@@ -921,11 +921,6 @@"count": 1}},- "web/app/components/base/features/new-feature-panel/annotation-reply/__tests__/index.spec.tsx": {- "import/no-duplicates": {- "count": 1- }- },"web/app/components/base/features/new-feature-panel/annotation-reply/index.tsx": {"typescript/no-explicit-any": {"count": 3@@ -936,11 +931,6 @@"count": 2}},- "web/app/components/base/features/new-feature-panel/conversation-opener/__tests__/index.spec.tsx": {- "import/no-duplicates": {- "count": 1- }- },"web/app/components/base/features/new-feature-panel/conversation-opener/modal.tsx": {"dify/require-disable-directive-description": {"count": 1@@ -963,21 +953,6 @@"count": 1}},- "web/app/components/base/features/new-feature-panel/file-upload/__tests__/index.spec.tsx": {- "import/no-duplicates": {- "count": 1- }- },- "web/app/components/base/features/new-feature-panel/image-upload/__tests__/index.spec.tsx": {- "import/no-duplicates": {- "count": 1- }- },- "web/app/components/base/features/new-feature-panel/moderation/__tests__/index.spec.tsx": {- "import/no-duplicates": {- "count": 1- }- },"web/app/components/base/features/new-feature-panel/moderation/index.tsx": {"typescript/no-explicit-any": {"count": 1@@ -2552,19 +2527,6 @@"web/app/components/plugins/install-plugin/install-bundle/item/github-item.tsx": {"eslint-react/set-state-in-effect": {"count": 1- },- "import/no-duplicates": {- "count": 1- }- },- "web/app/components/plugins/install-plugin/install-bundle/item/marketplace-item.tsx": {- "import/no-duplicates": {- "count": 1- }- },- "web/app/components/plugins/install-plugin/install-bundle/item/package-item.tsx": {- "import/no-duplicates": {- "count": 1}},"web/app/components/plugins/install-plugin/install-bundle/steps/__tests__/install-multi.spec.tsx": {@@ -2590,11 +2552,6 @@"count": 1}},- "web/app/components/plugins/install-plugin/utils.ts": {- "import/no-duplicates": {- "count": 1- }- },"web/app/components/plugins/marketplace/home/home-trending.tsx": {"jsx-a11y/no-static-element-interactions": {"count": 1diff --git a/web/app/components/base/features/new-feature-panel/annotation-reply/__tests__/index.spec.tsx b/web/app/components/base/features/new-feature-panel/annotation-reply/__tests__/index.spec.tsxindex b380506507c..9e24bba8ea4 100644--- a/web/app/components/base/features/new-feature-panel/annotation-reply/__tests__/index.spec.tsx+++ b/web/app/components/base/features/new-feature-panel/annotation-reply/__tests__/index.spec.tsx@@ -1,5 +1,4 @@-import type { Features } from '../../../types'-import type { OnFeaturesChange } from '@/app/components/base/features/types'+import type { Features, OnFeaturesChange } from '../../../types'import { act, fireEvent, render, screen } from '@testing-library/react'import { FeaturesProvider } from '../../../context'import AnnotationReply from '../index'diff --git a/web/app/components/base/features/new-feature-panel/conversation-opener/__tests__/index.spec.tsx b/web/app/components/base/features/new-feature-panel/conversation-opener/__tests__/index.spec.tsxindex a095e180977..48fef505f90 100644--- a/web/app/components/base/features/new-feature-panel/conversation-opener/__tests__/index.spec.tsx+++ b/web/app/components/base/features/new-feature-panel/conversation-opener/__tests__/index.spec.tsx@@ -1,5 +1,4 @@-import type { Features } from '../../../types'-import type { OnFeaturesChange } from '@/app/components/base/features/types'+import type { Features, OnFeaturesChange } from '../../../types'import { act, fireEvent, render, screen } from '@testing-library/react'import { FeaturesProvider } from '../../../context'import ConversationOpener from '../index'diff --git a/web/app/components/base/features/new-feature-panel/file-upload/__tests__/index.spec.tsx b/web/app/components/base/features/new-feature-panel/file-upload/__tests__/index.spec.tsxindex 63cb6a8174c..c1a1a88e717 100644--- a/web/app/components/base/features/new-feature-panel/file-upload/__tests__/index.spec.tsx+++ b/web/app/components/base/features/new-feature-panel/file-upload/__tests__/index.spec.tsx@@ -1,5 +1,4 @@-import type { Features } from '../../../types'-import type { OnFeaturesChange } from '@/app/components/base/features/types'+import type { Features, OnFeaturesChange } from '../../../types'import { fireEvent, render, screen, waitFor } from '@testing-library/react'import { FeaturesProvider } from '../../../context'import FileUpload from '../index'diff --git a/web/app/components/base/features/new-feature-panel/image-upload/__tests__/index.spec.tsx b/web/app/components/base/features/new-feature-panel/image-upload/__tests__/index.spec.tsxindex bcddf3ea5ca..b86e1172484 100644--- a/web/app/components/base/features/new-feature-panel/image-upload/__tests__/index.spec.tsx+++ b/web/app/components/base/features/new-feature-panel/image-upload/__tests__/index.spec.tsx@@ -1,5 +1,4 @@-import type { Features } from '../../../types'-import type { OnFeaturesChange } from '@/app/components/base/features/types'+import type { Features, OnFeaturesChange } from '../../../types'import { fireEvent, render, screen, waitFor } from '@testing-library/react'import { FeaturesProvider } from '../../../context'import ImageUpload from '../index'diff --git a/web/app/components/base/features/new-feature-panel/moderation/__tests__/index.spec.tsx b/web/app/components/base/features/new-feature-panel/moderation/__tests__/index.spec.tsxindex 5a2e5f80d3b..90f2cda16ee 100644--- a/web/app/components/base/features/new-feature-panel/moderation/__tests__/index.spec.tsx+++ b/web/app/components/base/features/new-feature-panel/moderation/__tests__/index.spec.tsx@@ -1,5 +1,4 @@-import type { Features } from '../../../types'-import type { OnFeaturesChange } from '@/app/components/base/features/types'+import type { Features, OnFeaturesChange } from '../../../types'import { fireEvent, render, screen } from '@testing-library/react'import { FeaturesProvider } from '../../../context'import Moderation from '../index'diff --git a/web/app/components/plugins/install-plugin/install-bundle/item/github-item.tsx b/web/app/components/plugins/install-plugin/install-bundle/item/github-item.tsxindex 38325ec3f8e..e2cf39e537b 100644--- a/web/app/components/plugins/install-plugin/install-bundle/item/github-item.tsx+++ b/web/app/components/plugins/install-plugin/install-bundle/item/github-item.tsx@@ -1,7 +1,6 @@'use client'import type { FC } from 'react'-import type { GitHubItemAndMarketPlaceDependency, Plugin } from '../../../types'-import type { VersionProps } from '@/app/components/plugins/types'+import type { GitHubItemAndMarketPlaceDependency, Plugin, VersionProps } from '../../../types'import * as React from 'react'import { useEffect } from 'react'import { useUploadGitHub } from '@/service/use-plugins'diff --git a/web/app/components/plugins/install-plugin/install-bundle/item/marketplace-item.tsx b/web/app/components/plugins/install-plugin/install-bundle/item/marketplace-item.tsxindex 5ca7c45ff0d..08b2615fa23 100644--- a/web/app/components/plugins/install-plugin/install-bundle/item/marketplace-item.tsx+++ b/web/app/components/plugins/install-plugin/install-bundle/item/marketplace-item.tsx@@ -1,7 +1,6 @@'use client'import type { FC } from 'react'-import type { Plugin } from '../../../types'-import type { VersionProps } from '@/app/components/plugins/types'+import type { Plugin, VersionProps } from '../../../types'import * as React from 'react'import Loading from '../../base/loading'import LoadedItem from './loaded-item'diff --git a/web/app/components/plugins/install-plugin/install-bundle/item/package-item.tsx b/web/app/components/plugins/install-plugin/install-bundle/item/package-item.tsxindex 56858e1310c..abbed5f3174 100644--- a/web/app/components/plugins/install-plugin/install-bundle/item/package-item.tsx+++ b/web/app/components/plugins/install-plugin/install-bundle/item/package-item.tsx@@ -1,7 +1,6 @@'use client'import type { FC } from 'react'-import type { PackageDependency, Plugin } from '../../../types'-import type { VersionProps } from '@/app/components/plugins/types'+import type { PackageDependency, Plugin, VersionProps } from '../../../types'import * as React from 'react'import LoadingError from '../../base/loading-error'import { pluginManifestToCardPluginProps } from '../../utils'diff --git a/web/app/components/plugins/install-plugin/utils.ts b/web/app/components/plugins/install-plugin/utils.tsindex 879454b27bc..3d0405e4246 100644--- a/web/app/components/plugins/install-plugin/utils.ts+++ b/web/app/components/plugins/install-plugin/utils.ts@@ -1,5 +1,4 @@-import type { Plugin, PluginDeclaration, PluginManifestInMarket } from '../types'-import type { GitHubUrlInfo } from '@/app/components/plugins/types'+import type { GitHubUrlInfo, Plugin, PluginDeclaration, PluginManifestInMarket } from '../types'import { isEmpty } from 'es-toolkit/compat'export const pluginManifestToCardPluginProps = (pluginManifest: PluginDeclaration): Plugin => {