Skip to content

Commit 2d27ecd

Browse files
committed
feat: enhance RiskStack component and add SBOM status message
1 parent dac3423 commit 2d27ecd

File tree

3 files changed

+84
-77
lines changed

3 files changed

+84
-77
lines changed

package-lock.json

+75-75
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/components/RiskStack.svelte

+4-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@
6565
{#if scores[level as keyof typeof scores] > 0}
6666
<div class="label-item">
6767
<span class="label-dot {level}"></span>
68-
{capitalizeFirstLetter(level)}: {summary[level as keyof typeof summary]}
68+
{capitalizeFirstLetter(level)}: {summary[
69+
level as keyof typeof summary
70+
]}&NonBreakingSpace;(x5)
6971
</div>
7072
{/if}
7173
{/each}
@@ -112,6 +114,7 @@
112114
.label-item {
113115
display: flex;
114116
align-items: center;
117+
115118
font-size: 0.9rem;
116119
}
117120

src/routes/team/[team]/+page.svelte

+5-1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@
9797
</ul>
9898
</BodyShort>
9999
{/if}
100+
101+
{#if workloadsVulnerable?.length === 0 && workloadWithoutSbom?.length === 0}
102+
<BodyShort>All workloads have a registered SBOM and an acceptable risk score.</BodyShort>
103+
{/if}
100104
<!--{#if $TeamOverview.data?.team.workloads.edges}
101105
{#each $TeamOverview.data.team.workloads.edges as workload (workload.node.id)}
102106
{#if workload.node.status.errors.length > 0}
@@ -190,7 +194,7 @@
190194
}
191195
.two-columns {
192196
display: grid;
193-
grid-template-columns: 200px 1fr;
197+
grid-template-columns: 270px 1fr;
194198
gap: var(--spacing-layout);
195199
}
196200
/*.workloads-grid {

0 commit comments

Comments
 (0)