52 lines
1.9 KiB
Markdown
52 lines
1.9 KiB
Markdown
# Reasonix Worker C:Local Folder Tree Live 浏览器 smoke
|
||||
|
|
|
|||
|
|
Project root:`/mnt/Data1T/mnote`
|
|||
|
|
|
|||
|
|
你不是唯一 worker。不要回滚、覆盖或清理他人的改动;只修改本任务 ownership 范围内的文件。不要提交 git。
|
|||
|
|
|
|||
|
|
## 背景
|
|||
|
|
|
|||
|
|
`3-3` 的归档条件要求 `3000` 当前主界面的 Sidebar / page subtree / FileTree / preferred snapshot 补偿链统一到正式 live cache。当前 local_folder 仍是轮询补拉 projection。Worker A/B 会尝试把 local_folder 接入 tree live consumer;本任务负责 smoke 证据。
|
|||
|
|
|
|||
|
|
新 checklist:`design/03-rust-web/process/3-18-local-folder-tree-live-consumer-convergence-checklist-v1.md`
|
|||
|
|
|
|||
|
|
## Ownership
|
|||
|
|
|
|||
|
|
允许修改:
|
|||
|
|
|
|||
|
|
- `scripts/task435-local-folder-watch-no-reload-smoke.js`
|
|||
|
|
- 可新增:`scripts/task487-local-folder-tree-live-consumer-smoke.js`
|
|||
|
|
- `design/03-rust-web/process/3-18-local-folder-tree-live-consumer-convergence-checklist-v1.md`
|
|||
|
|
|
|||
|
|
禁止修改:
|
|||
|
|
|
|||
|
|
- Rust route / layout runtime 代码
|
|||
|
|
|
|||
|
|
## 目标
|
|||
|
|
|
|||
|
|
1. 增加或更新 smoke,验证 local_folder 文档页不再把 `local-folder-static` 当默认 tree live 主链。
|
|||
|
|
2. 验证 local_folder 外部文件变化后,Sidebar / FileTree 刷新最终留下 tree live consumer 证据,例如:
|
|||
|
|
- `data-mnote-tree-live-transport="local-folder-events"`
|
|||
|
|
- `data-mnote-tree-live-applied="snapshot"` 或 `"resync"`
|
|||
|
|
- `data-mnote-local-folder-watch-applied` 不再是唯一证据
|
|||
|
|
3. smoke 结果写入 `tmp/.../result.json`,如可行保存截图。
|
|||
|
|
4. 若当前代码尚未满足断言,允许先写 RED smoke,但必须在文档执行记录中说明它当前预期失败。
|
|||
|
|
|
|||
|
|
## 验收命令
|
|||
|
|
|
|||
|
|
```bash
|
|||
|
|
node --check scripts/task435-local-folder-watch-no-reload-smoke.js
|
|||
|
|
node --check scripts/task487-local-folder-tree-live-consumer-smoke.js
|
|||
|
|
git diff --check
|
|||
|
|
```
|
|||
|
|
|
|||
|
|
如果没有新增 task487,则说明原因。
|
|||
|
|
|
|||
|
|
## 最终回复格式
|
|||
|
|
|
|||
|
|
- 修改文件列表
|
|||
|
|
- smoke 覆盖点
|
|||
|
|
- 当前是否 RED / GREEN
|
|||
|
|
- 运行过的命令和结果
|
|||
|
|
- 未完成项或风险
|