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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 10 additions and 4 deletions

View File

@ -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>

View File

@ -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>

View File

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

View File

@ -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>

View File

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