From 1d1912785576aa64cc1e79db54fdc762bcfc84ff Mon Sep 17 00:00:00 2001
From: Dayuan Jiang <34411969+DayuanJiang@users.noreply.github.com>
Date: Tue, 30 Dec 2025 23:45:31 +0900
Subject: [PATCH] chore: remove About link from header and language switcher
from about pages (#464)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Remove About link and sponsor notice icon from chat panel header
- Remove language switcher (English | 中文 | 日本語) from all about pages
- Fix About link in settings dialog to use current language
- Remove unused sponsorTooltip translation key from all dictionaries
---
app/[lang]/about/cn/page.tsx | 22 ----------------------
app/[lang]/about/ja/page.tsx | 22 ----------------------
app/[lang]/about/page.tsx | 22 ----------------------
components/chat-panel.tsx | 28 ----------------------------
components/settings-dialog.tsx | 4 ++--
lib/i18n/dictionaries/en.json | 3 +--
lib/i18n/dictionaries/ja.json | 3 +--
lib/i18n/dictionaries/zh.json | 3 +--
8 files changed, 5 insertions(+), 102 deletions(-)
diff --git a/app/[lang]/about/cn/page.tsx b/app/[lang]/about/cn/page.tsx
index 6f16b42..591df69 100644
--- a/app/[lang]/about/cn/page.tsx
+++ b/app/[lang]/about/cn/page.tsx
@@ -72,28 +72,6 @@ export default function AboutCN() {
AI驱动的图表创建工具 - 对话、绘制、可视化
-
-
- English
-
- |
-
- 中文
-
- |
-
- 日本語
-
-
diff --git a/app/[lang]/about/ja/page.tsx b/app/[lang]/about/ja/page.tsx
index fadd733..4dd22d6 100644
--- a/app/[lang]/about/ja/page.tsx
+++ b/app/[lang]/about/ja/page.tsx
@@ -80,28 +80,6 @@ export default function AboutJA() {
AI搭載のダイアグラム作成ツール -
チャット、描画、可視化
-
-
- English
-
- |
-
- 中文
-
- |
-
- 日本語
-
-
diff --git a/app/[lang]/about/page.tsx b/app/[lang]/about/page.tsx
index 8bc88a1..d5240fd 100644
--- a/app/[lang]/about/page.tsx
+++ b/app/[lang]/about/page.tsx
@@ -80,28 +80,6 @@ export default function About() {
AI-Powered Diagram Creation Tool - Chat, Draw,
Visualize
-
-
- English
-
- |
-
- 中文
-
- |
-
- 日本語
-
-
diff --git a/components/chat-panel.tsx b/components/chat-panel.tsx
index cf04a2c..396d4bf 100644
--- a/components/chat-panel.tsx
+++ b/components/chat-panel.tsx
@@ -3,14 +3,12 @@
import { useChat } from "@ai-sdk/react"
import { DefaultChatTransport } from "ai"
import {
- AlertTriangle,
MessageSquarePlus,
PanelRightClose,
PanelRightOpen,
Settings,
} from "lucide-react"
import Image from "next/image"
-import Link from "next/link"
import type React from "react"
import { useCallback, useEffect, useRef, useState } from "react"
import { flushSync } from "react-dom"
@@ -952,32 +950,6 @@ export default function ChatPanel({
Next AI Drawio
- {!isMobile && (
-
- {dict.nav.about}
-
- )}
- {!isMobile && (
-
-
-
-
-
- )}
·
- About
+ {dict.nav.about}
>
)}
diff --git a/lib/i18n/dictionaries/en.json b/lib/i18n/dictionaries/en.json
index d1d4424..d3c70c9 100644
--- a/lib/i18n/dictionaries/en.json
+++ b/lib/i18n/dictionaries/en.json
@@ -18,8 +18,7 @@
"settings": "Settings",
"hidePanel": "Hide chat panel (Ctrl+B)",
"showPanel": "Show chat panel (Ctrl+B)",
- "aiChat": "AI Chat",
- "sponsorTooltip": "Sponsored by ByteDance Doubao K2-thinking. See About page for details."
+ "aiChat": "AI Chat"
},
"providers": {
"useServerDefault": "Use Server Default",
diff --git a/lib/i18n/dictionaries/ja.json b/lib/i18n/dictionaries/ja.json
index cdc49ca..c215835 100644
--- a/lib/i18n/dictionaries/ja.json
+++ b/lib/i18n/dictionaries/ja.json
@@ -18,8 +18,7 @@
"settings": "設定",
"hidePanel": "チャットパネルを非表示 (Ctrl+B)",
"showPanel": "チャットパネルを表示 (Ctrl+B)",
- "aiChat": "AI チャット",
- "sponsorTooltip": "ByteDance Doubao K2-thinking によるスポンサー。詳細は概要ページをご覧ください。"
+ "aiChat": "AI チャット"
},
"providers": {
"useServerDefault": "サーバーデフォルトを使用",
diff --git a/lib/i18n/dictionaries/zh.json b/lib/i18n/dictionaries/zh.json
index d99a020..da0aca7 100644
--- a/lib/i18n/dictionaries/zh.json
+++ b/lib/i18n/dictionaries/zh.json
@@ -18,8 +18,7 @@
"settings": "设置",
"hidePanel": "隐藏聊天面板 (Ctrl+B)",
"showPanel": "显示聊天面板 (Ctrl+B)",
- "aiChat": "AI 聊天",
- "sponsorTooltip": "由字节跳动豆包 K2-thinking 赞助。详情请参阅关于页面。"
+ "aiChat": "AI 聊天"
},
"providers": {
"useServerDefault": "使用服务器默认值",