From af0c4460e84f84aa8adeebc7bfa0075f82155328 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Wed, 6 Nov 2024 10:02:15 +0100 Subject: [PATCH] chore: remove project segments gate for oss users This change opens up the project segments page to OSS users. They could navigate to it explicitly before, but would be told it was a premium feature (which it is not (since 5.5)). After this, it'll show up in the settings sidebar as for pro/enterprise, and you'll get the actual segments table instead of "this is a premium feature" message. --- .../ProjectSegments/ProjectSegments.tsx | 16 ---------------- .../Project/ProjectSettings/ProjectSettings.tsx | 4 ++-- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/frontend/src/component/project/Project/ProjectSettings/ProjectSegments/ProjectSegments.tsx b/frontend/src/component/project/Project/ProjectSettings/ProjectSegments/ProjectSegments.tsx index f4e3cdb2648d..d1357877f24d 100644 --- a/frontend/src/component/project/Project/ProjectSettings/ProjectSegments/ProjectSegments.tsx +++ b/frontend/src/component/project/Project/ProjectSettings/ProjectSegments/ProjectSegments.tsx @@ -1,10 +1,6 @@ -import { PageContent } from 'component/common/PageContent/PageContent'; -import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig'; -import { PageHeader } from 'component/common/PageHeader/PageHeader'; import { useRequiredPathParam } from 'hooks/useRequiredPathParam'; import { usePageTitle } from 'hooks/usePageTitle'; import { SegmentTable } from 'component/segments/SegmentTable/SegmentTable'; -import { PremiumFeature } from 'component/common/PremiumFeature/PremiumFeature'; import { Route, Routes, useNavigate } from 'react-router-dom'; import { CreateSegment } from 'component/segments/CreateSegment/CreateSegment'; import { EditSegment } from 'component/segments/EditSegment/EditSegment'; @@ -15,22 +11,10 @@ import { useProjectOverviewNameOrId } from 'hooks/api/getters/useProjectOverview export const ProjectSegments = () => { const projectId = useRequiredPathParam('projectId'); const projectName = useProjectOverviewNameOrId(projectId); - const { isOss } = useUiConfig(); const navigate = useNavigate(); usePageTitle(`Project segments – ${projectName}`); - if (isOss()) { - return ( - } - sx={{ justifyContent: 'center' }} - > - - - ); - } - return ( { id: 'api-access', label: 'API access', }, - ...paidTabs({ + { id: 'segments', label: 'Segments', - }), + }, { id: 'environments', label: 'Environments',