ShtukbaseStandard
包文件→ .shtukbase/packages/lenses/kit/examples/scenarios.lens.md

kit/examples/scenarios.lens.md

35 行, 2.4 KB.

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