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

This commit is contained in:
非法操作
2025-12-09 11:09:43 +08:00
committed by GitHub
parent 48efd2d174
commit a44b800c85
5 changed files with 10 additions and 4 deletions

View File

@@ -176,6 +176,7 @@ const AllStartBlocks = ({
wrapElemRef={wrapElemRef as RefObject<HTMLElement>} wrapElemRef={wrapElemRef as RefObject<HTMLElement>}
list={marketplacePlugins} list={marketplacePlugins}
searchText={trimmedSearchText} searchText={trimmedSearchText}
category={PluginCategoryEnum.trigger}
tags={tags} tags={tags}
hideFindMoreFooter hideFindMoreFooter
/> />
@@ -208,7 +209,7 @@ const AllStartBlocks = ({
// Footer - Same as Tools tab marketplace footer // Footer - Same as Tools tab marketplace footer
<Link <Link
className={marketplaceFooterClassName} className={marketplaceFooterClassName}
href={getMarketplaceUrl('')} href={getMarketplaceUrl('', { category: PluginCategoryEnum.trigger })}
target='_blank' target='_blank'
> >
<span>{t('plugin.findMoreInMarketplace')}</span> <span>{t('plugin.findMoreInMarketplace')}</span>

View File

@@ -284,6 +284,7 @@ const AllTools = ({
wrapElemRef={wrapElemRef as RefObject<HTMLElement>} wrapElemRef={wrapElemRef as RefObject<HTMLElement>}
list={notInstalledPlugins} list={notInstalledPlugins}
searchText={searchText} searchText={searchText}
category={PluginCategoryEnum.tool}
toolContentClassName={toolContentClassName} toolContentClassName={toolContentClassName}
tags={tags} tags={tags}
hideFindMoreFooter hideFindMoreFooter
@@ -315,7 +316,7 @@ const AllTools = ({
{shouldShowMarketplaceFooter && ( {shouldShowMarketplaceFooter && (
<Link <Link
className={marketplaceFooterClassName} className={marketplaceFooterClassName}
href={getMarketplaceUrl('')} href={getMarketplaceUrl('', { category: PluginCategoryEnum.tool })}
target='_blank' target='_blank'
> >
<span>{t('plugin.findMoreInMarketplace')}</span> <span>{t('plugin.findMoreInMarketplace')}</span>

View File

@@ -115,6 +115,7 @@ const DataSources = ({
list={notInstalledPlugins} list={notInstalledPlugins}
tags={[]} tags={[]}
searchText={searchText} searchText={searchText}
category={PluginCategoryEnum.datasource}
toolContentClassName={toolContentClassName} toolContentClassName={toolContentClassName}
/> />
)} )}

View File

@@ -4,7 +4,7 @@ import type { RefObject } from 'react'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import useStickyScroll, { ScrollPosition } from '../use-sticky-scroll' import useStickyScroll, { ScrollPosition } from '../use-sticky-scroll'
import Item from './item' 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 cn from '@/utils/classnames'
import Link from 'next/link' import Link from 'next/link'
import { RiArrowRightUpLine, RiSearchLine } from '@remixicon/react' import { RiArrowRightUpLine, RiSearchLine } from '@remixicon/react'
@@ -16,6 +16,7 @@ export type ListProps = {
list: Plugin[] list: Plugin[]
searchText: string searchText: string
tags: string[] tags: string[]
category?: PluginCategoryEnum
toolContentClassName?: string toolContentClassName?: string
disableMaxWidth?: boolean disableMaxWidth?: boolean
hideFindMoreFooter?: boolean hideFindMoreFooter?: boolean
@@ -29,6 +30,7 @@ const List = ({
searchText, searchText,
tags, tags,
list, list,
category,
toolContentClassName, toolContentClassName,
disableMaxWidth = false, disableMaxWidth = false,
hideFindMoreFooter = false, hideFindMoreFooter = false,
@@ -78,7 +80,7 @@ const List = ({
return ( return (
<Link <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' 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' target='_blank'
> >
<span>{t('plugin.findMoreInMarketplace')}</span> <span>{t('plugin.findMoreInMarketplace')}</span>

View File

@@ -231,6 +231,7 @@ export const AgentStrategySelector = memo((props: AgentStrategySelectorProps) =>
list={notInstalledPlugins} list={notInstalledPlugins}
searchText={query} searchText={query}
tags={DEFAULT_TAGS} tags={DEFAULT_TAGS}
category={PluginCategoryEnum.agent}
disableMaxWidth disableMaxWidth
/>} />}
</main> </main>