diff --git a/admin-compliance/app/sdk/cra/_components/DatasheetExtract.tsx b/admin-compliance/app/sdk/cra/_components/DatasheetExtract.tsx index c7c54cad..6bbccd28 100644 --- a/admin-compliance/app/sdk/cra/_components/DatasheetExtract.tsx +++ b/admin-compliance/app/sdk/cra/_components/DatasheetExtract.tsx @@ -76,7 +76,15 @@ export function DatasheetExtract() { method: 'PUT', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ metadata: { limits_form: limits } }), }) - router.push(`/sdk/iace/${pid}/interview`) + // Auto-derive: IACE reads the limits_form as narrative → components → + // hazards → measures → norms. Idempotent + best-effort; can be (re-)run + // in the IACE module. The interview limits stay fully editable. + try { + await fetch(`/api/sdk/v1/iace/projects/${pid}/initialize`, { + method: 'POST', headers: { 'Content-Type': 'application/json' }, + }) + } catch { /* idempotent — re-runnable in IACE */ } + router.push(`/sdk/iace/${pid}`) } finally { setCreating(false) } } @@ -168,16 +176,17 @@ export function DatasheetExtract() {
- Aus den Grenzen leitet IACE anschließend Gefährdungen und Maßnahmen ab (Entwurf — Bestätigung mit Sicherheitsingenieur). + Entwurf zur Bestätigung mit Sicherheitsingenieur; im IACE-Interview kann jedes Feld geändert und die + Ableitung neu ausgelöst werden.
)}