1
0
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:
David Leek 2025-03-24 14:57:18 +01:00 committed by GitHub
parent 5d47d524bb
commit 7580d3bc74
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
13 changed files with 33 additions and 33 deletions

View File

@ -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>.

View File

@ -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,

View File

@ -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: (

View File

@ -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",
},
{

View File

@ -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'] },

View File

@ -40,7 +40,7 @@ export const ReleaseManagement = () => {
Icon={Add}
onClick={() => {
navigate(
'/release-management/create-template',
'/release-templates/create-template',
);
}}
maxWidth='700px'

View File

@ -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={

View File

@ -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 />

View File

@ -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>

View File

@ -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}
>

View File

@ -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));
}

View File

@ -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());
};

View File

@ -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());
};