Skip to content

chore(frontend): 移除 Enchante Agent 使用手册链接,只留纯文字提示 - #5

Merged
chenyida7-prog merged 1 commit into
mainfrom
chore/remove-enchante-agent-manual-link
Aug 26, 2026
Merged

chore(frontend): 移除 Enchante Agent 使用手册链接,只留纯文字提示#5
chenyida7-prog merged 1 commit into
mainfrom
chore/remove-enchante-agent-manual-link

Conversation

@chenyida7-prog

Copy link
Copy Markdown
Collaborator

背景

PR #4 给 Enchante 的 Agent 行加了「参考使用手册」链接,点击走桌面 IPC 打开一个本地文件。但那个路径当时就是占位符(/Users/chenyida/Library/Containers/com.tencent.xinWeChat/...,我本机微信收到的文件),手册没有真正打包进 app。决定不打包手册了,所以把链接整个下线,只保留文字提示。

改动

  • frontend/index.html:设置页 Agent 分组行 + 引导页结论页,两处的「查看手册」链接(<a class="ai-platform-row__manual-link">)都删掉,只留纯文字(「参考使用手册」/「配置 Agent 参考使用手册」)
  • frontend/js/store.js:删掉 openEnchanteAgentManual()
  • frontend/css/components.css:删掉不再使用的 .ai-platform-row__manual-link
  • desktop/main.js:删掉 open-manual IPC handler 和硬编码的 MANUAL_PATH(本机路径彻底清除)
  • desktop/preload.js:删掉 __mykOpenManual__

isEnchanteAgentManual() 判定保留(还要驱动置灰开关渲染),Enchante 的 MCP deeplink 完全没动。

测试

只跑改动直接覆盖的精准测试,没跑全局前端/浏览器套件:

pytest tests/frontend/test_stage3.py::TestStage3StaticStructure   # 17 passed
pytest tests/frontend/test_stage3.py::TestStage3Build              # 1 passed

同步更新了 TestStage3Browser 里的对应断言(本地未跑,留给 CI)。node --check 过了改动的三个 JS 文件,frontend/build.py 重新打包也过了。

不打包手册了,彻底去掉之前那个占位用的本机微信文件路径
(file:///Users/chenyida/Library/Containers/com.tencent.xinWeChat/...),
避免正式包里残留任何本机路径依赖。

设置页 Agent 分组行 + 引导页结论页,Enchante 的 Agent 项现在都只剩「参考使用
手册」/「配置 Agent 参考使用手册」纯文字,不带任何链接、不带开关。

清理范围:
- frontend/js/store.js:删掉 openEnchanteAgentManual()
- frontend/index.html:两处都去掉 <a class="ai-platform-row__manual-link">
- frontend/css/components.css:删掉现在没人用的 .ai-platform-row__manual-link
- desktop/main.js:删掉 open-manual IPC handler + MANUAL_PATH 常量
- desktop/preload.js:删掉 __mykOpenManual__ 桥

isEnchanteAgentManual() 判定保留(还要用来渲染置灰开关 + 对应文案),
Enchante 的 MCP deeplink 完全没动。

测试:只跑改动直接覆盖的精准测试(不含全局前端/浏览器套件):
  pytest tests/frontend/test_stage3.py::TestStage3StaticStructure  # 17 passed
  pytest tests/frontend/test_stage3.py::TestStage3Build            # 1 passed
同步更新了 TestStage3Browser 里对应断言(本地未跑,留给 review/CI)。
node --check 过了 main.js/preload.js/store.js,frontend/build.py 重新打包也过了。
@chenyida7-prog
chenyida7-prog merged commit 1cecc97 into main Aug 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant