@@ -208,9 +228,9 @@ export function RiskAssessmentTable({ projectId, hazards, onReassess, decisions,
{/* Initial S/E/P/RPZ/Risk */}
- | {h.severity} |
- {h.exposure} |
- {h.probability} |
+ {initS} |
+ {initE} |
+ {initP} |
{initRpz} |
diff --git a/admin-compliance/app/sdk/iace/[projectId]/mitigations/page.tsx b/admin-compliance/app/sdk/iace/[projectId]/mitigations/page.tsx
index e657895..b88f2f2 100644
--- a/admin-compliance/app/sdk/iace/[projectId]/mitigations/page.tsx
+++ b/admin-compliance/app/sdk/iace/[projectId]/mitigations/page.tsx
@@ -27,6 +27,7 @@ export default function MitigationsPage() {
const [libraryFilter, setLibraryFilter] = useState()
const [showSuggest, setShowSuggest] = useState(false)
const [expanded, setExpanded] = useState>({ design: true, protection: true, information: true })
+ const [mitPages, setMitPages] = useState>({ design: 1, protection: 1, information: 1 })
const [selected, setSelected] = useState>(new Set())
const [batchAction, setBatchAction] = useState<'verify' | 'delete' | null>(null)
@@ -183,8 +184,8 @@ export default function MitigationsPage() {
Gefaehrdung
Status
- {/* Rows */}
- {items.map((m) => (
+ {/* Rows — paginated */}
+ {items.slice(0, (mitPages[type] || 1) * 50).map((m) => (
@@ -203,6 +204,12 @@ export default function MitigationsPage() {
))}
+ {items.length > (mitPages[type] || 1) * 50 && (
+
+ )}
)}
diff --git a/admin-compliance/app/sdk/iace/layout.tsx b/admin-compliance/app/sdk/iace/layout.tsx
index 13386d8..d14bff8 100644
--- a/admin-compliance/app/sdk/iace/layout.tsx
+++ b/admin-compliance/app/sdk/iace/layout.tsx
@@ -100,6 +100,15 @@ export default function IACELayout({ children }: { children: React.ReactNode })
const pathname = usePathname()
const params = useParams()
const projectId = params?.projectId as string | undefined
+ const [projectName, setProjectName] = React.useState('')
+
+ React.useEffect(() => {
+ if (!projectId) return
+ fetch(`/api/sdk/v1/iace/projects/${projectId}`)
+ .then(r => r.ok ? r.json() : null)
+ .then(d => { if (d?.machine_name) setProjectName(d.machine_name) })
+ .catch(() => {})
+ }, [projectId])
const basePath = projectId ? `/sdk/iace/${projectId}` : ''
@@ -127,9 +136,12 @@ export default function IACELayout({ children }: { children: React.ReactNode })
Alle Projekte
-
- CE-Compliance
-
+ {projectName && (
+
+ {projectName}
+
+ )}
+ CE-Compliance
|