refactor: clean editor runtime warnings
This commit is contained in:
@@ -188,11 +188,11 @@ codegraph sync .
|
||||
| browser/ 模块 | 11 个 JS 文件,总计 ~11,000 行 |
|
||||
| editor_runtime/ 模块 | 19 个 Rust 模块(另有 mod.rs) |
|
||||
| 浏览器 smoke | task479/488/489/451 全部 PASS |
|
||||
| 测试 | editor 13/13, web sidebar 10/10, web full 531/549 |
|
||||
| 测试 | editor 13/13;web full 最近一次 529/549(20 failed,非本轮 editor runtime / sidebar 外置改动面) |
|
||||
| CodeGraph | 350+ 文件索引完成 |
|
||||
|
||||
### 未完成(记录为后续任务)
|
||||
|
||||
| 项 | 说明 |
|
||||
|----|------|
|
||||
| Batch C 全量验证 | 尚未运行 `cargo test -p mnote-web --lib` / `cargo test -p mnote-leptos-tiptap-spike` / task451 全套;本轮已完成 spike check/build、wasm-bindgen、task479/task488/task489、临时 slash/table Playwright 回归与直接编辑器交互回归 |
|
||||
| Batch C 全量验证 | `cargo test --manifest-path rust/spikes/leptos-tiptap-spike/Cargo.toml -- --test-threads=1` 已 13/13 通过,task451 已补跑通过;但 `cargo test --manifest-path rust/Cargo.toml -p mnote-web --lib -- --test-threads=1` 最近一次仍 20 failed(watcher OS limit、legacy proxy、access policy dialog、Hermes block tools 403、local search index、resource trash 503、web_shell 旧断言等),所以本文件保持 `process` 而不是归档到 `done`。 |
|
||||
|
||||
@@ -406,9 +406,9 @@ UI / 浏览器可见项必须有真实浏览器截图或结构化 smoke 证据
|
||||
|
||||
| 文件 | 原大小 | 现大小 | 变化 |
|
||||
|------|--------|--------|------|
|
||||
| `lib.rs` | 9,873 行 | 8,181 行 | **-17%** |
|
||||
| `editor_runtime/mindmap_node_view.rs` | — | 909 行 | 新建 |
|
||||
| `editor_runtime/bridge_events.rs` | — | 149 行 | 新建 |
|
||||
| `lib.rs` | 9,873 行 | 8,189 行 | **-17%** |
|
||||
| `editor_runtime/mindmap_node_view.rs` | — | 906 行 | 新建 |
|
||||
| `editor_runtime/bridge_events.rs` | — | 154 行 | 新建 |
|
||||
| `editor_runtime/slash_actions.rs` | — | 237 行 | 新建 |
|
||||
| `editor_runtime/table_commands.rs` | — | 180 行 | 新建 |
|
||||
| `editor_runtime/bridge_dispatch.rs` | — | 86 行 | 新建 |
|
||||
@@ -459,3 +459,8 @@ UI / 浏览器可见项必须有真实浏览器截图或结构化 smoke 证据
|
||||
- 新增 `table_commands.rs`,迁出 table toolbar / option action、命令执行和 checked 状态计算。
|
||||
- 新增 `bridge_dispatch.rs`,迁出 `HostCommandKind` 及 host command payload 解析;真实 command 执行 match 仍留在 `lib.rs`。
|
||||
- 已验证:`cargo fmt --manifest-path rust/Cargo.toml --all --check`、`cargo check --manifest-path rust/spikes/leptos-tiptap-spike/Cargo.toml`、`cargo test --manifest-path rust/spikes/leptos-tiptap-spike/Cargo.toml command -- --test-threads=1`、wasm release build、`wasm-bindgen`、task489、task488、task479、临时 slash 插入简单表格 + 表格行 aux 命令 Playwright 回归。
|
||||
- 2026-05-25:Codex 完成本轮 warning / dead-code 清理。
|
||||
- 删除无调用方的 `command_sync::apply_document_update`、`dom_selection::selection_has_rich_marks`,移除 `lib.rs` 中未用 import / 变量。
|
||||
- 将 `should_auto_close_toolbar_overlays` 接回两个实际 auto-close 判断点,避免 helper 外置后仍有重复手写判定。
|
||||
- 对必须持有生命周期但 Rust 编译器无法直接观察用途的 mount handle、host envelope 反序列化字段加局部 `#[allow(dead_code)]`,不扩大到模块级。
|
||||
- 已验证:`cargo check --manifest-path rust/spikes/leptos-tiptap-spike/Cargo.toml` 无 warning,`cargo test --manifest-path rust/spikes/leptos-tiptap-spike/Cargo.toml -- --test-threads=1` 13/13 通过。
|
||||
|
||||
Reference in New Issue
Block a user