feat(xcui): add editor layout persistence validation

This commit is contained in:
2026-04-06 16:59:15 +08:00
parent eef5de7ee9
commit 9015b461bb
17 changed files with 1849 additions and 121 deletions

View File

@@ -169,10 +169,10 @@ tests/
以下规则在当前阶段覆盖本节中所有与目录落点有关的模糊表述:
- `editor/` 当前视为 ImGui 版本冻结区;在 XCUI editor shell 成熟前,不直接在该目录中推进替换开发。
- 新的 `Editor` 层实现当前先落在 `new_editor/`,用于 editor shell、editor-only widget 与工作区壳层构建
- `tests/UI` 继续只承担 XCUI 的 `unit / integration` 验证职责,不承载正式 editor 实现
- `tests/UI` 是当前 `Editor` 基础层的唯一实验场;所有基础能力验证、交互试验、状态流检查都必须优先放在 `tests/UI/Editor/unit``tests/UI/Editor/integration`
- `new_editor/` 当前冻结为空壳目录,不承担实验场职责;在 `Editor` 基础层尚未通过测试体系收口前,禁止继续往其中添加新功能、新面板或新的验证入口
- `engine/UI` 当前继续只放 `Core / Runtime / shared` 部分,不再继续沉积 editor-only 代码。
- `new_editor/` 中的 XCUI editor shell 达到替换条件后,再计划性回收进正式 `editor/`
- `Editor` 基础层在 `tests/UI/Editor` 中稳定收口后,如确有宿主集成需要,再单独规划 `new_editor/`正式 `editor/` 的接入阶段
#### 当前过渡期目录(自 2026-04-06 起执行)
```text
@@ -185,7 +185,7 @@ new_editor/
src/
ui/
captures/
# 当前新的 Editor 层与 editor shell 先在这里构建
# 当前冻结为空壳,不作为基础层开发或实验入口
editor/
# 当前 ImGui 版本冻结,不作为本阶段 XCUI 主实现目录
@@ -1417,8 +1417,8 @@ tests/UI/Editor/
近期执行顺序调整如下:
1. 冻结当前基于 ImGui 的 `editor/` 目录,不把它作为本阶段 XCUI 替换开发的主工作区。
2. 新的 XCUI `Editor` 层先在 `new_editor/`构建
3. `tests/UI` 继续只做验证,不承载正式 editor 实现
2. 当前阶段所有 `Editor` 基础层实验、交互验证、状态流验证,一律放在 `tests/UI/Editor`完成
3. `new_editor/` 保持空壳冻结;在基础层未成熟前,不把它当作试验场,不往里面追加功能
4. 在具体 editor 面板之前,优先完成 editor shell 基础能力:
- Splitter / pane resize
- Tab strip
@@ -1438,7 +1438,8 @@ tests/UI/Editor/
- `Editor` 当前阶段只负责 editor shell、panel 生命周期、workspace 装配、menu/shortcut 这类 editor-only 上层能力。
- 凡是发现 `layout / input / style / text / render contract / shared widget` 等共享能力缺口,必须优先回补到 `Core` 或 shared UI 层。
- 禁止在 `Editor` 层硬写临时替代实现去绕过 `Core` 缺口;否则后面迁移到正式 editor 时会再次返工。
- `new_editor/` 当前只作为 `Editor` 层实现载体与试验场,不作为业务面板堆叠区
- `tests/UI/Editor` 当前 `Editor` 基础层的唯一实验与验证入口;需要人工操作检查的内容,也必须做成这里的集成测试场景
- `new_editor/` 当前保持空壳冻结,不作为试验场,不作为基础层功能承载目录,更不允许在基础层未成熟前向其中堆任何业务或验证逻辑。
- `tests/UI/Editor` 当前只验证 `Editor` 基础壳层与状态流,不提前承担具体业务面板复刻。
### 24.3 Editor基础层当前推进顺序2026-04-06