Skip to content

Commit

Permalink
NAS-131146: Crashed state for apps (#10669)
Browse files Browse the repository at this point in the history
  • Loading branch information
undsoft authored Sep 16, 2024
1 parent 08d3323 commit 44a727c
Show file tree
Hide file tree
Showing 92 changed files with 98 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/app/enums/app-state.enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ export enum AppState {
Running = 'RUNNING',
Deploying = 'DEPLOYING',
Stopped = 'STOPPED',
Crashed = 'CRASHED',
}

export const appStateIcons = new Map<AppState, string>([
[AppState.Running, 'mdi-check-circle'],
[AppState.Deploying, 'mdi-progress-wrench'],
[AppState.Stopped, 'mdi-stop-circle'],
[AppState.Crashed, 'mdi-alert-circle'],
]);

export const appStateLabels = new Map<AppState, string>([
[AppState.Running, T('Running')],
[AppState.Deploying, T('Deploying')],
[AppState.Stopped, T('Stopped')],
[AppState.Crashed, T('Crashed')],
]);
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export class AppRowComponent {
protected readonly requiredRoles = [Role.AppsWrite];

readonly hasUpdates = computed(() => this.app().upgrade_available);
readonly isAppStopped = computed(() => this.app().state === AppState.Stopped);
readonly isAppStopped = computed(() => {
return this.app().state === AppState.Stopped || this.app().state === AppState.Crashed;
});
readonly hasStats = computed(() => {
return this.app().state === AppState.Running && this.stats();
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@if(showIcon()) {
@if (showIcon()) {
<ix-icon [name]="state() | mapValue: stateIcons"></ix-icon>
}
<span [matTooltip]="job()?.progress?.description">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
}
}

&.stopped {
&.stopped,
&.crashed {
border-color: var(--red);
color: var(--red);
}
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/af.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/ast.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/az.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/be.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/bn.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/br.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/bs.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -918,6 +918,7 @@
"Copy and Paste": "",
"Copy to Clipboard": "",
"Cores": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/cy.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@
"Copies": "",
"Copy Json": "",
"Copy to Clipboard": "",
"Crashed": "",
"Create ACME DNS-Authenticator": "",
"Create Alert": "",
"Create Backup Credential": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/dsb.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/el.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/en-au.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/en-gb.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/eo.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/es-ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@
"Copies": "",
"Copy Json": "",
"Copy Text": "",
"Crashed": "",
"Create": "",
"Create ACME DNS-Authenticator": "",
"Create Alert": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/es-co.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/es-mx.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/es-ni.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/es-ve.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -887,6 +887,7 @@
"Copy Text": "",
"Copy URL": "",
"Copy to Clipboard": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/et.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/eu.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/fa.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/fi.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
3 changes: 2 additions & 1 deletion src/assets/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@
"Controller Type": "",
"Cooling": "",
"Copies": "",
"Crashed": "",
"Create Exporter": "",
"Create Kerberos Keytab": "",
"Create Kerberos Realm": "",
Expand Down Expand Up @@ -5085,4 +5086,4 @@
"{used} of {total} ({used_pct})": "{used} de {total} ({used_pct})",
"{version} is available!": "{version} est disponible !",
"{view} on {enclosure}": "{view} sur {enclosure}"
}
}
1 change: 1 addition & 0 deletions src/assets/i18n/fy.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/ga.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"Container ID": "",
"Container Logs": "",
"Container Shell": "",
"Crashed": "",
"Creating custom app": "",
"Credentials have been successfully added.": "",
"Custom Config": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/gd.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/gl.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/hr.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/hsb.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/ia.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/id.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
1 change: 1 addition & 0 deletions src/assets/i18n/io.json
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@
"Copy to Clipboard": "",
"Cores": "",
"Country": "",
"Crashed": "",
"Create": "",
"Create ACME Certificate": "",
"Create ACME DNS-Authenticator": "",
Expand Down
Loading

0 comments on commit 44a727c

Please sign in to comment.