From 45035102f45450fae87f7a5d3dabe80f9389b5ab Mon Sep 17 00:00:00 2001 From: David Leek Date: Tue, 17 Dec 2024 14:41:53 +0100 Subject: [PATCH] feat:release templates strategy interaction improvements (#8992) --- .../releases/ReleasePlanTemplate/MilestoneStrategyMenuCard.tsx | 1 + .../ReleasePlanTemplate/MilestoneStrategySegmentList.tsx | 1 - .../src/component/releases/ReleasePlanTemplate/TemplateForm.tsx | 2 ++ 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/component/releases/ReleasePlanTemplate/MilestoneStrategyMenuCard.tsx b/frontend/src/component/releases/ReleasePlanTemplate/MilestoneStrategyMenuCard.tsx index e910fbcf0a..87dfaa11c1 100644 --- a/frontend/src/component/releases/ReleasePlanTemplate/MilestoneStrategyMenuCard.tsx +++ b/frontend/src/component/releases/ReleasePlanTemplate/MilestoneStrategyMenuCard.tsx @@ -34,6 +34,7 @@ const StyledName = styled(StringTruncator)(({ theme }) => ({ const StyledCard = styled('div')(({ theme }) => ({ display: 'grid', + cursor: 'pointer', gridTemplateColumns: '3rem 1fr', width: '20rem', padding: theme.spacing(2), diff --git a/frontend/src/component/releases/ReleasePlanTemplate/MilestoneStrategySegmentList.tsx b/frontend/src/component/releases/ReleasePlanTemplate/MilestoneStrategySegmentList.tsx index 5324407a1f..b48697ae5a 100644 --- a/frontend/src/component/releases/ReleasePlanTemplate/MilestoneStrategySegmentList.tsx +++ b/frontend/src/component/releases/ReleasePlanTemplate/MilestoneStrategySegmentList.tsx @@ -41,7 +41,6 @@ export const MilestoneStrategySegmentList = ({ const lastSegmentIndex = segments.length - 1; if (segments.length === 0) { - console.log('segments.length === 0'); return null; } diff --git a/frontend/src/component/releases/ReleasePlanTemplate/TemplateForm.tsx b/frontend/src/component/releases/ReleasePlanTemplate/TemplateForm.tsx index 9dd984a4c1..b38da15106 100644 --- a/frontend/src/component/releases/ReleasePlanTemplate/TemplateForm.tsx +++ b/frontend/src/component/releases/ReleasePlanTemplate/TemplateForm.tsx @@ -195,6 +195,7 @@ export const TemplateForm: React.FC = ({ { + setAddUpdateStrategyOpen(false); setStrategyModeEdit(false); }} open={addUpdateStrategyOpen} @@ -205,6 +206,7 @@ export const TemplateForm: React.FC = ({ onAddUpdateStrategy={addUpdateStrategy} onCancel={() => { setAddUpdateStrategyOpen(false); + setStrategyModeEdit(false); }} editMode={strategyModeEdit} />