diff --git a/web/app/components/explore/app-list/index.tsx b/web/app/components/explore/app-list/index.tsx index c81f02c1c0..ce652ea863 100644 --- a/web/app/components/explore/app-list/index.tsx +++ b/web/app/components/explore/app-list/index.tsx @@ -21,6 +21,14 @@ import Loading from '@/app/components/base/loading' import { NEED_REFRESH_APP_LIST_KEY } from '@/config' import { useAppContext } from '@/context/app-context' import { getRedirection } from '@/utils/app-redirection' +import TabSliderNew from '@/app/components/base/tab-slider-new' +import { DotsGrid } from '@/app/components/base/icons/src/vender/line/general' +import { Route } from '@/app/components/base/icons/src/vender/line/mapsAndTravel' +import { + AiText, + ChatBot, + CuteRobot, +} from '@/app/components/base/icons/src/vender/line/communication' type AppsProps = { pageType?: PageType @@ -44,6 +52,13 @@ const Apps = ({ defaultTab: allCategoriesEn, disableSearchParams: pageType !== PageType.EXPLORE, }) + const options = [ + { value: allCategoriesEn, text: t('app.types.all'), icon: }, + { value: 'chat', text: t('app.types.chatbot'), icon: }, + { value: 'agent-chat', text: t('app.types.agent'), icon: }, + { value: 'completion', text: t('app.newApp.completeApp'), icon: }, + { value: 'workflow', text: t('app.types.workflow'), icon: }, + ] const { data: { categories, allList }, @@ -65,7 +80,14 @@ const Apps = ({ const currList = currCategory === allCategoriesEn ? allList - : allList.filter(item => item.category === currCategory) + : allList.filter((item) => { + if (pageType === PageType.EXPLORE) + return item.category === currCategory + else if (currCategory === 'chat') + return item.app.mode === 'chat' || item.app.mode === 'advanced-chat' + else + return item.app.mode === currCategory + }) const [currApp, setCurrApp] = React.useState(null) const [isShowCreateModal, setIsShowCreateModal] = React.useState(false) @@ -118,13 +140,23 @@ const Apps = ({
{t('explore.apps.description')}
)} - + {pageType === PageType.EXPLORE && ( + + )} + {pageType !== PageType.EXPLORE && ( + + )}