From ce1da6a6866553c74ed4328ca8e4edf0e90572e9 Mon Sep 17 00:00:00 2001
From: "2569718930@qq.com" <2569718930@qq.com>
Date: Sun, 10 May 2026 16:19:21 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E4=BA=A7=E5=93=81=E5=AE=A1?=
=?UTF-8?q?=E6=9F=A5=E5=89=A9=E4=BD=99=E4=BF=AE=E5=A4=8D=EF=BC=9A=E6=96=B0?=
=?UTF-8?q?=E6=89=8B=E6=8C=87=E5=BC=95=E3=80=81=E5=8F=8D=E9=A6=88=E5=85=A5?=
=?UTF-8?q?=E5=8F=A3=E3=80=81=E4=BB=98=E8=B4=B9=E5=A2=99=E9=A2=84=E8=A7=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
P1-4:新增 WelcomeOverlay 新手指引
- 首次访问时显示 3 步引导:①从地图选城市 ②查看城市简报 ③解锁 Pro 深入分析
- 圆点进度指示、跳过/下一步按钮、点背景可关闭
- 看过一次后 localStorage 标记不再显示
P1-5:付费墙增加功能预览
- HistoryModal 在付费墙上方展示功能说明文案
- 新增 i18n 键 history.previewTitle / history.previewDesc(中英双语)
P2-9:新增反馈入口
- 顶栏增加 Telegram 反馈按钮(MessageCircle 图标)
- 点击跳转 PolyWeather 社群
Tested: npx tsc --noEmit
---
.../components/dashboard/HistoryModal.tsx | 12 +-
.../dashboard/ScanTerminalDashboard.tsx | 13 ++
.../dashboard/ScanTerminalState.module.css | 111 ++++++++++++++++
.../scan-terminal/WelcomeOverlay.tsx | 120 ++++++++++++++++++
frontend/lib/i18n.ts | 4 +
5 files changed, 259 insertions(+), 1 deletion(-)
create mode 100644 frontend/components/dashboard/scan-terminal/WelcomeOverlay.tsx
diff --git a/frontend/components/dashboard/HistoryModal.tsx b/frontend/components/dashboard/HistoryModal.tsx
index 5257c9e0..ea4a4978 100644
--- a/frontend/components/dashboard/HistoryModal.tsx
+++ b/frontend/components/dashboard/HistoryModal.tsx
@@ -92,7 +92,17 @@ export function HistoryModal() {
) : !isPro ? (
-
+ {t("history.previewDesc")} +
++ {isEn ? current.descEn : current.descZh} +
+ +