From b342c30ee329fe10700cecfff87f7483b9c870f3 Mon Sep 17 00:00:00 2001 From: Angelika Schneider Date: Wed, 8 Jan 2025 11:22:59 +0100 Subject: [PATCH] Fix assessment result view and add ML icon (#225) * Add env variables subsection * Ensure targets is always an array to prevent TypeError * Add icon for machine learning * update icon ml * Fix assessment result details window * ++ --- src/lib/components/DiscoveryGraph.svelte | 1 + .../(app)/cloud/[id]/assessments/+page.svelte | 42 +++++++++++++++---- 2 files changed, 34 insertions(+), 9 deletions(-) diff --git a/src/lib/components/DiscoveryGraph.svelte b/src/lib/components/DiscoveryGraph.svelte index a687aca..35ce661 100644 --- a/src/lib/components/DiscoveryGraph.svelte +++ b/src/lib/components/DiscoveryGraph.svelte @@ -7,6 +7,7 @@ import { Beaker, BuildingLibrary, + ChartPie, CircleStack, Cloud, CodeBracket, diff --git a/src/routes/(app)/cloud/[id]/assessments/+page.svelte b/src/routes/(app)/cloud/[id]/assessments/+page.svelte index a3c35e2..39e1f75 100644 --- a/src/routes/(app)/cloud/[id]/assessments/+page.svelte +++ b/src/routes/(app)/cloud/[id]/assessments/+page.svelte @@ -70,6 +70,34 @@ } + + {#if data.resources.length == 0} Clouditor Assessment component @@ -130,15 +158,11 @@ {#each currentData as assessment} {#if showModalId == assessment.id} -
-
-
{JSON.stringify(
-													assessment,
-													null,
-													5
-												)}
+