Skip to content

Commit 3fa9be7

Browse files
committed
NAIS -> Nais. Remove please, please. Job run failed warning on job page
1 parent 7579cec commit 3fa9be7

File tree

24 files changed

+141
-98
lines changed

24 files changed

+141
-98
lines changed

charts/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: console-frontend
3-
description: Frontend for NAIS console
3+
description: Frontend for Nais console
44
type: application
55
version: 2024-02-13-104003-46227aa
66
sources:

package-lock.json

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

src/lib/AppErrorTypeToMessage.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
<Alert variant={variant($data.level)}>
122122
<h4>Missing SBOM</h4>
123123
The workload does not have a registered Software Bill of Materials (SBOM). Refer to the
124-
<a href={docURL('/services/vulnerabilities/how-to/sbom/')}>NAIS documentation</a>
124+
<a href={docURL('/services/vulnerabilities/how-to/sbom/')}>Nais documentation</a>
125125
for instructions on how to resolve this.
126126
</Alert>
127127
{:else if type === 'WorkloadStatusVulnerable'}

src/lib/JobErrorTypeToMessage.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
<Alert variant={variant($data.level)}>
9595
<h4>Missing SBOM</h4>
9696
The workload does not have a registered Software Bill of Materials (SBOM). Refer to the
97-
<a href={docURL('/services/vulnerabilities/how-to/sbom/')}>NAIS documentation</a>
97+
<a href={docURL('/services/vulnerabilities/how-to/sbom/')}>Nais documentation</a>
9898
for instructions on how to resolve this.
9999
</Alert>
100100
{:else if type === 'WorkloadStatusVulnerable'}

src/lib/components/Image.svelte

+2-3
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,8 @@
6363
{#if !image.hasSBOM && image.vulnerabilitySummary !== null}
6464
<BodyShort>
6565
<WarningIcon class="text-aligned-icon" /> Data was discovered, but the SBOM was not rendered.
66-
Please refer to the <Link href={docURL('/services/vulnerabilities/')}
67-
>NAIS documentation</Link
68-
> for further assistance.
66+
Refer to the <Link href={docURL('/services/vulnerabilities/')}>Nais documentation</Link> for
67+
further assistance.
6968
</BodyShort>
7069
{:else if image.vulnerabilitySummary === null}
7170
<BodyShort>

src/lib/components/image/SuppressFinding.svelte

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@
9797
errormessage = '';
9898
9999
if (selectedReason === '') {
100-
errormessage += 'Please select a suppress reason from the Analysis dropdown.';
100+
errormessage += 'Select a suppress reason from the Analysis dropdown.';
101101
return;
102102
}
103103
104104
if (inputText === '') {
105-
errormessage += 'Please provide a comment before suppressing the finding. ';
105+
errormessage += 'Provide a comment before suppressing the finding. ';
106106
return;
107107
}
108108
@@ -232,8 +232,8 @@
232232
</Alert>
233233
{/if}
234234
<p>
235-
Please provide a reason for suppressing this finding. This will be recorded in the analysis
236-
audit log. Suppression will be in effect for all workloads using this image.
235+
Provide a reason for suppressing this finding. This will be recorded in the analysis audit
236+
log. Suppression will be in effect for all workloads using this image.
237237
</p>
238238
<Select size="small" label="Analysis" bind:value={selectedReason}>
239239
{#each SUPPRESS_OPTIONS as option (option)}

src/lib/feedback/Feedback.svelte

+3-5
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
{:else}
8585
<p>
8686
Help us improve Console! We value your input. Feedback will be associated with your logged-in
87-
email address. To provide feedback anonymously, please check the box below.
87+
email address. To provide feedback anonymously, check the box below.
8888
</p>
8989
<div class="wrapper">
9090
<Select size="small" label="Type" bind:value={type}>
@@ -93,9 +93,7 @@
9393
{/each}
9494
</Select>
9595
{#if errorType}
96-
<p class="navds-error-message navds-label navds-label--small">
97-
Please provide type of feedback
98-
</p>
96+
<p class="navds-error-message navds-label navds-label--small">Feedback type required</p>
9997
{/if}
10098

10199
<label class="navds-form-field__label navds-label navds-label--small" for="details">
@@ -125,7 +123,7 @@
125123
>
126124
{#if errorDetails}
127125
<p class="navds-error-message navds-label navds-label--small">
128-
Please provide feedback details
126+
Feedback details required
129127
</p>
130128
{/if}
131129
</div>

src/routes/Login.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{@const error = $page.url.searchParams.get('error')}
3030
<Alert variant="error">
3131
{#if error == 'unknown-user'}
32-
Error during login. The user is not known in the system.<br />
32+
Error during login: Unknown user.<br />
3333
Please contact the system administrator.
3434
{:else}
3535
<!-- "unable-to-create-session", "invalid-state", and "unauthenticated" are known. -->

src/routes/admin/reconcilers/Reconciler.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
{#if $r.errors.pageInfo.totalCount}
133133
<span class="reconciler-error">
134134
Reconciler has {$r.errors.pageInfo.totalCount} errors. Please consult the
135-
<a href="/admin/reconcilerLogs/{$r.id}">logs</a>.
135+
<a href="/admin/reconcilerLogs/{$r.id}">logs</a> 🙏
136136
</span>
137137
{/if}
138138
<p>{$r.description}</p>

src/routes/dataproduct/errors/+page.gql

+14-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ query AllIngresses {
22
teams(first: 500) {
33
nodes {
44
slug
5-
workloads(first: 1000) {
5+
workloads(first: 500) {
66
nodes {
77
__typename
88
id
@@ -29,6 +29,19 @@ query AllIngresses {
2929
}
3030
}
3131

32+
... on Job {
33+
runs {
34+
nodes {
35+
id
36+
name
37+
status {
38+
state
39+
message
40+
}
41+
}
42+
}
43+
}
44+
3245
status {
3346
errors {
3447
level

src/routes/dataproduct/errors/+page.svelte

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
{JSON.stringify(instance.status, null, 2)}
3939
{/if}
4040
{/each}
41+
{:else if workload.__typename === 'Job'}
42+
{#each workload.runs.nodes as run (run.id)}
43+
{#if run.status.state !== 'SUCCEEDED'}
44+
{JSON.stringify(run.status, null, 2)}
45+
{/if}
46+
{/each}
4147
{/if}
4248
</div>
4349
{/each}

0 commit comments

Comments
 (0)