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 WarningAmber from '@mui/icons-material/WarningAmber';
|
||||
import { Badge } from 'component/common/Badge/Badge';
|
||||
import type { IReleasePlanMilestone } from 'interfaces/releasePlans';
|
||||
import type { ChangeMilestoneProgressionSchema } from 'openapi';
|
||||
@ -53,11 +54,16 @@ export const MilestoneAutomation = ({
|
||||
pendingProgressionChange?.action === 'changeMilestoneProgression';
|
||||
const hasPendingDelete =
|
||||
pendingProgressionChange?.action === 'deleteMilestoneProgression';
|
||||
const isPaused = Boolean(milestone.pausedAt);
|
||||
|
||||
const badge = hasPendingDelete ? (
|
||||
<Badge color='error'>Deleted in draft</Badge>
|
||||
) : hasPendingChange ? (
|
||||
<Badge color='warning'>Modified in draft</Badge>
|
||||
) : isPaused ? (
|
||||
<Badge color='error' icon={<WarningAmber fontSize='small' />}>
|
||||
Paused
|
||||
</Badge>
|
||||
) : undefined;
|
||||
|
||||
return (
|
||||
|
||||
@ -52,6 +52,7 @@ export interface IReleasePlanMilestone {
|
||||
releasePlanDefinitionId: string;
|
||||
strategies: IReleasePlanMilestoneStrategy[];
|
||||
startedAt?: string | null;
|
||||
pausedAt?: string | null;
|
||||
transitionCondition?: {
|
||||
intervalMinutes: number;
|
||||
} | null;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user