Skip to content

Commit ffcca05

Browse files
committed
perf: 新手引导通过后弹出更新日志
1 parent 7889e65 commit ffcca05

6 files changed

Lines changed: 23 additions & 14 deletions

File tree

dev/design/TODO.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
## perf
88

9-
- 日志面板
10-
119
## feat
1210

1311
- 按键工具

src/components/Header.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,13 @@ function Header() {
320320
};
321321
}, [isEmbed]);
322322

323+
// 答题通过后弹出更新日志
324+
useEffect(() => {
325+
const handler = () => setUpdateLogOpen(true);
326+
window.addEventListener("mpe:newcomer-passed", handler);
327+
return () => window.removeEventListener("mpe:newcomer-passed", handler);
328+
}, []);
329+
323330
// 检查新版本
324331
useEffect(() => {
325332
if (globalConfig.dev) return;

src/components/modals/NewcomerGuideModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export function NewcomerGuideModal() {
9797
const handleFinish = () => {
9898
markPassed();
9999
closeModal();
100+
window.dispatchEvent(new CustomEvent("mpe:newcomer-passed"));
100101
};
101102

102103
return (

src/data/updateLogs.ts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const longTermPreview: ForecastSection = {
8787
};
8888

8989
export const nextPreview: ForecastSection = {
90-
title: "Next Version 至 v1.6.0",
90+
title: "Next Version 至 v1.7.0",
9191
notice: "预告内容会随开发进度与实际需求调整,不代表最终承诺。",
9292
items: [
9393
{
@@ -96,23 +96,26 @@ export const nextPreview: ForecastSection = {
9696
description:
9797
"集成式 Wiki 模块,可在 MPE 内直接查看动态教程,支持任意界面直接跳转至对应模块内容。",
9898
},
99-
{
100-
theme: "FlowScope",
101-
title: "调试模块完善与问题修复",
102-
description:
103-
"推进调试模块的功能完善与稳定性提升,修复已知问题,优化用户体验。",
104-
},
10599
],
106100
};
107101

108102
export const updateLogs: UpdateLogItem[] = [
103+
// {
104+
// version: "1.7.0",
105+
// date: "2026-6-",
106+
// type: "major",
107+
// updates: {
108+
// features: [
109+
// "📚 新增内嵌 wiki “俺寻思” 模块,可在主要功能处 hover 图标长按 w 跳转",
110+
// ],
111+
// },
112+
// },
109113
{
110114
version: "1.6.0",
111-
date: "2026-5-25",
112-
type: "major",
115+
date: "2026-5-31",
116+
type: "perf",
113117
updates: {
114118
features: [
115-
"📚 新增内嵌 wiki “俺寻思” 模块,可在主要功能处 hover 图标长按 w 跳转",
116119
"🔃 外部节点与锚点节点可同时存在多个,支持持久化",
117120
"📑 新增节点操作日志,支持快速跳转",
118121
"👾 新增新手引导,速来领取你的通关证书!",

src/stores/configStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { encryptApiKey } from "../utils/ai/crypto";
77
export const globalConfig = {
88
dev: true,
99
version: `1.6.0`,
10-
betaIteration: 4,
10+
betaIteration: 5,
1111
mfwVersion: "5.10.5",
1212
protocolVersion: "1.0.4",
1313
};

src/wiki/visibility.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const isWikiModuleVisible = true;
1+
export const isWikiModuleVisible = false;

0 commit comments

Comments
 (0)