diff --git a/package.json b/package.json index 7a65e66..ebd6f65 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "type": "git", "url": "https://github.com/litmuschaos/backstage-plugin.git" }, - "version": "1.0.0", + "version": "1.0.2", "main": "src/index.ts", "types": "src/index.ts", "license": "Apache-2.0", diff --git a/src/components/EntityLitmusCard/ExperimentRunStatsSection.tsx b/src/components/EntityLitmusCard/ExperimentRunStatsSection.tsx index 18e9696..15c8889 100644 --- a/src/components/EntityLitmusCard/ExperimentRunStatsSection.tsx +++ b/src/components/EntityLitmusCard/ExperimentRunStatsSection.tsx @@ -54,7 +54,7 @@ export const ExperimentRunStatsSection = ({ entity }: { entity: Entity }) => { const errored = value?.totalErroredExperimentRuns ?? 0; const stopped = value?.totalStoppedExperimentRuns ?? 0; const terminated = value?.totalTerminatedExperimentRuns?? 0; - + const others = total - (completed + running + errored + stopped + terminated); return ( @@ -94,6 +94,11 @@ export const ExperimentRunStatsSection = ({ entity }: { entity: Entity }) => { color: '#d9d9d9', label: 'Terminated', }, + { + value: others >= 0 ? others : 0, + color: '#f6832c', + label: 'Others', + }, ], }, ]} diff --git a/src/components/EntityLitmusContent/StatusHeatMap.tsx b/src/components/EntityLitmusContent/StatusHeatMap.tsx index f42979d..acf6a70 100644 --- a/src/components/EntityLitmusContent/StatusHeatMap.tsx +++ b/src/components/EntityLitmusContent/StatusHeatMap.tsx @@ -362,7 +362,7 @@ export function StatusHeatMap(props: StatusHeatMapProps): React.ReactElement { color="#D24433" display="inline" > - {execution.resiliencyScore.toString() + ' '} + {(execution.resiliencyScore ?? 0).toString() + ' '}