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