fix(iace): lifecycle labels in benchmark + store all phases

- Store ALL applicable lifecycles (comma-separated) not just first
- Frontend maps internal keys to German labels (normal_operation ->
  Automatikbetrieb, maintenance -> Wartung, etc.)
- Show Betroffene Personen in engine detail column

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-05-14 23:17:27 +02:00
parent 98e5b1a8aa
commit 29fbd03c79
2 changed files with 19 additions and 6 deletions
@@ -3,6 +3,7 @@ package handlers
import (
"fmt"
"net/http"
"strings"
"github.com/breakpilot/ai-compliance-sdk/internal/iace"
"github.com/gin-gonic/gin"
@@ -204,11 +205,8 @@ func (h *IACEHandler) InitializeProject(c *gin.Context) {
}
}
// Join applicable lifecycles for the LifecyclePhase field
lifecycleStr := ""
if len(mp.ApplicableLifecycles) > 0 {
lifecycleStr = mp.ApplicableLifecycles[0]
}
// Join all applicable lifecycles as comma-separated string
lifecycleStr := strings.Join(mp.ApplicableLifecycles, ",")
hz, cerr := h.store.CreateHazard(ctx, iace.CreateHazardRequest{
ProjectID: projectID,