diff --git a/web/src/pages/agent/components/background.tsx b/web/src/components/canvas/background.tsx similarity index 100% rename from web/src/pages/agent/components/background.tsx rename to web/src/components/canvas/background.tsx diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts index e0628433a..7b29800a3 100644 --- a/web/src/locales/en.ts +++ b/web/src/locales/en.ts @@ -116,7 +116,7 @@ export default { generate: 'Generate', raptor: 'Raptor', processingType: 'Processing Type', - dataPipeline: 'Data Pipeline', + dataPipeline: 'Ingestion pipeline', operations: 'Operations', taskId: 'Task ID', duration: 'Duration', @@ -284,11 +284,11 @@ export default { fileFilter: 'File Filter', setDefaultTip: '', setDefault: 'Set as Default', - eidtLinkDataPipeline: 'Edit Data Pipeline', - linkPipelineSetTip: 'Manage data pipeline linkage with this dataset', + eidtLinkDataPipeline: 'Edit Ingestion pipeline', + linkPipelineSetTip: 'Manage Ingestion pipeline linkage with this dataset', default: 'Default', - dataPipeline: 'Data Pipeline', - linkDataPipeline: 'Link Data Pipeline', + dataPipeline: 'Ingestion pipeline', + linkDataPipeline: 'Link Ingestion pipeline', enableAutoGenerate: 'Enable Auto Generate', teamPlaceholder: 'Please select a team.', dataFlowPlaceholder: 'Please select a pipeline.', @@ -1595,7 +1595,7 @@ This delimiter is used to split the input text into several text pieces echo of createFromTemplate: 'Create from template', importJsonFile: 'Import JSON file', ceateAgent: 'Agent flow', - createPipeline: 'Data pipeline', + createPipeline: 'Ingestion pipeline', chooseAgentType: 'Choose Agent Type', }, llmTools: { @@ -1688,9 +1688,9 @@ This delimiter is used to split the input text into several text pieces echo of

To keep them, please click Rerun to re-run the current stage.

`, changeStepModalConfirmText: 'Switch Anyway', changeStepModalCancelText: 'Cancel', - unlinkPipelineModalTitle: 'Unlink data pipeline', + unlinkPipelineModalTitle: 'Unlink Ingestion pipeline', unlinkPipelineModalContent: ` -

Once unlinked, this Dataset will no longer be connected to the current Data Pipeline.

+

Once unlinked, this Dataset will no longer be connected to the current Ingestion pipeline.

Files that are already being parsed will continue until completion

Files that are not yet parsed will no longer be processed


Are you sure you want to proceed?

`, diff --git a/web/src/pages/agent/canvas/edge/index.tsx b/web/src/pages/agent/canvas/edge/index.tsx index 3c39fbdac..5b66e5be8 100644 --- a/web/src/pages/agent/canvas/edge/index.tsx +++ b/web/src/pages/agent/canvas/edge/index.tsx @@ -102,7 +102,7 @@ function InnerButtonEdge({ ...showHighlight, ...placeholderHighlightStyle, }} - className={cn('text-text-secondary')} + className={cn('text-text-disabled')} /> diff --git a/web/src/pages/agent/canvas/index.tsx b/web/src/pages/agent/canvas/index.tsx index b36b9a6c5..e6fa087f3 100644 --- a/web/src/pages/agent/canvas/index.tsx +++ b/web/src/pages/agent/canvas/index.tsx @@ -1,4 +1,4 @@ -import { useIsDarkTheme, useTheme } from '@/components/theme-provider'; +import { useTheme } from '@/components/theme-provider'; import { Tooltip, TooltipContent, @@ -19,7 +19,6 @@ import { NotebookPen } from 'lucide-react'; import { useCallback, useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { ChatSheet } from '../chat/chat-sheet'; -import { AgentBackground } from '../components/background'; import { AgentChatContext, AgentChatLogContext, @@ -42,6 +41,7 @@ import { useMoveNote } from '../hooks/use-move-note'; import { usePlaceholderManager } from '../hooks/use-placeholder-manager'; import { useDropdownManager } from './context'; +import { AgentBackground } from '@/components/canvas/background'; import Spotlight from '@/components/spotlight'; import { useHideFormSheetOnNodeDeletion, @@ -61,7 +61,6 @@ import { GenerateNode } from './node/generate-node'; import { InvokeNode } from './node/invoke-node'; import { IterationNode, IterationStartNode } from './node/iteration-node'; import { KeywordNode } from './node/keyword-node'; -import { LogicNode } from './node/logic-node'; import { MessageNode } from './node/message-node'; import NoteNode from './node/note-node'; import { PlaceholderNode } from './node/placeholder-node'; @@ -78,7 +77,6 @@ export const nodeTypes: NodeTypes = { beginNode: BeginNode, placeholderNode: PlaceholderNode, relevantNode: RelevantNode, - logicNode: LogicNode, noteNode: NoteNode, switchNode: SwitchNode, generateNode: GenerateNode, @@ -173,8 +171,6 @@ function AgentCanvas({ drawerVisible, hideDrawer }: IProps) { } }; - const isDarkTheme = useIsDarkTheme(); - useHideFormSheetOnNodeDeletion({ hideFormDrawer }); const { visible, hideModal, showModal } = useSetModalState(); @@ -243,7 +239,7 @@ function AgentCanvas({ drawerVisible, hideDrawer }: IProps) { >