Sales
Deal pipeline
DealPipeline
A sales board: deals in stages, each stage's totals per currency and a weighted forecast. An agent moves, values and assigns deals; a value without a source is shown, never summed; won and lost are a person's.
The person sees
Loading preview…
booki_version=$(npm view @booki-aui/react@latest version) &&
ui_sdk_version=$(npm view "@booki-aui/react@$booki_version" peerDependencies.@ui-sdk/core) &&
pnpm add --save-exact "@booki-aui/core@$booki_version" "@booki-aui/react@$booki_version" "@booki-aui/styles@$booki_version" \
"@ui-sdk/core@$ui_sdk_version" "@ui-sdk/react@$ui_sdk_version"Try the bridge
Open this page in a browser and run the example in the console with a fresh preview. Read the current ref from the snapshot before acting.
const { agent } = window
const entry = agent.snapshot().filter(
(entry) => !entry.offPage && entry.component === "deal-pipeline",
)[0]
const result = await agent.act({
steps: [{
ref: entry.ref,
action: "setValue",
args: ["D-2",{"valueStatus":"estimate","valueSource":"Samtale 18. nov."}],
}],
})
console.log(result.ok) // trueGave D-2's amount a source, so it counts.
Import from @booki-aui/react. For Booki's default styling, add import "@booki-aui/styles".