feat(web): move Quick Start to account menu and update i18n references

This commit is contained in:
Junyan Qin
2026-03-29 00:49:02 +08:00
parent e02ade5a30
commit b0a9be77b0
8 changed files with 18 additions and 30 deletions

View File

@@ -27,6 +27,7 @@ import {
Upload,
Store,
Github,
Zap,
} from 'lucide-react';
import { useTheme } from 'next-themes';
@@ -1252,28 +1253,6 @@ export default function HomeSidebar({
{/* Navigation items grouped by section */}
<SidebarContent>
{/* Standalone items (e.g. Quick Start) — rendered before section groups */}
{sidebarConfigList
.filter((c) => c.section === 'standalone')
.map((config) => (
<SidebarGroup key={config.id}>
<SidebarGroupContent>
<SidebarMenu>
<SidebarMenuItem>
<SidebarMenuButton
isActive={selectedChild?.id === config.id}
onClick={() => handleChildClick(config)}
tooltip={config.name}
>
{config.icon}
<span>{config.name}</span>
</SidebarMenuButton>
</SidebarMenuItem>
</SidebarMenu>
</SidebarGroupContent>
</SidebarGroup>
))}
<SidebarGroup>
<SidebarGroupLabel>{t('sidebar.home')}</SidebarGroupLabel>
<SidebarGroupContent>
@@ -1424,6 +1403,15 @@ export default function HomeSidebar({
<Settings />
{t('account.settings')}
</DropdownMenuItem>
<DropdownMenuItem
onClick={() => {
setUserMenuOpen(false);
router.push('/wizard');
}}
>
<Zap className="text-blue-500" />
{t('sidebar.quickStart')}
</DropdownMenuItem>
</DropdownMenuGroup>
<DropdownMenuSeparator />

View File

@@ -1131,7 +1131,7 @@ const enUS = {
loadError: 'Failed to load wizard data',
skip: 'Skip',
skipConfirmMessage:
'You can re-enter the Quick Start wizard from the sidebar later, or create a bot manually.',
'You can re-enter the Quick Start wizard from the account menu later, or create a bot manually.',
skipConfirmOk: 'OK',
prev: 'Previous',
next: 'Next',

View File

@@ -1162,7 +1162,7 @@ const esES = {
loadError: 'Error al cargar los datos del asistente',
skip: 'Omitir',
skipConfirmMessage:
'Puedes volver a acceder al asistente de inicio rápido desde la barra lateral más tarde, o crear un Bot manualmente.',
'Puedes volver a acceder al asistente de inicio rápido desde el menú de cuenta más tarde, o crear un Bot manualmente.',
skipConfirmOk: 'Aceptar',
prev: 'Anterior',
next: 'Siguiente',

View File

@@ -1105,7 +1105,7 @@
loadError: 'ウィザードデータの読み込みに失敗しました',
skip: 'スキップ',
skipConfirmMessage:
'サイドバーからクイックスタートウィザードに再度アクセスするか、手動でボットを作成できます。',
'アカウントメニューからクイックスタートウィザードに再度アクセスするか、手動でボットを作成できます。',
skipConfirmOk: 'OK',
prev: '前へ',
next: '次へ',

View File

@@ -1111,7 +1111,7 @@ const thTH = {
loadError: 'ไม่สามารถโหลดข้อมูลตัวช่วยได้',
skip: 'ข้าม',
skipConfirmMessage:
'คุณสามารถเข้าสู่ตัวช่วยเริ่มต้นอย่างรวดเร็วจากแถบด้านข้างในภายหลัง หรือสร้าง Bot ด้วยตนเอง',
'คุณสามารถเข้าสู่ตัวช่วยเริ่มต้นอย่างรวดเร็วจากเมนูบัญชีในภายหลัง หรือสร้าง Bot ด้วยตนเอง',
skipConfirmOk: 'ตกลง',
prev: 'ก่อนหน้า',
next: 'ถัดไป',

View File

@@ -1132,7 +1132,7 @@ const viVN = {
loadError: 'Tải dữ liệu trình hướng dẫn thất bại',
skip: 'Bỏ qua',
skipConfirmMessage:
'Bạn có thể vào lại trình hướng dẫn Bắt đầu nhanh từ thanh bên sau, hoặc tạo Bot thủ công.',
'Bạn có thể vào lại trình hướng dẫn Bắt đầu nhanh từ menu tài khoản sau, hoặc tạo Bot thủ công.',
skipConfirmOk: 'OK',
prev: 'Trước',
next: 'Tiếp',

View File

@@ -5,7 +5,7 @@ const zhHans = {
installedPlugins: '已安装插件',
pluginMarket: '插件市场',
mcpServers: 'MCP 服务器',
quickStart: '快速开始',
quickStart: '快速开始向导',
},
common: {
login: '登录',
@@ -1078,7 +1078,7 @@ const zhHans = {
loadError: '加载向导数据失败',
skip: '跳过',
skipConfirmMessage:
'您之后可以在侧边栏重新进入快速开始向导,或手动创建机器人。',
'您之后可以在账户菜单重新进入快速开始向导,或手动创建机器人。',
skipConfirmOk: '确定',
prev: '上一步',
next: '下一步',

View File

@@ -1045,7 +1045,7 @@ const zhHant = {
loadError: '載入嚮導資料失敗',
skip: '跳過',
skipConfirmMessage:
'您之後可以在側邊欄重新進入快速開始嚮導,或手動建立機器人。',
'您之後可以在帳戶選單重新進入快速開始嚮導,或手動建立機器人。',
skipConfirmOk: '確定',
prev: '上一步',
next: '下一步',