- 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
39 lines
1.3 KiB
Markdown
39 lines
1.3 KiB
Markdown
# Checklist: Main Page Tab Title Active Sync
|
|
|
|
## 目标
|
|
|
|
主编辑区 page tab 标题必须随当前 primary document 切换和标题保存同步更新。
|
|
|
|
## 允许修改
|
|
|
|
- `rust/crates/mnote-web/src/routes/web_shell.rs`
|
|
- `rust/crates/mnote-web/src/ssr/pages/layout.rs`
|
|
- `rust/crates/mnote-web/src/ssr/pages/document.rs`
|
|
- 相关测试 / smoke
|
|
|
|
## 禁止事项
|
|
|
|
- 不改资源 tab 整体架构。
|
|
- 不移除资源 tab close guard。
|
|
- 不回滚现有 `layout.rs` 用户改动。
|
|
|
|
## 待办
|
|
|
|
- [x] 在 `updatePaneChrome(primary)` 中同步 `[data-mnote-main-tab="page"]` 的 title、document id、workspace id。
|
|
- [x] 标题保存控制器 `updateVisibleTitle` 同步当前 page tab 标题。
|
|
- [x] 切换回 page tab 时确保 tab 标题与当前 primary document 一致。
|
|
- [x] 增加 Rust 字符串测试或 browser smoke 覆盖。
|
|
|
|
## 本轮执行记录
|
|
|
|
- 代码:`web_shell.rs` 在标题更新与 primary pane 切换时同步主 page tab。
|
|
- 浏览器验证:`tmp/bug-20260521-workbench-browser-verify/result-title-docx-menu.json` 中 `tabState.tabTitle=Beta`,截图 `01-beta-page-tab-title.png`。
|
|
|
|
## 验收命令
|
|
|
|
```bash
|
|
cd /mnt/Data1T/mnote/rust
|
|
cargo test -p mnote-web page_layout_renders_main_editor_tab_strip -- --test-threads=1
|
|
cargo test -p mnote-web document_shell_runtime_renders_resource_tab_runtime -- --test-threads=1
|
|
```
|