- 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
54 lines
2.1 KiB
Markdown
54 lines
2.1 KiB
Markdown
# Reasonix Worker D: Filetree Context Menu Sidex Alignment
|
|
|
|
Project root: `/mnt/Data1T/mnote`
|
|
|
|
## 背景
|
|
|
|
用户报告:文件树右键菜单大多没有实际作用;主页面使用右键菜单“侧边栏显示”提示暂不支持在侧栏打开资源。用户要求核对 Sidex 右键菜单,调整当前可用菜单。
|
|
|
|
事实源:
|
|
|
|
- Review: `bugs/05-editor-mainline/process/2026-05-21-workbench-filetree-office-slash-bugs-review-v1.md`
|
|
- Checklist: `bugs/05-editor-mainline/process/5-30-filetree-context-menu-sidex-alignment-v1.md`
|
|
- Sidex 参考:`reference-code/sidex-main/src/vs/workbench/contrib/files/browser/fileActions.contribution.ts`
|
|
|
|
## Ownership
|
|
|
|
你负责:
|
|
|
|
- `rust/crates/mnote-web/src/ssr/pages/layout.rs` 中文件树右键菜单 items 和 handler 的小范围修改
|
|
- 必要时 `rust/crates/mnote-web/src/tree_shell/filetree_runtime.rs`
|
|
- 必要时 `rust/crates/mnote-web/src/routes/local_folder_source.rs` 的 `create_folder` 已有入口接线,不要大改 tree command
|
|
- 相关 tests
|
|
|
|
不要修改 Office、slash 定位、默认 workspace、ACP/Hermes 文件。你不是独自在代码库中工作;不要回滚、覆盖、格式化或清理其他 worker 的改动。不要提交 git。
|
|
|
|
## 任务
|
|
|
|
1. 对照 Sidex/VSCode ExplorerContext 的原则:只显示/启用可用动作。
|
|
2. local_folder 下:
|
|
- `New File` 继续创建页面。
|
|
- `New Folder` 接入 `create_folder` 或隐藏/禁用但不能误导。
|
|
- `Copy Path` 复制真实 relative path / asset path,不是标题。
|
|
- `Reveal` 至少滚动聚焦并记录状态。
|
|
- `Duplicate` 若没有真实 copy,隐藏或禁用。
|
|
- `Open Right` 只对页面显示;资源未支持侧栏时隐藏,避免 unsupported placeholder。
|
|
3. 更新字符串测试。
|
|
|
|
## 验证
|
|
|
|
至少运行:
|
|
|
|
```bash
|
|
cd /mnt/Data1T/mnote/rust
|
|
cargo test -p mnote-web sidebar_tree_runtime_renders_context_menu_and_scoped_title_updates -- --test-threads=1
|
|
cargo test -p mnote-web sidebar_tree_runtime_handles_navigation_drag_and_filetree_actions -- --test-threads=1
|
|
```
|
|
|
|
## 最终回复格式
|
|
|
|
- 修改文件列表
|
|
- 完成的 checklist 项
|
|
- 运行过的命令和结果
|
|
- 未完成项/风险
|