fix(windows): 收口 Capsule 几何契约#146
Conversation
There was a problem hiding this comment.
Sorry @Cooper-X-Oak, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
Governance note: This draft PR is treated as the canonical implementation anchor for Keep in scope:
Keep out of scope:
Reference docs:
|
|
自动推进更新:\n\n- 已把当前工作区中属于 B 族群(窗口几何契约)的代码单独切回这条 canonical draft PR\n- 本轮新增点主要是:Capsule host bounds / visual pill metrics 分层、Windows bottom inset 对齐、translation badge 从 shared host metrics 锚定、Rust runtime bounds 收口\n- 已完成验证:\n - |
|
@Cooper-X-Oak 这条 PR 是 draft + CONFLICTING,main 在过去几小时已合入 #140 (capsule 生命周期 + visible 三平台统一)、#155 等多个改动,base 跑得较远。issue #142 (Capsule 变形/失真/尺寸错位) 仍然 open + 已加 priority: high label。烦请基于最新 main rebase 后开新 PR;rebase 时注意 #140 已经引入了 |
|
自动回归补充:\n\n- fresh-start smoke:powershell -ExecutionPolicy Bypass -File openless-all/app/scripts/windows-open-dev.ps1 -ExePath <#146 GNU dev exe> 通过\n- 进程状态:可见主窗口、Responding=True\n- 已完成自动门禁:\n - |
治理归属
docs/windows-window-governance-board.zh-CN.mddocs/2026-05-02-window-capability-family-audit.mddocs/github-tracking/windows-window-family-canonical-map.md摘要
Closes #142
这个 draft PR 已经从纯 tracking 入口推进到 Windows Capsule geometry 主线修复。
本轮目标是把:
收口成同一套几何契约,而不是继续让前端视觉尺寸和宿主窗口尺寸混用。
修复 / 新增 / 改进
host bounds语义,保留visual height作为单独来源windows-ui-config.test.mjs,锁住 capsule geometry contract兼容
测试计划
node openless-all/app/scripts/windows-ui-config.test.mjsnpm run buildcargo check --manifest-path openless-all/app/src-tauri/Cargo.tomlDraft 说明
当前代码与静态门禁已经收口,但还缺 Windows 实机视觉回归,尤其是:
因此继续保持 draft。