Skip to content

Commit

Permalink
chore: fix smaller broken UI things in release templates
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleek committed Jan 13, 2025
1 parent cc55d8d commit 1f3cf8f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const EditReleasePlanTemplate = () => {
const templateId = useRequiredPathParam('templateId');
const { template, loading, error, refetch } =
useReleasePlanTemplate(templateId);
usePageTitle(`Edit template: ${template.name}`);
usePageTitle(`Edit release template`);
const navigate = useNavigate();
const { setToastApiError, setToastData } = useToast();
const { updateReleasePlanTemplate } = useReleasePlanTemplatesApi();
Expand Down Expand Up @@ -96,7 +96,7 @@ export const EditReleasePlanTemplate = () => {
setMilestones={setMilestones}
errors={errors}
clearErrors={clearErrors}
formTitle={`Edit template ${template.name}`}
formTitle={`Edit release template`}
formatApiCode={formatApiCode}
handleSubmit={handleSubmit}
loading={loading}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,15 +256,15 @@ export const MilestoneCard = ({
>
<StyledMilestoneCardBody>
<Grid container>
<StyledGridItem item xs={8} md={9}>
<StyledGridItem item xs={6} md={6}>
<MilestoneCardName
milestone={milestone}
errors={errors}
clearErrors={clearErrors}
milestoneNameChanged={milestoneNameChanged}
/>
</StyledGridItem>
<StyledMilestoneActionGrid item xs={4} md={3}>
<StyledMilestoneActionGrid item xs={6} md={6}>
<Button
variant='outlined'
color='primary'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ import { MilestoneStrategyTitle } from './MilestoneStrategyTitle';
import { MilestoneStrategyConstraints } from './MilestoneStrategyConstraints';
import { MilestoneStrategyVariants } from './MilestoneStrategyVariants';
import { MilestoneStrategyType } from './MilestoneStrategyType';
import {
featureStrategyDocsLink,
featureStrategyDocsLinkLabel,
featureStrategyHelp,
} from 'component/feature/FeatureStrategy/FeatureStrategyEdit/FeatureStrategyEdit';

const StyledCancelButton = styled(Button)(({ theme }) => ({
marginLeft: theme.spacing(3),
Expand Down Expand Up @@ -236,7 +241,9 @@ export const ReleasePlanTemplateAddStrategyForm = ({
return (
<FormTemplate
modal
description='Add a strategy to your release plan template.'
description={featureStrategyHelp}
documentationLink={featureStrategyDocsLink}
documentationLinkLabel={featureStrategyDocsLinkLabel}
>
<StyledHeaderBox>
<StyledTitle>
Expand Down Expand Up @@ -316,6 +323,8 @@ export const ReleasePlanTemplateAddStrategyForm = ({
<StyledTargetingHeader>
Segmentation and constraints allow you to set
filters on your strategies, so that they will only
be evaluated for users and applications that match
the specified preconditions.
<MilestoneStrategySegment
segments={segments}
setSegments={setSegments}
Expand All @@ -328,8 +337,6 @@ export const ReleasePlanTemplateAddStrategyForm = ({
strategy={currentStrategy}
setStrategy={setCurrentStrategy}
/>
be evaluated for users and applications that match
the specified preconditions.
</StyledTargetingHeader>
</>
)}
Expand Down

0 comments on commit 1f3cf8f

Please sign in to comment.