包文件→ .shtukbase/packages/lenses/kit/examples/scenarios.lens.md
kit/examples/scenarios.lens.md
35 行, 2.4 KB.
- ---
- type: Lens
- title: 场景地图
- icon: "🎬"
- description: "按业务职能划分的全部产品场景:它们从哪个意图或自动化开始,有哪些分支和共享子场景,接下来通向哪里"
- template: lanes
- lane: {field: function, sort: order, other: "无职能"}
- columns:
- - {id: entry, role: entry, title: 入口, hint: 意图与自动化, color: green, width: 220px,
- from: [/product/intents, /product/automations], attach: [intent, feeds], card: {sub: false, chips: []}}
- - {id: main, role: main, title: 主线, hint: 通向目标的主路径, color: blue, width: 290px,
- from: /product/scenarios, where: {level: main}, sort: priority, card: {sub: actor, chips: [priority, status]}}
- - {id: branch, role: child, title: 分支, hint: "从哪一步分出", color: purple, width: 270px,
- from: /product/scenarios, where: {level: branch}, parent: extends, sortBy: extendsAt, card: {sub: extendsAt, chips: [status]}}
- side: {id: sub, title: 共享子场景, hint: 被不同场景包含, color: gray, width: 250px,
- from: /product/scenarios, where: {level: sub}, near: [includes], card: {sub: actor, chips: [status]}}
- edges:
- - {field: intent, from: main, to: entry, reverse: true, label: 意图, color: green}
- - {field: feeds, from: entry, to: main, label: 输入, color: orange}
- - {field: extends, from: branch, reverse: true, label: 分支, color: purple}
- - {field: includes, to: sub, label: 包含, color: gray, dash: true}
- - {field: leadsTo, from: main, to: main, label: 接下来通向, color: blue, off: true}
- - {field: needs, label: 需要, color: red, dash: true, off: true}
- - {field: configuredIn, from: entry, label: 配置于, color: brown, dash: true, off: true}
- filters: [actor, priority, status, level]
- ---
- 由[场景](/product/scenarios.md)、[意图](/product/intents.md)和[自动化](/product/automations.md)构建。
- 每条泳道是主场景的[业务职能](/business/functions.md)(字段 `function`)。
- 左侧一行是入口:为场景提供输入的意图(`intent`)或自动化(`feeds`)。
- 右侧是分支(`extends`),按其分出的步骤顺序排列。共享子场景(`includes`)位于最右侧的一列。
- 箭头“接下来通向”“需要”和“配置于”起初是隐藏的——在侧边面板中开启它们。
- 筛选器也在那里:按角色、优先级和状态筛选。