mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-24 01:18:01 +02:00
chore: re-order project settings menu (#8626)
This PR re-orders the project settings menu according to the new design. It also renames pages as specified. It does *not* add the new "applications and sdks" link because we don't have that page yet. I have not put this change behind a flag, because it's not a new feature and doesn't really change the user experience. However, I'd be happy to flag it if you think that's better.  The header for the user access tab has also been updated: 
This commit is contained in:
parent
dc1847420c
commit
bbe389d19e
@ -35,44 +35,45 @@ export const ProjectSettings = () => {
|
||||
|
||||
const actionsEnabled = useUiFlag('automatedActions');
|
||||
|
||||
const paidTabs = (...tabs: ITab[]) =>
|
||||
isPro() || isEnterprise() ? tabs : [];
|
||||
|
||||
const tabs: ITab[] = [
|
||||
...(isPro() || isEnterprise()
|
||||
? [
|
||||
{
|
||||
id: '',
|
||||
label: 'Settings',
|
||||
},
|
||||
{
|
||||
id: 'access',
|
||||
label: 'Access',
|
||||
},
|
||||
{
|
||||
id: 'segments',
|
||||
label: 'Segments',
|
||||
},
|
||||
{
|
||||
id: 'change-requests',
|
||||
label: 'Change request configuration',
|
||||
icon: isPro() ? (
|
||||
<StyledBadgeContainer>
|
||||
<EnterpriseBadge />
|
||||
</StyledBadgeContainer>
|
||||
) : undefined,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
...paidTabs(
|
||||
{
|
||||
id: '',
|
||||
label: 'Project settings',
|
||||
},
|
||||
{
|
||||
id: 'access',
|
||||
label: 'User access',
|
||||
},
|
||||
),
|
||||
{
|
||||
id: 'api-access',
|
||||
label: 'API access',
|
||||
},
|
||||
...paidTabs({
|
||||
id: 'segments',
|
||||
label: 'Segments',
|
||||
}),
|
||||
{
|
||||
id: 'environments',
|
||||
label: 'Environments',
|
||||
},
|
||||
{
|
||||
id: 'api-access',
|
||||
label: 'API access',
|
||||
},
|
||||
{
|
||||
id: 'default-strategy',
|
||||
label: 'Default strategy',
|
||||
},
|
||||
...paidTabs({
|
||||
id: 'change-requests',
|
||||
label: 'Change request configuration',
|
||||
icon: isPro() ? (
|
||||
<StyledBadgeContainer>
|
||||
<EnterpriseBadge />
|
||||
</StyledBadgeContainer>
|
||||
) : undefined,
|
||||
}),
|
||||
];
|
||||
|
||||
if (actionsEnabled) {
|
||||
|
@ -24,7 +24,7 @@ export const ProjectAccess = () => {
|
||||
if (isOss()) {
|
||||
return (
|
||||
<PageContent
|
||||
header={<PageHeader title='Access' />}
|
||||
header={<PageHeader title='User access' />}
|
||||
sx={{ justifyContent: 'center' }}
|
||||
>
|
||||
<PremiumFeature feature='access' />
|
||||
@ -34,7 +34,7 @@ export const ProjectAccess = () => {
|
||||
|
||||
if (!hasAccess([UPDATE_PROJECT, PROJECT_USER_ACCESS_READ], projectId)) {
|
||||
return (
|
||||
<PageContent header={<PageHeader title='Access' />}>
|
||||
<PageContent header={<PageHeader title='User access' />}>
|
||||
<Alert severity='error'>
|
||||
You need project owner permissions to access this section.
|
||||
</Alert>
|
||||
|
@ -402,7 +402,7 @@ export const ProjectAccessTable: VFC = () => {
|
||||
header={
|
||||
<PageHeader
|
||||
secondary
|
||||
title={`Access (${
|
||||
title={`User access (${
|
||||
rows.length < data.length
|
||||
? `${rows.length} of ${data.length}`
|
||||
: data.length
|
||||
|
Loading…
Reference in New Issue
Block a user