OptionalapproveLabel for the approve button. Default: "Approve"
OptionalautoAutomatically capture a baseline snapshot on mount. Default: true
OptionalclassAdditional CSS class on the root element.
OptionalincludeInclude unchanged fields in the diff view. Default: false
OptionalonCalled when the user approves; the entity graph keeps the new state.
OptionalonCalled when the user rejects; the graph is rewound to the baseline.
OptionalrejectLabel for the reject/restore button. Default: "Reject & Restore"
OptionalrenderRender override for the action buttons.
OptionalrenderRender override for the diff section.
OptionaltitleTitle heading.
entity-approval.tsx — EntityApproval: human-in-the-loop review of agent changes.
Built on top of:
Flow:
autoCapture(default true) captures a baseline on mount.onApprove(diff)is called; graph keeps new state.onReject(diff)is called; graph is restored to baseline.Layering: Component → useEntityDiff hook → recordGraphSnapshot / restoreGraphSnapshot (store writes). No direct store access here.