feat: add PluginDependency component to RagPipelineChildren and WorkflowChildren for enhanced functionality

This commit is contained in:
twwu 2025-07-11 18:38:18 +08:00
parent 23a6fe3259
commit 0fdb1fedb0
2 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,7 @@ import {
} from 'react'
import { useStore } from '../../workflow/store'
import InputField from './input-field'
import PluginDependency from '../../workflow/plugin-dependency'
import RagPipelinePanel from './panel'
import RagPipelineHeader from './rag-pipeline-header'
import type { EnvironmentVariable } from '@/app/components/workflow/types'
@ -26,8 +27,8 @@ const RagPipelineChildren = () => {
handlePaneContextmenuCancel,
} = usePanelInteractions()
const {
exportCheck,
handleExportDSL,
exportCheck,
handleExportDSL,
} = useDSL()
eventEmitter?.useSubscription((v: any) => {
@ -37,6 +38,7 @@ const RagPipelineChildren = () => {
return (
<>
<PluginDependency />
{
showImportDSLModal && (
<UpdateDSLModal

View File

@ -6,6 +6,7 @@ import type { EnvironmentVariable } from '@/app/components/workflow/types'
import { DSL_EXPORT_CHECK } from '@/app/components/workflow/constants'
import { useStore } from '@/app/components/workflow/store'
import Features from '@/app/components/workflow/features'
import PluginDependency from '../../workflow/plugin-dependency'
import UpdateDSLModal from '@/app/components/workflow/update-dsl-modal'
import DSLExportConfirmModal from '@/app/components/workflow/dsl-export-confirm-modal'
import {
@ -37,6 +38,7 @@ const WorkflowChildren = () => {
return (
<>
<PluginDependency />
{
showFeaturesPanel && <Features />
}