docs: update design.md interaction flow for native Cell toolbar

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
tao.chen
2026-07-23 10:53:30 +08:00
co-authored by Claude Fable 5
parent 47a774f237
commit 2bac98d659
+1 -4
View File
@@ -42,10 +42,7 @@
## 🎨 2. 交互与UI流程设计
1. **悬浮 Toolbar(常驻)**:在每个 `CodeCell` 顶部渲染微型操作栏:
* `✨ 优化`:自动提炼代码规范与性能。
* `🐛 智能排错`:(**仅当 Cell 有 Error Output 时亮起**)自动抓取 Traceback 并修复。
* `🪄 智能编辑`:展开内嵌 Prompt 输入框。
1. **原生 Cell Toolbar 集成(2026-07-23 修正)**:不再自绘悬浮 toolbar。`✨ 优化` / `🐛 智能排错`**仅当 Cell 有 Error Output 时亮起**/ `🪄 智能编辑` 三个按钮通过 `IToolbarWidgetRegistry.addFactory('Cell', 'opencode-cell-actions', ...)` 注入 JupyterLab 原生 cell toolbar,显示在 **active cell 右上角**move up/down 按钮旁,`rank: 100` 排在 delete 右侧);仅 `CodeCell` 显示,随 active cell 切换移动。
2. **Inline Prompt 框(按需展开)**