Approvals and close
Document sign-off
DocumentSignoff
The sign-off line that ends a working paper: performed, reviewed, approved, each bound to the version signed. Open points go with the signature by default; a company can set blockOpenPoints to refuse a signature until they are closed. A later edit marks it, never withdraws it.
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 === "document-signoff",
)[0]
const result = await agent.act({
steps: [{
ref: entry.ref,
action: "assertSignable",
args: [],
}],
})
console.log(result.ok) // trueChecked: nothing stops a signature now.
Import from @booki-aui/react. For Booki's default styling, add import "@booki-aui/styles".