Skip to content

Commit

Permalink
feat(ui): indicate PR based promotion in Stage nodes
Browse files Browse the repository at this point in the history
Signed-off-by: Remington Breeze <remington@breeze.software>
  • Loading branch information
rbreeze committed Jul 15, 2024
1 parent f1583c1 commit 1a2f0f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ui/src/features/project/pipelines/nodes/stage-node.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
faBullseye,
faCircleCheck,
faCircleNotch,
faCodePullRequest,
faGear,
faTruckArrowRight
} from '@fortawesome/free-solid-svg-icons';
Expand Down Expand Up @@ -78,6 +79,13 @@ export const StageNode = ({
<h3>
<div className='truncate pb-1 mr-auto'>{stage.metadata?.name}</div>
<div className='flex gap-1'>
{(stage?.spec?.promotionMechanisms?.gitRepoUpdates || []).some(
(g) => g.pullRequest
) && (
<Tooltip title='PR Promotion Enabled'>
<FontAwesomeIcon icon={faCodePullRequest} />
</Tooltip>
)}
{!stage?.status?.currentPromotion && stage.status?.lastPromotion && (
<div className='pb-1'>
<PromotionStatusIcon
Expand Down

0 comments on commit 1a2f0f6

Please sign in to comment.