ShtukbaseStandard
package file→ .shtukbase/packages/lenses/kit/examples/scenarios.lens.md

kit/examples/scenarios.lens.md

35 lines, 2.4 KB.

  1. ---
  2. type: Lens
  3. title: Scenario map
  4. icon: "🎬"
  5. description: "All the product's scenarios by business function: which intent or automation they start from, what branches and shared subscenarios they have, where they lead next"
  6. template: lanes
  7. lane: {field: function, sort: order, other: "No function"}
  8. columns:
  9. - {id: entry, role: entry, title: Entry, hint: intents and automations, color: green, width: 220px,
  10. from: [/product/intents, /product/automations], attach: [intent, feeds], card: {sub: false, chips: []}}
  11. - {id: main, role: main, title: Main, hint: the main path to the goal, 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: Branches, hint: "from which step they branch off", 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: Shared subscenarios, hint: included in different scenarios, 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: intent, color: green}
  19. - {field: feeds, from: entry, to: main, label: feeds, color: orange}
  20. - {field: extends, from: branch, reverse: true, label: branch, color: purple}
  21. - {field: includes, to: sub, label: includes, color: gray, dash: true}
  22. - {field: leadsTo, from: main, to: main, label: leads on to, color: blue, off: true}
  23. - {field: needs, label: requires, color: red, dash: true, off: true}
  24. - {field: configuredIn, from: entry, label: configured in, color: brown, dash: true, off: true}
  25. filters: [actor, priority, status, level]
  26. ---
  27. Built from [scenarios](/product/scenarios.md), [intents](/product/intents.md) and [automations](/product/automations.md).
  28. A lane is the [business function](/business/functions.md) of the main scenario (the field `function`).
  29. In the row on the left is the entry: an intent (`intent`) or an automation that feeds the scenario (`feeds`).
  30. On the right are branches (`extends`) in the order of the steps they branch off from. Shared subscenarios (`includes`) are the column on the right.
  31. The arrows "leads on to", "requires" and "configured in" are hidden at first — turn them on in the side panel.
  32. The filters are there too: by role, priority and state.