Commit e412fb6
feat(approvals): declare file attachments on approve/reject decisions (#3332)
* 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_016ypkQikZ55oWUHUnMebwXA
* chore(changeset): plugin-approvals decision attachments
Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016ypkQikZ55oWUHUnMebwXA
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent e32bec7 commit e412fb6
3 files changed
Lines changed: 31 additions & 0 deletions
File tree
- .changeset
- packages/plugins/plugin-approvals/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
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