diff --git a/web/src/app/home/components/home-sidebar/HomeSidebar.tsx b/web/src/app/home/components/home-sidebar/HomeSidebar.tsx index f8901614..98861481 100644 --- a/web/src/app/home/components/home-sidebar/HomeSidebar.tsx +++ b/web/src/app/home/components/home-sidebar/HomeSidebar.tsx @@ -422,12 +422,12 @@ export default function HomeSidebar({ const language = localStorage.getItem('langbot_language'); if (language === 'zh-Hans' || language === 'zh-Hant') { window.open( - 'https://docs.langbot.app/zh/insight/guide.html', + 'https://docs.langbot.app/zh/insight/guide', '_blank', ); } else { window.open( - 'https://docs.langbot.app/en/insight/guide.html', + 'https://docs.langbot.app/en/insight/guide', '_blank', ); } diff --git a/web/src/app/home/components/home-sidebar/sidbarConfigList.tsx b/web/src/app/home/components/home-sidebar/sidbarConfigList.tsx index cdb99945..47070bdc 100644 --- a/web/src/app/home/components/home-sidebar/sidbarConfigList.tsx +++ b/web/src/app/home/components/home-sidebar/sidbarConfigList.tsx @@ -23,9 +23,9 @@ export const sidebarConfigList = [ route: '/home/bots', description: t('bots.description'), helpLink: { - en_US: 'https://docs.langbot.app/en/usage/platforms/readme.html', - zh_Hans: 'https://docs.langbot.app/zh/usage/platforms/readme.html', - ja_JP: 'https://docs.langbot.app/ja/usage/platforms/readme.html', + en_US: 'https://docs.langbot.app/en/usage/platforms/readme', + zh_Hans: 'https://docs.langbot.app/zh/usage/platforms/readme', + ja_JP: 'https://docs.langbot.app/ja/usage/platforms/readme', }, }), new SidebarChildVO({ @@ -44,9 +44,9 @@ export const sidebarConfigList = [ route: '/home/pipelines', description: t('pipelines.description'), helpLink: { - en_US: 'https://docs.langbot.app/en/usage/pipelines/readme.html', - zh_Hans: 'https://docs.langbot.app/zh/usage/pipelines/readme.html', - ja_JP: 'https://docs.langbot.app/ja/usage/pipelines/readme.html', + en_US: 'https://docs.langbot.app/en/usage/pipelines/readme', + zh_Hans: 'https://docs.langbot.app/zh/usage/pipelines/readme', + ja_JP: 'https://docs.langbot.app/ja/usage/pipelines/readme', }, }), new SidebarChildVO({ @@ -65,8 +65,8 @@ export const sidebarConfigList = [ route: '/home/monitoring', description: t('monitoring.description'), helpLink: { - en_US: 'https://docs.langbot.app/en/features/monitoring.html', - zh_Hans: 'https://docs.langbot.app/zh/features/monitoring.html', + en_US: '', + zh_Hans: '', }, }), new SidebarChildVO({ @@ -84,9 +84,9 @@ export const sidebarConfigList = [ route: '/home/knowledge', description: t('knowledge.description'), helpLink: { - en_US: 'https://docs.langbot.app/en/usage/knowledge/readme.html', - zh_Hans: 'https://docs.langbot.app/zh/usage/knowledge/readme.html', - ja_JP: 'https://docs.langbot.app/ja/usage/knowledge/readme.html', + en_US: 'https://docs.langbot.app/en/usage/knowledge/readme', + zh_Hans: 'https://docs.langbot.app/zh/usage/knowledge/readme', + ja_JP: 'https://docs.langbot.app/ja/usage/knowledge/readme', }, }), new SidebarChildVO({ @@ -105,9 +105,9 @@ export const sidebarConfigList = [ route: '/home/plugins', description: t('plugins.description'), helpLink: { - en_US: 'https://docs.langbot.app/en/usage/plugin/plugin-intro.html', - zh_Hans: 'https://docs.langbot.app/zh/usage/plugin/plugin-intro.html', - ja_JP: 'https://docs.langbot.app/ja/usage/plugin/plugin-intro.html', + en_US: 'https://docs.langbot.app/en/usage/plugin/plugin-intro', + zh_Hans: 'https://docs.langbot.app/zh/usage/plugin/plugin-intro', + ja_JP: 'https://docs.langbot.app/ja/usage/plugin/plugin-intro', }, }), ]; diff --git a/web/src/app/home/components/new-version-dialog/NewVersionDialog.tsx b/web/src/app/home/components/new-version-dialog/NewVersionDialog.tsx index 019e57d8..8b0ad127 100644 --- a/web/src/app/home/components/new-version-dialog/NewVersionDialog.tsx +++ b/web/src/app/home/components/new-version-dialog/NewVersionDialog.tsx @@ -36,11 +36,11 @@ export default function NewVersionDialog({ const getUpdateDocsUrl = () => { const language = i18n.language; if (language === 'zh-Hans' || language === 'zh-Hant') { - return 'https://docs.langbot.app/zh/deploy/update.html'; + return 'https://docs.langbot.app/zh/deploy/update'; } else if (language === 'ja-JP') { - return 'https://docs.langbot.app/ja/deploy/update.html'; + return 'https://docs.langbot.app/ja/deploy/update'; } else { - return 'https://docs.langbot.app/en/deploy/update.html'; + return 'https://docs.langbot.app/en/deploy/update'; } }; diff --git a/web/src/app/home/knowledge/components/kb-form/KBForm.tsx b/web/src/app/home/knowledge/components/kb-form/KBForm.tsx index 96ace870..25f5c5ca 100644 --- a/web/src/app/home/knowledge/components/kb-form/KBForm.tsx +++ b/web/src/app/home/knowledge/components/kb-form/KBForm.tsx @@ -1,4 +1,5 @@ import { useEffect, useState } from 'react'; +import Link from 'next/link'; import { useForm } from 'react-hook-form'; import { zodResolver } from '@hookform/resolvers/zod'; import { z } from 'zod'; @@ -264,9 +265,12 @@ export default function KBForm({
{t('knowledge.noEnginesAvailable')}
-+ {t('knowledge.installEngineHint')} -
+ ); } diff --git a/web/src/app/home/knowledge/knowledgeBase.module.css b/web/src/app/home/knowledge/knowledgeBase.module.css index 8305fc13..e811b521 100644 --- a/web/src/app/home/knowledge/knowledgeBase.module.css +++ b/web/src/app/home/knowledge/knowledgeBase.module.css @@ -5,7 +5,6 @@ .knowledgeListContainer { width: 100%; - margin-top: 2rem; padding-left: 0.8rem; padding-right: 0.8rem; display: grid; diff --git a/web/src/app/home/plugins/components/plugin-market/PluginMarketComponent.tsx b/web/src/app/home/plugins/components/plugin-market/PluginMarketComponent.tsx index fcdc84d2..97c82881 100644 --- a/web/src/app/home/plugins/components/plugin-market/PluginMarketComponent.tsx +++ b/web/src/app/home/plugins/components/plugin-market/PluginMarketComponent.tsx @@ -562,8 +562,7 @@ function MarketPageContent({ {/* Recommendation Lists */} {!searchQuery && componentFilter === 'all' && - selectedTags.length === 0 && - currentPage === 1 && ( + selectedTags.length === 0 && (