in libs/designer-ui/src/lib/utils/utils.ts [285:372]
export function getStatusString(status: string | undefined, hasRetries: boolean): string {
const intl = getIntl();
switch (status) {
case Constants.STATUS.ABORTED:
return intl.formatMessage({
defaultMessage: 'Aborted',
id: 'x7IYBg',
description: 'The status message to show in monitoring view.',
});
case Constants.STATUS.CANCELLED:
return intl.formatMessage({
defaultMessage: 'Cancelled',
id: 'aYTy7X',
description: 'The status message to show in monitoring view.',
});
case Constants.STATUS.FAILED:
return intl.formatMessage({
defaultMessage: 'Failed',
id: 'J62n9E',
description: 'The status message to show in monitoring view.',
});
case Constants.STATUS.FAULTED:
return intl.formatMessage({
defaultMessage: 'Faulted',
id: '+FcXe9',
description: 'The status message to show in monitoring view.',
});
case Constants.STATUS.IGNORED:
return intl.formatMessage({
defaultMessage: 'Ignored',
id: 'KnjcUV',
description: 'The status message to show in monitoring view.',
});
case Constants.STATUS.SKIPPED:
return intl.formatMessage({
defaultMessage: 'Skipped',
id: 'nHIeXp',
description: 'The status message to show in monitoring view.',
});
case Constants.STATUS.SUCCEEDED:
return hasRetries
? intl.formatMessage({
defaultMessage: 'Succeeded with retries',
id: '+M7bC6',
description:
'The status message to show succeeeded retries in monitoring view.. This refers to the succeeded status of a previous action.',
})
: intl.formatMessage({
defaultMessage: 'Succeeded',
id: 'WbIGAh',
description: 'The status message to show succeeded in monitoring view.',
});
case Constants.STATUS.TIMEDOUT:
return intl.formatMessage({
defaultMessage: 'Timed out',
id: 'eofB85',
description: 'The status message to show timed out in monitoring view.',
});
case Constants.STATUS.WAITING:
return intl.formatMessage({
defaultMessage: 'Waiting',
id: '7X4UA/',
description: 'The status message to show waiting in monitoring view.',
});
case Constants.STATUS.RUNNING:
return intl.formatMessage({
defaultMessage: 'Running',
id: '9dd0/m',
description: 'The status message to show running in monitoring view.',
});
case Constants.STATUS.NOT_SPECIFIED:
default:
return intl.formatMessage({
defaultMessage: 'Not specified',
id: 'LBlM+D',
description: 'The status message to show not specified in monitoring view.',
});
}
}