+
{
- !tools.length && !showWorkflowEmpty && (
-
{t('workflow.tabs.noResult')}
+ !tools.length && hasSearchText && (
+ //
+ //
+ // Small spacing for marketplace search results
+
{t('workflow.tabs.noResult')}
+ //
)
}
- {!tools.length && showWorkflowEmpty && (
+ {!tools.length && !hasSearchText && (
-
+
)}
{!!tools.length && (
@@ -133,7 +141,7 @@ const Blocks = ({
)
)}
- {isShowLetterIndex &&
}
+ {isShowLetterIndex &&
}
)
}
diff --git a/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx b/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx
index 61ad2e3b92..4c1fcb2967 100644
--- a/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx
+++ b/web/app/components/workflow/nodes/_base/components/agent-strategy-selector.tsx
@@ -22,6 +22,7 @@ import type { ListRef } from '@/app/components/workflow/block-selector/market-pl
import PluginList, { type ListProps } from '@/app/components/workflow/block-selector/market-place-plugin/list'
import { useMarketplacePlugins } from '@/app/components/plugins/marketplace/hooks'
import { ToolTipContent } from '@/app/components/base/tooltip/content'
+import { useGlobalPublicStore } from '@/context/global-public-context'
const DEFAULT_TAGS: ListProps['tags'] = []
@@ -93,6 +94,8 @@ export type AgentStrategySelectorProps = {
}
export const AgentStrategySelector = memo((props: AgentStrategySelectorProps) => {
+ const { enable_marketplace } = useGlobalPublicStore(s => s.systemFeatures)
+
const { value, onChange, canChooseMCPTool } = props
const [open, setOpen] = useState(false)
const [viewType, setViewType] = useState
(ViewType.flat)
@@ -160,7 +163,7 @@ export const AgentStrategySelector = memo((props: AgentStrategySelectorProps) =>
alt='icon'
/> }
{value?.agent_strategy_label || t('workflow.nodes.agent.strategy.selectTip')}
@@ -218,19 +221,19 @@ export const AgentStrategySelector = memo((props: AgentStrategySelectorProps) =>
}}
className='h-full max-h-full max-w-none overflow-y-auto'
indexBarClassName='top-0 xl:top-36'
- showWorkflowEmpty={false}
hasSearchText={false}
canNotSelectMultiple
canChooseMCPTool={canChooseMCPTool}
+ isAgent
/>
-