Skip to content

armgit / dify

Public Imported from GitHub
0

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.

chore: find more redirect to correct category (#29303)

非法操作a44b800c8520
diff --git a/web/app/components/workflow/block-selector/all-start-blocks.tsx b/web/app/components/workflow/block-selector/all-start-blocks.tsx
index ac8f665ad42..7986252c1af 100644
--- a/web/app/components/workflow/block-selector/all-start-blocks.tsx
+++ b/web/app/components/workflow/block-selector/all-start-blocks.tsx
@@ -176,6 +176,7 @@ const AllStartBlocks = ({
wrapElemRef={wrapElemRef as RefObject<HTMLElement>}
list={marketplacePlugins}
searchText={trimmedSearchText}
+ category={PluginCategoryEnum.trigger}
tags={tags}
hideFindMoreFooter
/>
@@ -208,7 +209,7 @@ const AllStartBlocks = ({
// Footer - Same as Tools tab marketplace footer
<Link
className={marketplaceFooterClassName}
- href={getMarketplaceUrl('')}
+ href={getMarketplaceUrl('', { category: PluginCategoryEnum.trigger })}
target='_blank'
>
<span>{t('plugin.findMoreInMarketplace')}</span>
diff --git a/web/app/components/workflow/block-selector/all-tools.tsx b/web/app/components/workflow/block-selector/all-tools.tsx
index 378c9387f1a..08eac3f8cc5 100644
--- a/web/app/components/workflow/block-selector/all-tools.tsx
+++ b/web/app/components/workflow/block-selector/all-tools.tsx
@@ -284,6 +284,7 @@ const AllTools = ({
wrapElemRef={wrapElemRef as RefObject<HTMLElement>}
list={notInstalledPlugins}
searchText={searchText}
+ category={PluginCategoryEnum.tool}
toolContentClassName={toolContentClassName}
tags={tags}
hideFindMoreFooter
@@ -315,7 +316,7 @@ const AllTools = ({
{shouldShowMarketplaceFooter && (
<Link
className={marketplaceFooterClassName}
- href={getMarketplaceUrl('')}
+ href={getMarketplaceUrl('', { category: PluginCategoryEnum.tool })}
target='_blank'
>
<span>{t('plugin.findMoreInMarketplace')}</span>
diff --git a/web/app/components/workflow/block-selector/data-sources.tsx b/web/app/components/workflow/block-selector/data-sources.tsx
index b98a52dcff7..ba92acb33f6 100644
--- a/web/app/components/workflow/block-selector/data-sources.tsx
+++ b/web/app/components/workflow/block-selector/data-sources.tsx
@@ -115,6 +115,7 @@ const DataSources = ({
list={notInstalledPlugins}
tags={[]}
searchText={searchText}
+ category={PluginCategoryEnum.datasource}
toolContentClassName={toolContentClassName}
/>
)}
diff --git a/web/app/components/workflow/block-selector/market-place-plugin/list.tsx b/web/app/components/workflow/block-selector/market-place-plugin/list.tsx
index 8c050b60d65..a323fd73057 100644
--- a/web/app/components/workflow/block-selector/market-place-plugin/list.tsx
+++ b/web/app/components/workflow/block-selector/market-place-plugin/list.tsx
@@ -4,7 +4,7 @@ import type { RefObject } from 'react'
import { useTranslation } from 'react-i18next'
import useStickyScroll, { ScrollPosition } from '../use-sticky-scroll'
import Item from './item'
-import type { Plugin } from '@/app/components/plugins/types'
+import type { Plugin, PluginCategoryEnum } from '@/app/components/plugins/types'
import cn from '@/utils/classnames'
import Link from 'next/link'
import { RiArrowRightUpLine, RiSearchLine } from '@remixicon/react'
@@ -16,6 +16,7 @@ export type ListProps = {
list: Plugin[]
searchText: string
tags: string[]
+ category?: PluginCategoryEnum
toolContentClassName?: string
disableMaxWidth?: boolean
hideFindMoreFooter?: boolean
@@ -29,6 +30,7 @@ const List = ({
searchText,
tags,
list,
+ category,
toolContentClassName,
disableMaxWidth = false,
hideFindMoreFooter = false,
@@ -78,7 +80,7 @@ const List = ({
return (
<Link
className='system-sm-medium sticky bottom-0 z-10 flex h-8 cursor-pointer items-center rounded-b-lg border-[0.5px] border-t border-components-panel-border bg-components-panel-bg-blur px-4 py-1 text-text-accent-light-mode-only shadow-lg'
- href={getMarketplaceUrl('')}
+ href={getMarketplaceUrl('', { category })}
target='_blank'
>
<span>{t('plugin.findMoreInMarketplace')}</span>
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 fe6266dea33..ef292fd4683 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
@@ -231,6 +231,7 @@ export const AgentStrategySelector = memo((props: AgentStrategySelectorProps) =>
list={notInstalledPlugins}
searchText={query}
tags={DEFAULT_TAGS}
+ category={PluginCategoryEnum.agent}
disableMaxWidth
/>}
</main>