mirror of
https://github.com/Unleash/unleash.git
synced 2025-11-24 20:06:55 +01:00
feat: add paused state to release plan milestone progression (#10983)
This commit is contained in:
parent
ca61906e3c
commit
218f0fcdef
@ -1,4 +1,5 @@
|
|||||||
import Add from '@mui/icons-material/Add';
|
import Add from '@mui/icons-material/Add';
|
||||||
|
import WarningAmber from '@mui/icons-material/WarningAmber';
|
||||||
import { Badge } from 'component/common/Badge/Badge';
|
import { Badge } from 'component/common/Badge/Badge';
|
||||||
import type { IReleasePlanMilestone } from 'interfaces/releasePlans';
|
import type { IReleasePlanMilestone } from 'interfaces/releasePlans';
|
||||||
import type { ChangeMilestoneProgressionSchema } from 'openapi';
|
import type { ChangeMilestoneProgressionSchema } from 'openapi';
|
||||||
@ -53,11 +54,16 @@ export const MilestoneAutomation = ({
|
|||||||
pendingProgressionChange?.action === 'changeMilestoneProgression';
|
pendingProgressionChange?.action === 'changeMilestoneProgression';
|
||||||
const hasPendingDelete =
|
const hasPendingDelete =
|
||||||
pendingProgressionChange?.action === 'deleteMilestoneProgression';
|
pendingProgressionChange?.action === 'deleteMilestoneProgression';
|
||||||
|
const isPaused = Boolean(milestone.pausedAt);
|
||||||
|
|
||||||
const badge = hasPendingDelete ? (
|
const badge = hasPendingDelete ? (
|
||||||
<Badge color='error'>Deleted in draft</Badge>
|
<Badge color='error'>Deleted in draft</Badge>
|
||||||
) : hasPendingChange ? (
|
) : hasPendingChange ? (
|
||||||
<Badge color='warning'>Modified in draft</Badge>
|
<Badge color='warning'>Modified in draft</Badge>
|
||||||
|
) : isPaused ? (
|
||||||
|
<Badge color='error' icon={<WarningAmber fontSize='small' />}>
|
||||||
|
Paused
|
||||||
|
</Badge>
|
||||||
) : undefined;
|
) : undefined;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -52,6 +52,7 @@ export interface IReleasePlanMilestone {
|
|||||||
releasePlanDefinitionId: string;
|
releasePlanDefinitionId: string;
|
||||||
strategies: IReleasePlanMilestoneStrategy[];
|
strategies: IReleasePlanMilestoneStrategy[];
|
||||||
startedAt?: string | null;
|
startedAt?: string | null;
|
||||||
|
pausedAt?: string | null;
|
||||||
transitionCondition?: {
|
transitionCondition?: {
|
||||||
intervalMinutes: number;
|
intervalMinutes: number;
|
||||||
} | null;
|
} | null;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user