refactor: extract table toolbar view
This commit is contained in:
@@ -406,14 +406,15 @@ UI / 浏览器可见项必须有真实浏览器截图或结构化 smoke 证据
|
||||
|
||||
| 文件 | 原大小 | 现大小 | 变化 |
|
||||
|------|--------|--------|------|
|
||||
| `lib.rs` | 9,873 行 | 8,189 行 | **-17%** |
|
||||
| `lib.rs` | 9,873 行 | 7,951 行 | **-19%** |
|
||||
| `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/table_toolbar_view.rs` | — | 371 行 | 新建 |
|
||||
| `editor_runtime/bridge_dispatch.rs` | — | 86 行 | 新建 |
|
||||
|
||||
### editor_runtime/ 最终模块清单(19 模块,另有 `mod.rs`)
|
||||
### editor_runtime/ 最终模块清单(20 模块,另有 `mod.rs`)
|
||||
|
||||
| 模块 | 说明 | 来源 |
|
||||
|------|------|------|
|
||||
@@ -436,6 +437,7 @@ UI / 浏览器可见项必须有真实浏览器截图或结构化 smoke 证据
|
||||
| `persistence.rs` | 持久化 | 5-28 P2 |
|
||||
| `slash_actions.rs` | slash 菜单 action 数据 | **本批新建** |
|
||||
| `table_commands.rs` | table toolbar / option 命令 | **本批新建** |
|
||||
| `table_toolbar_view.rs` | table controls / toolbar / options view | **本批新建** |
|
||||
|
||||
### 未完成(后续独立任务)
|
||||
|
||||
@@ -464,3 +466,8 @@ UI / 浏览器可见项必须有真实浏览器截图或结构化 smoke 证据
|
||||
- 将 `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 通过。
|
||||
- 2026-05-25:Codex 完成 `table_toolbar_view.rs` 第一刀。
|
||||
- 新增 `editor_runtime/table_toolbar_view.rs`,迁出 table controls、table toolbar 和 table options view;`lib.rs` 保留 signal 创建与单一调用点。
|
||||
- 边界:表格命令仍由 `table_commands.rs` 提供,持久化同步仍委托 `command_sync::sync_persisted_editor_command`,未修改 Tiptap table bridge 或保存语义。
|
||||
- 已验证:`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 -- --test-threads=1` 13/13、wasm release build、`wasm-bindgen`。
|
||||
- 浏览器验证:`task158-e30-menu-state-smoke.js` 受旧 Convex mutation `127.0.0.1:3210` 503 阻塞;已用 Playwright 在 `http://127.0.0.1:3000` 登录测试账号后直接设置表格 fixture,确认 table toolbar、options menu、row aux、col aux 均可见。
|
||||
|
||||
Reference in New Issue
Block a user