From 2d2121cdb70f60ff216c6165acb838989bf5b22a Mon Sep 17 00:00:00 2001 From: whf <2399365302@qq.com> Date: Sat, 16 May 2026 21:37:48 +0800 Subject: [PATCH] Block 1: sidebar /learning entry + i18n --- web/components/sidebar/SidebarShell.tsx | 7 +++++++ web/locales/en/app.json | 2 ++ web/locales/zh/app.json | 2 ++ 3 files changed, 11 insertions(+) diff --git a/web/components/sidebar/SidebarShell.tsx b/web/components/sidebar/SidebarShell.tsx index 305dab4a9..71101024a 100644 --- a/web/components/sidebar/SidebarShell.tsx +++ b/web/components/sidebar/SidebarShell.tsx @@ -9,6 +9,7 @@ import { BookOpen, Bot, Github, + GraduationCap, LayoutGrid, Library, MessageSquare, @@ -59,6 +60,12 @@ const PRIMARY_NAV: NavEntry[] = [ icon: BookOpen, tooltipKey: "Knowledge tooltip", }, + { + href: "/learning", + label: "Learning", + icon: GraduationCap, + tooltipKey: "Learning tooltip", + }, { href: "/space", label: "Space", diff --git a/web/locales/en/app.json b/web/locales/en/app.json index efaa4b356..6ca241ea1 100644 --- a/web/locales/en/app.json +++ b/web/locales/en/app.json @@ -1605,6 +1605,8 @@ "Co-Writer tooltip": "AI-powered document editor.", "Book tooltip": "Create AI-powered books.", "Knowledge tooltip": "Manage learning personas.", + "Learning": "Learning", + "Learning tooltip": "Structured mastery-based guided learning.", "Space tooltip": "Your personal learning library.", "guidedLearning.title": "Guided Learning", "guidedLearning.description": "Framework v1.8.2 — structured mastery-based learning", diff --git a/web/locales/zh/app.json b/web/locales/zh/app.json index 8fa5fdd1a..c560fa7ed 100644 --- a/web/locales/zh/app.json +++ b/web/locales/zh/app.json @@ -1605,6 +1605,8 @@ "Co-Writer tooltip": "AI 驱动的协作文档编辑器。", "Book tooltip": "生成交互式 AI 书籍。", "Knowledge tooltip": "管理文档与教学人设。", + "Learning": "学习", + "Learning tooltip": "结构化掌握式引导学习。", "Space tooltip": "你的个人学习空间。", "guidedLearning.title": "引导式学习", "guidedLearning.description": "框架 v1.8.2 — 结构化掌握式学习",