[0986] 首选项 AI 子标签页提升为主标签页(排转换右侧) - #4571
Open
PinkMagicFly wants to merge 2 commits into
Open
PinkMagicFly wants to merge 2 commits into
PinkMagicFly wants to merge 2 commits into
Conversation
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.
概要
把「编辑 → 首选项 → 转换」下的 AI 子标签页(#4568 引入)提升为与「转换」同级的主标签页,排在「转换」右侧:General / Keyboard / Mathematics / Convert / AI / Other。社区版仍整体不注册该 tab(沿用
community-stem?惯例)。实现
preferences-qml-meta(preferences-widgets.scm):主 tab 列表外层包list-filter … identity(与 Convert 子 tab 列表同一模式),AI 主 tab 以(if (community-stem?) #f (list "ai" …))插在 convert 与 other 之间;Convert 子 tab 恒为 html/latex/bibtex/verbatim/pdf/image 6 项。Preferences.qml仅头注释)与 C++ bridge 零功能改动。preferences-qml-convert-ai-fields→preferences-qml-ai-fields;pref-keys 访问器pref-convert-ai-actions-bar/pref-convert-ai-translate-target→pref-ai-actions-bar/pref-ai-translate-target(偏好键字符串与存储不变,零迁移风险),pref-keys.scm 分节头Convert / AI tab→AI tab。preferences-widgets-test.scm主 tab 数/顺序改为同一期望 key 列表派生(社区版 5 / 企业版 6,ai 钉在 convert 右侧)、convert 恒 6 子 tab、test-ai-subtab-fields更名test-ai-tab-fields改按主 tab 查找;2044.scmtab 结构断言同步(该文件 keyboard/other 字段数期望此前已陈旧,与本次无关未动)。ai-docs/qml/qml-dialog.html的 #panel-preferences 补 AI 主 tab 按钮与面板(设计稿此前未收录 AI 子 tab,本次直接按主 tab 收录)。验证
xmake b stem社区版与企业版(xmake f --is_community=n --yes)两种配置构建通过;xmake r preferences-widgets-test:社区版 438 correct / 0 failed(5 主 tab、无 AI);企业版 470 correct / 0 failed(含 AI 主 tab 顺序、字段契约 + set-field 往返);rebase 到最新 main(fbf0c49f9)后复跑通过;gf fmt;全部触及 hunk 已用 gf 临时副本实测与 gf 输出逐字节一致。手动验证步骤(企业版构建)
xmake f --is_community=n --yes && xmake b stem,启动应用;is_community_stem()门控)。🤖 Generated with Claude Code