package file→ .shtukbase/packages/lenses/kit/examples/scenarios.lens.md
kit/examples/scenarios.lens.md
35 lines, 2.4 KB.
- ---
- type: Lens
- title: Scenario map
- icon: "🎬"
- 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"
- template: lanes
- lane: {field: function, sort: order, other: "No function"}
- columns:
- - {id: entry, role: entry, title: Entry, hint: intents and automations, color: green, width: 220px,
- from: [/product/intents, /product/automations], attach: [intent, feeds], card: {sub: false, chips: []}}
- - {id: main, role: main, title: Main, hint: the main path to the goal, color: blue, width: 290px,
- from: /product/scenarios, where: {level: main}, sort: priority, card: {sub: actor, chips: [priority, status]}}
- - {id: branch, role: child, title: Branches, hint: "from which step they branch off", color: purple, width: 270px,
- from: /product/scenarios, where: {level: branch}, parent: extends, sortBy: extendsAt, card: {sub: extendsAt, chips: [status]}}
- side: {id: sub, title: Shared subscenarios, hint: included in different scenarios, 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: intent, color: green}
- - {field: feeds, from: entry, to: main, label: feeds, color: orange}
- - {field: extends, from: branch, reverse: true, label: branch, color: purple}
- - {field: includes, to: sub, label: includes, color: gray, dash: true}
- - {field: leadsTo, from: main, to: main, label: leads on to, color: blue, off: true}
- - {field: needs, label: requires, color: red, dash: true, off: true}
- - {field: configuredIn, from: entry, label: configured in, color: brown, dash: true, off: true}
- filters: [actor, priority, status, level]
- ---
- Built from [scenarios](/product/scenarios.md), [intents](/product/intents.md) and [automations](/product/automations.md).
- A lane is the [business function](/business/functions.md) of the main scenario (the field `function`).
- In the row on the left is the entry: an intent (`intent`) or an automation that feeds the scenario (`feeds`).
- 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.
- The arrows "leads on to", "requires" and "configured in" are hidden at first — turn them on in the side panel.
- The filters are there too: by role, priority and state.