KQ-769 · APPROVAL/QUEUE
Approval Queue
A queue of actions an agent wants to take. Approving slides the head card out to the right on the exit ease while the next rises and expands to head on glide with a measured height; denying slides it out to the left and never bounces. Approve all runs the exits in a cascade stagger. Focus stays on the new head's Approve control across a decision, and each decision is announced once.
KQ-769 · APPROVAL/QUEUE
Fernworks Model 3 wants to4 waiting
- shellmedium risk
Run basin sync --ledger ledger.csv
Posts 42 entries to basinworks.example.
- 2fileWrite src/ledger/rates.tslow
- 3browserOpen basinworks.example/rateslow
- 4shellRemove the build/ cachehigh
4 to decide.
Waiting 4 · approved 0 · denied 0
Install
One command — the source lands in your repo. Or copy it from the Code tab.
$ pnpm dlx shadcn@latest add @kinetiq/approval-queue
Props
- items
- ApprovalItem[]
- default —
- Pending actions, head first; the host removes an item once decided.
- onDecide
- (id: string, decision: "approve" | "deny") => void
- default —
- Fires from Approve or Deny on the head.
- onApproveAll
- () => void
- default —
- Fires from Approve all.
- label
- string
- default —
- Names the queue.
- approveLabel
- string
- default "Approve"
- Copy on the approve control.
- denyLabel
- string
- default "Deny"
- Copy on the deny control.
| Prop | Type | Default | Description |
|---|---|---|---|
| items | ApprovalItem[] | — | Pending actions, head first; the host removes an item once decided. |
| onDecide | (id: string, decision: "approve" | "deny") => void | — | Fires from Approve or Deny on the head. |
| onApproveAll | () => void | — | Fires from Approve all. |
| label | string | — | Names the queue. |
| approveLabel | string | "Approve" | Copy on the approve control. |
| denyLabel | string | "Deny" | Copy on the deny control. |