Repository navigation
feat(desktop): 「应用」菜单提供「使用教程」入口 - #233
Merged
Merged
Conversation
发行版插件可在 /eduwork-user-guide/ 提供随包使用教程。主窗口接上 Host 后,外壳经 Host 对该路由发 HEAD 请求;有响应时在「应用」菜单「检查更新」上方加入「使用教程」 (Windows 标题栏菜单与 macOS 应用菜单共用同一列表)。点击后显示窗口并派发固定的 窗口事件 eduwork:open-user-guide,由页面内的插件打开教程。没有教程的版本不显示该项。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
|
已直接补了一个启动顺序的小修,提交 66478c5。 教程探测里的 这次改动:
验证:34 项相关回归通过(含 19 个原生入口合成场景);Windows Electron 44 的 20 组原生检查通过。将入口临时恢复为修复前代码时,两项启动回归均能检出问题。原生检查使用合成教程路由和事件监听,完整教程插件的展示仍留到后续接入验收。最新提交的 GitHub CI 重新检查。 |
freedomkk-qfeng
added a commit
that referenced
this pull request
Nov 16, 2026
* feat(user-guide): 随包使用教程与首次新手引导 新增 dsh-plugins/user-guide(@eduwork/dsh-user-guide),在 /eduwork-user-guide/ 提供离线教程,#233 的「应用 → 使用教程」菜单随之出现。首次进入工作台(输入框已出现、没有其他模态窗口)时播放一次 8 步引导,看完或跳过记入 volatile 的 tourSeen。产品名、是否自动播放与步骤可由发行版配置覆盖。账户菜单入口仅在发行版提供 accountMenuEntries 时注册。 Co-Authored-By: Claude Opus 5.5 <[email protected]> * chore: 刷新源码收据 Co-Authored-By: Claude Opus 5.5 <[email protected]> * feat(user-guide): inherit public copy per language and field * Build edition-owned Markdown handbooks into the offline user guide * Open edition handbooks online and keep a four-step offline quick start --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: 冯骐 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
发行版插件可以在
/eduwork-user-guide/提供随包的使用教程。主窗口接上 Host 后,桌面外壳经 Host 对该路由发一次HEAD请求;路由有响应时,在「应用」菜单「检查更新」上方加入「使用教程」。Windows 标题栏菜单与 macOS 应用菜单共用同一列表。点击后显示并聚焦主窗口,向页面派发固定的窗口事件
eduwork:open-user-guide,由页面内的插件自行打开教程。外壳不加载任何插件提供的地址,也不执行插件提供的脚本。对现有版本的影响
约定
/eduwork-user-guide/(USER_GUIDE_ROUTE)eduwork:open-user-guide(USER_GUIDE_EVENT)后续计划另提一个 PR,提交通用的使用教程与新手引导插件(只读教程页服务、逐步引导、教程面板),使用这里的路由与事件。
测试
dsh-electron/tests/user-guide-menu.test.mjs;启动回归的探测替身保留真实waitForHost()行为,检查探测只在正常就绪后执行一次,失败/取消时不执行。node --test dsh-electron/tests/*.test.mjs:256 通过,0 失败。source-receipt.json已刷新(保留 createdAt),audit-eduwork-distribution --verify-receipt无错误。🤖 Generated with Claude Code