Commit dd3050c
committed
feat(approvals): declare file attachments on approve/reject decisions
Add an optional multi-file `attachments` param to the declared
`approval_approve` / `approval_reject` actions on sys_approval_request. The
console now renders `type:'file'` action params through the shared upload
widget (objectui ADR-0059) and POSTs the resolved `attachments: string[]`, so
a reviewer can attach supporting files to a decision through the generic
declared-action dialog — no bespoke composer.
No service/route change: the decision route already forwards `body.attachments`
to `ApprovalService.decide`, and the `sys_approval_action.attachments` column
(file, multiple) already persists them (#3266/#3274). This just surfaces the
capability as declared metadata so the approvals inbox can retire its
hand-wired attachment composer (objectui#2698).
Contract test pins the new param (type file, multiple, optional).
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ypkQikZ55oWUHUnMebwXA1 parent 16ebe1a commit dd3050c
2 files changed
Lines changed: 13 additions & 0 deletions
File tree
- packages/plugins/plugin-approvals/src
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
94 | 102 | | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
251 | 255 | | |
252 | 256 | | |
253 | 257 | | |
| |||
263 | 267 | | |
264 | 268 | | |
265 | 269 | | |
| 270 | + | |
266 | 271 | | |
267 | 272 | | |
268 | 273 | | |
| |||
0 commit comments