1
0
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:
Jaanus Sellin 2025-11-14 16:18:15 +02:00 committed by GitHub
parent ca61906e3c
commit 218f0fcdef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -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 (

View File

@ -52,6 +52,7 @@ export interface IReleasePlanMilestone {
releasePlanDefinitionId: string;
strategies: IReleasePlanMilestoneStrategy[];
startedAt?: string | null;
pausedAt?: string | null;
transitionCondition?: {
intervalMinutes: number;
} | null;