mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
chore: rename release-management to release-templates, remove "plan" from descriptions (#9595)
This commit is contained in:
parent
5d47d524bb
commit
7580d3bc74
@ -98,7 +98,7 @@ export const ReleasePlanAddDialog = ({
|
|||||||
</StyledReleasePlanContainer>
|
</StyledReleasePlanContainer>
|
||||||
{crProtected && (
|
{crProtected && (
|
||||||
<Typography sx={{ mt: 4 }}>
|
<Typography sx={{ mt: 4 }}>
|
||||||
<strong>Adding</strong> release plan template{' '}
|
<strong>Adding</strong> release template{' '}
|
||||||
<strong>{template?.name}</strong> to{' '}
|
<strong>{template?.name}</strong> to{' '}
|
||||||
<strong>{featureName}</strong> in{' '}
|
<strong>{featureName}</strong> in{' '}
|
||||||
<strong>{environment}</strong>.
|
<strong>{environment}</strong>.
|
||||||
|
@ -58,7 +58,7 @@ const icons: Record<string, typeof SvgIcon> = {
|
|||||||
'/admin/cors': CorsIcon,
|
'/admin/cors': CorsIcon,
|
||||||
'/admin/billing': BillingIcon,
|
'/admin/billing': BillingIcon,
|
||||||
'/history': EventLogIcon,
|
'/history': EventLogIcon,
|
||||||
'/release-management': FactCheckOutlinedIcon,
|
'/release-templates': FactCheckOutlinedIcon,
|
||||||
'/personal': PersonalDashboardIcon,
|
'/personal': PersonalDashboardIcon,
|
||||||
GitHub: GitHubIcon,
|
GitHub: GitHubIcon,
|
||||||
Documentation: LibraryBooksIcon,
|
Documentation: LibraryBooksIcon,
|
||||||
|
@ -168,7 +168,7 @@ export const NewInUnleash = ({
|
|||||||
summary: 'Save time with release plans',
|
summary: 'Save time with release plans',
|
||||||
icon: <StyledReleaseManagementIcon />,
|
icon: <StyledReleaseManagementIcon />,
|
||||||
preview: <ReleaseManagementPreview />,
|
preview: <ReleaseManagementPreview />,
|
||||||
onCheckItOut: () => navigate('/release-management'),
|
onCheckItOut: () => navigate('/release-templates'),
|
||||||
show: isEnterprise() && releasePlansEnabled,
|
show: isEnterprise() && releasePlansEnabled,
|
||||||
beta: true,
|
beta: true,
|
||||||
longDescription: (
|
longDescription: (
|
||||||
|
@ -268,7 +268,7 @@ exports[`returns all baseRoutes 1`] = `
|
|||||||
"enterprise",
|
"enterprise",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
"path": "/release-management",
|
"path": "/release-templates",
|
||||||
"title": "Release templates",
|
"title": "Release templates",
|
||||||
"type": "protected",
|
"type": "protected",
|
||||||
},
|
},
|
||||||
@ -281,9 +281,9 @@ exports[`returns all baseRoutes 1`] = `
|
|||||||
"enterprise",
|
"enterprise",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
"parent": "/release-management",
|
"parent": "/release-templates",
|
||||||
"path": "/release-management/create-template",
|
"path": "/release-templates/create-template",
|
||||||
"title": "Create release plan template",
|
"title": "Create release template",
|
||||||
"type": "protected",
|
"type": "protected",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -295,9 +295,9 @@ exports[`returns all baseRoutes 1`] = `
|
|||||||
"enterprise",
|
"enterprise",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
"parent": "/release-management",
|
"parent": "/release-templates",
|
||||||
"path": "/release-management/edit/:templateId",
|
"path": "/release-templates/edit/:templateId",
|
||||||
"title": "Edit release plan template",
|
"title": "Edit release template",
|
||||||
"type": "protected",
|
"type": "protected",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -283,7 +283,7 @@ export const routes: IRoute[] = [
|
|||||||
|
|
||||||
// Release management/plans
|
// Release management/plans
|
||||||
{
|
{
|
||||||
path: '/release-management',
|
path: '/release-templates',
|
||||||
title: 'Release templates',
|
title: 'Release templates',
|
||||||
component: ReleaseManagement,
|
component: ReleaseManagement,
|
||||||
type: 'protected',
|
type: 'protected',
|
||||||
@ -291,9 +291,9 @@ export const routes: IRoute[] = [
|
|||||||
flag: 'releasePlans',
|
flag: 'releasePlans',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/release-management/create-template',
|
path: '/release-templates/create-template',
|
||||||
title: 'Create release plan template',
|
title: 'Create release template',
|
||||||
parent: '/release-management',
|
parent: '/release-templates',
|
||||||
component: CreateReleasePlanTemplate,
|
component: CreateReleasePlanTemplate,
|
||||||
type: 'protected',
|
type: 'protected',
|
||||||
menu: { mode: ['enterprise'] },
|
menu: { mode: ['enterprise'] },
|
||||||
@ -301,9 +301,9 @@ export const routes: IRoute[] = [
|
|||||||
enterprise: true,
|
enterprise: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/release-management/edit/:templateId',
|
path: '/release-templates/edit/:templateId',
|
||||||
title: 'Edit release plan template',
|
title: 'Edit release template',
|
||||||
parent: '/release-management',
|
parent: '/release-templates',
|
||||||
component: EditReleasePlanTemplate,
|
component: EditReleasePlanTemplate,
|
||||||
type: 'protected',
|
type: 'protected',
|
||||||
menu: { mode: ['enterprise'] },
|
menu: { mode: ['enterprise'] },
|
||||||
|
@ -40,7 +40,7 @@ export const ReleaseManagement = () => {
|
|||||||
Icon={Add}
|
Icon={Add}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
navigate(
|
navigate(
|
||||||
'/release-management/create-template',
|
'/release-templates/create-template',
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
maxWidth='700px'
|
maxWidth='700px'
|
||||||
|
@ -28,7 +28,7 @@ const StyledCardTitle = styled('h3')(({ theme }) => ({
|
|||||||
export const ReleasePlanTemplateCard = ({
|
export const ReleasePlanTemplateCard = ({
|
||||||
template,
|
template,
|
||||||
}: { template: IReleasePlanTemplate }) => (
|
}: { template: IReleasePlanTemplate }) => (
|
||||||
<StyledCardLink to={`/release-management/edit/${template.id}`}>
|
<StyledCardLink to={`/release-templates/edit/${template.id}`}>
|
||||||
<Card
|
<Card
|
||||||
icon={<ReleaseTemplateIcon />}
|
icon={<ReleaseTemplateIcon />}
|
||||||
title={
|
title={
|
||||||
|
@ -53,7 +53,7 @@ export const ReleasePlanTemplateCardActions = ({
|
|||||||
refetch();
|
refetch();
|
||||||
setToastData({
|
setToastData({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
text: 'Release plan template archived',
|
text: 'Release template archived',
|
||||||
});
|
});
|
||||||
|
|
||||||
trackEvent('release-management', {
|
trackEvent('release-management', {
|
||||||
@ -85,7 +85,7 @@ export const ReleasePlanTemplateCardActions = ({
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Tooltip title='Release plan template actions' arrow describeChild>
|
<Tooltip title='Release template actions' arrow describeChild>
|
||||||
<IconButton
|
<IconButton
|
||||||
id={id}
|
id={id}
|
||||||
aria-controls={open ? 'actions-menu' : undefined}
|
aria-controls={open ? 'actions-menu' : undefined}
|
||||||
@ -111,7 +111,7 @@ export const ReleasePlanTemplateCardActions = ({
|
|||||||
<MenuItem
|
<MenuItem
|
||||||
onClick={handleClose}
|
onClick={handleClose}
|
||||||
component={Link}
|
component={Link}
|
||||||
to={`/release-management/edit/${template.id}`}
|
to={`/release-templates/edit/${template.id}`}
|
||||||
>
|
>
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<EditIcon />
|
<EditIcon />
|
||||||
|
@ -18,7 +18,7 @@ export const TemplateArchiveDialog: React.FC<ITemplateArchiveDialogProps> = ({
|
|||||||
}) => {
|
}) => {
|
||||||
return (
|
return (
|
||||||
<Dialogue
|
<Dialogue
|
||||||
title='Archive release plan template?'
|
title='Archive release template?'
|
||||||
open={open}
|
open={open}
|
||||||
secondaryButtonText='Cancel'
|
secondaryButtonText='Cancel'
|
||||||
onClose={() => {
|
onClose={() => {
|
||||||
@ -35,7 +35,7 @@ export const TemplateArchiveDialog: React.FC<ITemplateArchiveDialogProps> = ({
|
|||||||
}
|
}
|
||||||
>
|
>
|
||||||
<p>
|
<p>
|
||||||
You are about to archive release plan template:{' '}
|
You are about to archive release template:{' '}
|
||||||
<strong>{template?.name}</strong>
|
<strong>{template?.name}</strong>
|
||||||
</p>
|
</p>
|
||||||
</Dialogue>
|
</Dialogue>
|
||||||
|
@ -31,7 +31,7 @@ export const CreateReleasePlanTemplate = () => {
|
|||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const { createReleasePlanTemplate } = useReleasePlanTemplatesApi();
|
const { createReleasePlanTemplate } = useReleasePlanTemplatesApi();
|
||||||
const { trackEvent } = usePlausibleTracker();
|
const { trackEvent } = usePlausibleTracker();
|
||||||
usePageTitle('Create release plan template');
|
usePageTitle('Create release template');
|
||||||
const {
|
const {
|
||||||
name,
|
name,
|
||||||
setName,
|
setName,
|
||||||
@ -61,7 +61,7 @@ export const CreateReleasePlanTemplate = () => {
|
|||||||
scrollToTop();
|
scrollToTop();
|
||||||
setToastData({
|
setToastData({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
text: 'Release plan template created',
|
text: 'Release template created',
|
||||||
});
|
});
|
||||||
|
|
||||||
trackEvent('release-management', {
|
trackEvent('release-management', {
|
||||||
@ -71,7 +71,7 @@ export const CreateReleasePlanTemplate = () => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
navigate('/release-management');
|
navigate('/release-templates');
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
setToastApiError(formatUnknownError(error));
|
setToastApiError(formatUnknownError(error));
|
||||||
}
|
}
|
||||||
@ -99,7 +99,7 @@ export const CreateReleasePlanTemplate = () => {
|
|||||||
setMilestones={setMilestones}
|
setMilestones={setMilestones}
|
||||||
errors={errors}
|
errors={errors}
|
||||||
clearErrors={clearErrors}
|
clearErrors={clearErrors}
|
||||||
formTitle='Create release plan template'
|
formTitle='Create release template'
|
||||||
formatApiCode={formatApiCode}
|
formatApiCode={formatApiCode}
|
||||||
handleSubmit={handleSubmit}
|
handleSubmit={handleSubmit}
|
||||||
>
|
>
|
||||||
|
@ -53,7 +53,7 @@ export const EditReleasePlanTemplate = () => {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const handleCancel = () => {
|
const handleCancel = () => {
|
||||||
navigate('/release-management');
|
navigate('/release-templates');
|
||||||
};
|
};
|
||||||
const handleSubmit = async (e: React.FormEvent) => {
|
const handleSubmit = async (e: React.FormEvent) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@ -68,7 +68,7 @@ export const EditReleasePlanTemplate = () => {
|
|||||||
await refetch();
|
await refetch();
|
||||||
setToastData({
|
setToastData({
|
||||||
type: 'success',
|
type: 'success',
|
||||||
text: 'Release plan template updated',
|
text: 'Release template updated',
|
||||||
});
|
});
|
||||||
|
|
||||||
trackEvent('release-management', {
|
trackEvent('release-management', {
|
||||||
@ -78,7 +78,7 @@ export const EditReleasePlanTemplate = () => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
navigate('/release-management');
|
navigate('/release-templates');
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
setToastApiError(formatUnknownError(error));
|
setToastApiError(formatUnknownError(error));
|
||||||
}
|
}
|
||||||
|
@ -42,6 +42,6 @@ export const useReleasePlanTemplate = (templateId: string) => {
|
|||||||
|
|
||||||
const fetcher = (path: string) => {
|
const fetcher = (path: string) => {
|
||||||
return fetch(path)
|
return fetch(path)
|
||||||
.then(handleErrorResponses('Release plan template'))
|
.then(handleErrorResponses('Release template'))
|
||||||
.then((res) => res.json());
|
.then((res) => res.json());
|
||||||
};
|
};
|
||||||
|
@ -34,6 +34,6 @@ export const useReleasePlanTemplates = () => {
|
|||||||
|
|
||||||
const fetcher = (path: string) => {
|
const fetcher = (path: string) => {
|
||||||
return fetch(path)
|
return fetch(path)
|
||||||
.then(handleErrorResponses('Release plan templates'))
|
.then(handleErrorResponses('Release templates'))
|
||||||
.then((res) => res.json());
|
.then((res) => res.json());
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user