Display skipped steps
Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
@@ -172,6 +172,8 @@ export const TaskStatusStepper = memo(
|
||||
const isCompleted = step.status === 'completed';
|
||||
const isFailed = step.status === 'failed';
|
||||
const isActive = step.status === 'processing';
|
||||
const isSkipped = step.status === 'skipped';
|
||||
|
||||
return (
|
||||
<Step key={String(index)} expanded>
|
||||
<StepButton onClick={() => onUserStepChange(step.id)}>
|
||||
@@ -186,7 +188,11 @@ export const TaskStatusStepper = memo(
|
||||
>
|
||||
<div className={classes.labelWrapper}>
|
||||
<Typography variant="subtitle2">{step.name}</Typography>
|
||||
<StepTimeTicker step={step} />
|
||||
{isSkipped ? (
|
||||
<Typography variant="caption">Skipped</Typography>
|
||||
) : (
|
||||
<StepTimeTicker step={step} />
|
||||
)}
|
||||
</div>
|
||||
</StepLabel>
|
||||
</StepButton>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
import { JSONSchema } from '@backstage/catalog-model';
|
||||
import { JsonValue } from '@backstage/config';
|
||||
|
||||
export type Status = 'open' | 'processing' | 'failed' | 'completed';
|
||||
export type Status = 'open' | 'processing' | 'failed' | 'completed' | 'skipped';
|
||||
export type JobStatus = 'PENDING' | 'STARTED' | 'COMPLETED' | 'FAILED';
|
||||
export type Job = {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user