+
+
setActiveTab(newActiveTab as string)}
+ options={options}
+ size='large'
+ activeClassName='text-text-primary'
+ />
+ {activeTab === 'dataset' && (
+
+ {isCurrentWorkspaceOwner &&
}
+
+
handleKeywordsChange(e.target.value)}
+ onClear={() => handleKeywordsChange('')}
+ />
+
+
+
+ )}
+ {activeTab === 'api' && data && }
+
+ {activeTab === 'dataset' && (
+ <>
+
+
+ {showTagManagementModal && (
+
+ )}
+ >
+ )}
+ {activeTab === 'api' && data &&
}
+
+ {showExternalApiPanel &&
setShowExternalApiPanel(false)} />}
+
+ )
+}
+
+export default List
diff --git a/web/models/pipeline.ts b/web/models/pipeline.ts
index 83d073648b..3d3110cefd 100644
--- a/web/models/pipeline.ts
+++ b/web/models/pipeline.ts
@@ -1,8 +1,9 @@
-import type { InputVar, InputVarType } from '@/app/components/workflow/types'
+import type { Edge, InputVar, InputVarType, Node } from '@/app/components/workflow/types'
import type { DSLImportMode, DSLImportStatus } from './app'
import type { ChunkingMode, DatasetPermission, IconInfo } from './datasets'
import type { Dependency } from '@/app/components/plugins/types'
import type { AppIconSelection } from '@/app/components/base/app-icon-picker'
+import type { Viewport } from 'reactflow'
export type PipelineTemplateListParams = {
type: 'built-in' | 'customized'
@@ -27,6 +28,11 @@ export type PipelineTemplateByIdResponse = {
description: string
author: string // todo: TBD
structure: string // todo: TBD
+ graph: {
+ nodes: Node[]
+ edges: Edge[]
+ viewport: Viewport
+ }
export_data: string
}