Repository navigation
Conversation
设置侧栏原来的顺序是通用 → Agent/ACP/MCP/同步/快捷键/LLM 提供商 → 账户/关于 → 数据库/SQL 格式化/终端,日常最常用的数据库与终端被挤到最后。 现在改成: 通用 → 数据库、SQL 格式化、终端(领域页)→ Agent、ACP、MCP、同步、 快捷键、LLM 提供商 → 账户、关于。 领域页由领域注册表按 order 提供,数量随参与编译的领域变化,所以「同步」页 的绝对下标不能写死常量:改为在拼接页面时按「通用 + 领域页」的数量现算, `SettingsPanel` 也由存下标改为存「默认打开哪一页」,同步冲突入口仍能直接 跳到同步页。
从全量 navop 导入到 Shell / Data 时,所有工作区都落到顶层:迁移包格式里只有 name/color/icon,规划阶段按名字重建,落库时 parent_id 写死 None。 - 迁移包升到 v2:BundleWorkspace 增加 id / parent(都是可选字段,v1 包照旧按 平铺导入);sqlite 读取端把 workspaces.parent_id 转成包内 `w<id>` 标识。 - 规划阶段新增 parent_key,按「父在前」拓扑展开后解析父级;父级已被复用、 缺失、自指向或父子成环时都不会卡住导入(成环只断一条边)。 - 落库时把 parent_key 换成父工作区的本地 id,写入 Workspace.parent_id。 - 测试:层级读取、嵌套排序、复用已有父级、成环兜底各一条。
之前三个产品共用 resources/windows/navop.ico、macOS 的 Navop.icns 与 Linux 的 三张 navop png(Shell/Data 的 png 只是复制品),装在一起几乎分不出来。 - 新增 script/generate-product-icons.py:同一套视觉语言(深蓝圆角底 + 青蓝渐变 前景),Shell 用终端提示符、Data 用数据库柱体,输出 Linux PNG(128/256/512)、 macOS ICNS、Windows ICO(16~256)。 - macOS:bundle-macos.sh 按产品选 Navop / NavopShell / NavopData 的 icns, Info.plist 的 CFBundleIconFile 仍是 Navop,拷贝时统一重命名。 - Windows:apps/navop-shell|navop-data/build.rs 嵌入各自的 ico;独立产品的 MSI/卸载项通过 build-product-installer.ps1 的 -IconPath 传入产品图标。 - Linux:package-linux-product.sh 本来就读 <product>-<size>.png,把复制的 png 换成新绘制的一套。 - 打包测试补「每个产品都有自己的图标」:build.rs 的 ico 路径、macOS icns 映射、 Linux 三尺寸 png、独立产品安装包 -IconPath。
上一版把 N 换成了终端/数据库字形,产品看起来像另一个牌子。改成保留品牌 N 主图,只在右下角压一枚圆形脚标:Shell 是终端提示符,Data 是数据库柱体。 - 品牌主图取 Navop.icns 里最大的 1024 版本,落到 resources/branding/navop-1024.png, 三个尺寸都从它缩,细节不糊。 - 脚标按画布比例定位(圆心 0.792、半径 0.158),外圈深色描边把脚标和主图 背景分开,缩到 32px 仍能看出「N + 一个亮圆点」。 - 生成脚本去掉按产品重绘主图的分支,只剩「主图 + 脚标」合成;斜向渐变改用 「横条渐变逐行偏移」,避免旋转补出的黑角把脚标啃掉一块。
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.
变更
设置侧栏顺序从「通用 → Agent/ACP/MCP/同步/快捷键/LLM 提供商 → 账户/关于 → 数据库/SQL 格式化/终端」调整为:
通用 → 数据库、SQL 格式化、终端 → Agent、ACP、MCP、同步、快捷键、LLM 提供商 → 账户、关于
数据库与终端是日常使用频率最高的两块设置,提到最前面;账户与关于收尾。领域页仍由领域注册表按
order提供,只是插入位置从末尾挪到「通用」之后。因为领域页数量随参与编译的领域变化,「同步」页不能再依赖固定下标常量:改为拼接页面时按「通用 + 领域页」数量现算,
SettingsPanel由存页面下标改为存「默认打开哪一页」(通用 / 同步),同步冲突入口行为不变。验证
cargo check -p navop_app:无新增告警cargo test -p navop_app --lib setting_tab:39 passed(新增sync_page_index_follows_the_domain_pages)