refactor(web): limit plugin UX changes to add and create flows
This commit is contained in:
1 parent
6200ffe8c7
commit
7d88fc9b2b
40 files changed
+163
-995
No files matched your search
@@ -3,8 +3,8 @@
|
||||
# After editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write docs/subsystems/slots.md
|
||||
/web-client-slots:
|
||||
en: 593f9ed34e925132
|
||||
zh: f82611667c858768
|
||||
en: 8d33b164230344fa
|
||||
zh: 13a930ab96280744
|
||||
/web-client-slots/declaration-and-lifecycle:
|
||||
en: f2d2c0d3b8f14ec7
|
||||
zh: 441ed13ff3f81d2a
|
||||
|
||||
@@ -8,7 +8,7 @@ This page documents slot ownership, component inputs, extension APIs, and the sh
|
||||
|
||||
`plugins.bundle.config` supplies bundle detail configuration, keyed by npm package name. `plugins.bundle.activation` renders optional guidance after user-requested enablement, with owner callbacks to dismiss or open that bundle’s details. `conversation.input.activity` supplies one action between the model selector and Send, with toolbar expansion released on unmount.
|
||||
|
||||
The plugin catalog declares `plugins.add.actions`, a root-scoped list for `MenuItemButton` rows after installation in the Add plugin menu. Its owner supplies `onDismiss()` to close the menu before starting an action. It also declares `plugins.bundle.usage`, a root-scoped keyed slot for usage guidance before component details. The latter dispatches the npm package name and supplies `{ pkg: PluginPackageRef }`; its occupant decides which actions apply to the bundle's installed and enabled state. Both follow the owning Plugins page declaration lifetime.
|
||||
The plugin catalog declares `plugins.add.actions`, a root-scoped list for `MenuItemButton` rows after installation in the Add plugin menu. Its owner supplies `onDismiss()` to close the menu before starting an action. The slot follows the owning Plugins page declaration lifetime.
|
||||
|
||||
## Declaration and lifecycle
|
||||
|
||||
@@ -137,8 +137,6 @@ root
|
||||
├─ main
|
||||
│ ├─ plugins.add.actions
|
||||
│ ├─ plugins.item
|
||||
│ ├─ plugins.bundle.activation
|
||||
│ ├─ plugins.bundle.usage
|
||||
│ ├─ plugins.bundle.config
|
||||
│ ├─ plugins.row.config
|
||||
│ ├─ plugins.detail.actions
|
||||
|
||||
@@ -8,7 +8,7 @@ Slots 是 Web Client 的类型化 React 组合系统。[`dsh-client-ui-slots`](.
|
||||
|
||||
`plugins.bundle.config` 以 npm 包名为 key,提供 Bundle 详情配置。`plugins.bundle.activation` 在用户显式启用后渲染可选引导,由拥有者提供关闭引导和打开该 Bundle 详情的回调。`conversation.input.activity` 提供模型选择器与发送按钮之间的单个活动控件,可展开工具栏并在卸载时释放展开状态。
|
||||
|
||||
插件目录声明 `plugins.add.actions`,它是 root 作用域的 list,在添加插件菜单的安装项之后提供 `MenuItemButton` 行。owner 提供 `onDismiss()`,用于开始动作前关闭菜单。同时声明 `plugins.bundle.usage`,它是 root 作用域的 keyed slot,在组件详情之前提供使用指引。后者以 npm 包名分派,并传入 `{ pkg: PluginPackageRef }`;占用者根据组合包的安装和启用状态决定适用动作。两者均遵循所属插件页面声明的生命周期。
|
||||
插件目录声明 `plugins.add.actions`,它是 root 作用域的 list,在添加插件菜单的安装项之后提供 `MenuItemButton` 行。owner 提供 `onDismiss()`,用于开始动作前关闭菜单。该 slot 遵循所属插件页面声明的生命周期。
|
||||
|
||||
## 声明与生命周期
|
||||
|
||||
@@ -137,8 +137,6 @@ root
|
||||
├─ main
|
||||
│ ├─ plugins.add.actions
|
||||
│ ├─ plugins.item
|
||||
│ ├─ plugins.bundle.activation
|
||||
│ ├─ plugins.bundle.usage
|
||||
│ ├─ plugins.bundle.config
|
||||
│ ├─ plugins.row.config
|
||||
│ ├─ plugins.detail.actions
|
||||
|
||||
Reference in new issue
Block a user