- add local-folder OnlyOffice sign/callback writeback and edit-tab handling - align main resource tabs, attachment edit menu, slash isolation, and filetree context behavior - record Sidex/Hermes gap reviews and Reasonix task checklists
45 lines
2.1 KiB
Markdown
45 lines
2.1 KiB
Markdown
# Checklist: Local Folder Page Trash And Empty Workspace
|
|
|
|
## 目标
|
|
|
|
- 修复删除页面后进入资源垃圾箱的问题。
|
|
- 停止自动生成“初始化的新页面”。
|
|
- 空白本地工作区保持空白,不创建占位页面。
|
|
|
|
## 允许修改
|
|
|
|
- `rust/crates/mnote-web/src/routes/local_folder_source.rs`
|
|
- 必要时 `rust/crates/mnote-web/src/routes/gateway.rs` 中 trash 渲染分类逻辑
|
|
- 相关 Rust 单测与 smoke
|
|
|
|
## 禁止事项
|
|
|
|
- 不删除用户真实文件。
|
|
- 不回滚 ACP/Hermes 相关改动。
|
|
- 不改旧 React 回收区。
|
|
|
|
## 待办
|
|
|
|
- [x] 移除默认工作区创建“初始化的新页面”的运行时行为。
|
|
- [x] 更新旧断言:默认 workspace 只创建 `.mnote` 元数据,不创建默认页面目录。
|
|
- [x] 对页面 bundle 目录删除进行页面生命周期识别:若目录内存在同名 `.md`,删除应走 `trash_local_markdown_page`。
|
|
- [x] trash index 中页面记录应可被页面垃圾箱识别,不再作为 `local_directory` 资源统计。
|
|
- [x] 空 page tree / file tree 不渲染“初始化的新页面”。
|
|
- [x] 补充或更新 targeted tests。
|
|
|
|
## 本轮执行记录
|
|
|
|
- 代码:`local_folder_source.rs` 移除默认首页创建,并让 `local-dir:*` 页面 bundle 删除转入 `markdown_bundle` 页面垃圾箱。
|
|
- 新增测试:`local_tree_command_delete_page_bundle_directory_uses_page_trash`。
|
|
- 浏览器验证:`tmp/bug-20260521-workbench-browser-verify/result-trash.json`,截图 `06-page-bundle-trash-classification.png`。
|
|
- 说明:`task432-filetree-trash-page-dual-browser-no-refresh-smoke` 当前失败在 convex-source 双浏览器实时 delta 未插入新建子页,不是本地页面 bundle 垃圾箱分类失败;后续应按实时同步历史 smoke 单独处理或退役。
|
|
|
|
## 验收命令
|
|
|
|
```bash
|
|
cd /mnt/Data1T/mnote/rust
|
|
cargo test -p mnote-web local_tree_command_manages_loose_markdown_like_regular_file -- --test-threads=1
|
|
cargo test -p mnote-web local_tree_command_delete_folder_moves_directory_to_trash -- --test-threads=1
|
|
cargo test -p mnote-web create_default_local_workspace_for_actor_at_base_creates_manifest_and_root_only -- --test-threads=1
|
|
```
|