mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-31 13:47:02 +02:00
chore: mark release management as an enterprise feature (#9229)
https://linear.app/unleash/issue/2-3093/sales-pitch-ui-for-release-management-to-show-non-enterprise-users Marks Release Management as a premium Enterprise feature. Once the `releasePlans` flag is enabled for everyone / removed, this is what non-Enterprise users will see: 
This commit is contained in:
parent
2ff385a4b6
commit
4871cd57d1
@ -128,6 +128,11 @@ const PremiumFeatures = {
|
|||||||
url: 'https://docs.getunleash.io/reference/environments',
|
url: 'https://docs.getunleash.io/reference/environments',
|
||||||
label: 'Environments management',
|
label: 'Environments management',
|
||||||
},
|
},
|
||||||
|
releaseManagement: {
|
||||||
|
plan: FeaturePlan.ENTERPRISE,
|
||||||
|
url: '',
|
||||||
|
label: 'Release management',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
type PremiumFeatureType = keyof typeof PremiumFeatures;
|
type PremiumFeatureType = keyof typeof PremiumFeatures;
|
||||||
@ -255,14 +260,16 @@ export const PremiumFeature = ({
|
|||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<Button
|
{url && (
|
||||||
href={url}
|
<Button
|
||||||
target='_blank'
|
href={url}
|
||||||
rel='noreferrer'
|
target='_blank'
|
||||||
onClick={trackReadAbout}
|
rel='noreferrer'
|
||||||
>
|
onClick={trackReadAbout}
|
||||||
Read about {label}
|
>
|
||||||
</Button>
|
Read about {label}
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
</StyledButtonContainer>
|
</StyledButtonContainer>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
@ -266,7 +266,6 @@ exports[`returns all baseRoutes 1`] = `
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"component": [Function],
|
"component": [Function],
|
||||||
"enterprise": true,
|
|
||||||
"flag": "releasePlans",
|
"flag": "releasePlans",
|
||||||
"menu": {
|
"menu": {
|
||||||
"advanced": true,
|
"advanced": true,
|
||||||
|
@ -289,7 +289,6 @@ export const routes: IRoute[] = [
|
|||||||
type: 'protected',
|
type: 'protected',
|
||||||
menu: { advanced: true, mode: ['enterprise'] },
|
menu: { advanced: true, mode: ['enterprise'] },
|
||||||
flag: 'releasePlans',
|
flag: 'releasePlans',
|
||||||
enterprise: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/release-management/create-template',
|
path: '/release-management/create-template',
|
||||||
|
@ -12,6 +12,7 @@ import { EmptyTemplatesListMessage } from './EmptyTemplatesListMessage';
|
|||||||
import { ReleasePlanTemplateList } from './ReleasePlanTemplateList';
|
import { ReleasePlanTemplateList } from './ReleasePlanTemplateList';
|
||||||
import { useUiFlag } from 'hooks/useUiFlag';
|
import { useUiFlag } from 'hooks/useUiFlag';
|
||||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
||||||
|
import { PremiumFeature } from 'component/common/PremiumFeature/PremiumFeature';
|
||||||
|
|
||||||
export const ReleaseManagement = () => {
|
export const ReleaseManagement = () => {
|
||||||
usePageTitle('Release management');
|
usePageTitle('Release management');
|
||||||
@ -24,6 +25,10 @@ export const ReleaseManagement = () => {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isEnterprise()) {
|
||||||
|
return <PremiumFeature feature='releaseManagement' page />;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<PageContent
|
<PageContent
|
||||||
|
Loading…
Reference in New Issue
Block a user