Add approval template revision administration

This commit is contained in:
2026-08-04 01:04:39 +02:00
parent 3abbe117e5
commit 7f64247625
15 changed files with 833 additions and 36 deletions
+13
View File
@@ -25,6 +25,19 @@ This module does not own:
Detailed boundary notes are in [docs/APPROVALS_DOMAIN_BOUNDARY.md](docs/APPROVALS_DOMAIN_BOUNDARY.md).
Tenant approval administrators manage reusable chains under
`Admin > Tenant > Approval templates`. Template edits and publication create
immutable revisions with content hashes and actor provenance. The history API
and UI compare any two revisions as structured JSON-pointer changes. The
request workspace also exposes due-step escalation to approval administrators;
the server rechecks the due timestamp and request revision before recording the
transition.
Template API additions:
- `GET /api/v1/approvals/templates/{template_id}/history`
- `GET /api/v1/approvals/templates/{template_id}/compare`
## Integrations
Optional integrations: