Skip to content

Commit 03251e4

Browse files
committed
refactor: update vulnerability report links and messages for clarity
1 parent 8b745fc commit 03251e4

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

src/lib/components/Image.svelte

+3-5
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,8 @@
6868
</BodyShort>
6969
{:else if image.vulnerabilitySummary === null}
7070
<BodyShort>
71-
<WarningIcon class="text-aligned-icon" /> No data found. <Link
72-
href={docURL('/services/vulnerabilities/how-to/sbom/')}
73-
target="_blank">How to fix</Link
74-
>
71+
<WarningIcon class="text-aligned-icon" /> No data found.
72+
<a href={docURL('/services/vulnerabilities/how-to/sbom/')} target="_blank">How to fix</a>
7573
</BodyShort>
7674
{:else if image.hasSBOM && image.vulnerabilitySummary && hasFindings}
7775
<VulnerabilityBadges summary={image.vulnerabilitySummary} />
@@ -81,7 +79,7 @@
8179
</BodyShort>
8280
{/if}
8381

84-
<Link href={imageDetailsUrl}>View image details</Link>
82+
<Link href={imageDetailsUrl}>View vulnerability report</Link>
8583
</div>
8684
{/if}
8785

src/routes/team/[team]/[env]/app/[app]/vulnerability-report/+page.svelte

+3-4
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,12 @@
7171
{#if image.vulnerabilitySummary}
7272
<VulnerabilityBadges summary={image.vulnerabilitySummary} />
7373
{:else if !image.hasSBOM && image.vulnerabilitySummary !== null}
74-
<WarningIcon class="text-aligned-icon" />
75-
Data was discovered, but the SBOM was not rendered. Refer to the
74+
<WarningIcon class="text-aligned-icon" /> Data was discovered, but the SBOM was not rendered.
75+
Refer to the
7676
<a href={docURL('/services/vulnerabilities/')}>Nais documentation</a>
7777
for further assistance.
7878
{:else}
79-
<WarningIcon class="text-aligned-icon" />
80-
No data found.
79+
<WarningIcon class="text-aligned-icon" /> No data found.
8180
<a href={docURL('/services/vulnerabilities/how-to/sbom/')}> How to fix</a>
8281
{/if}
8382
</div>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
href="/team/{teamSlug}/{workload.teamEnvironment.environment
7070
.name}/{workload.__typename === 'Job'
7171
? 'job'
72-
: 'app'}/{workload.name}/vulnerability-report">Go to image details</a
72+
: 'app'}/{workload.name}/vulnerability-report">View vulnerability report</a
7373
>
7474
</li>
7575
{/each}

0 commit comments

Comments
 (0)