From abb2f7ae05084fe827860f33f7cbf4261eb50c7a Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Sun, 16 Nov 2025 22:44:46 +0800 Subject: [PATCH] feat(web): Move Get Help button to account menu (#1782) * Initial plan * feat: Move Get Help button to account options menu Co-authored-by: RockChinQ <45992437+RockChinQ@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: RockChinQ <45992437+RockChinQ@users.noreply.github.com> --- .../components/home-sidebar/HomeSidebar.tsx | 69 ++++++++++--------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/web/src/app/home/components/home-sidebar/HomeSidebar.tsx b/web/src/app/home/components/home-sidebar/HomeSidebar.tsx index c3d80b22..59851b87 100644 --- a/web/src/app/home/components/home-sidebar/HomeSidebar.tsx +++ b/web/src/app/home/components/home-sidebar/HomeSidebar.tsx @@ -188,40 +188,6 @@ export default function HomeSidebar({ )} - { - // open docs.langbot.app - const language = localStorage.getItem('langbot_language'); - if (language === 'zh-Hans') { - window.open( - 'https://docs.langbot.app/zh/insight/guide.html', - '_blank', - ); - } else if (language === 'zh-Hant') { - window.open( - 'https://docs.langbot.app/zh/insight/guide.html', - '_blank', - ); - } else { - window.open( - 'https://docs.langbot.app/en/insight/guide.html', - '_blank', - ); - } - }} - isSelected={false} - icon={ - - - - } - name={t('common.helpDocs')} - /> - { setApiKeyDialogOpen(true); @@ -302,6 +268,41 @@ export default function HomeSidebar({
{t('common.account')} +