From 7c28d247d88e03d8fb7b2d59bffbfd3743d979a5 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Wed, 6 Nov 2024 14:05:33 +0100 Subject: [PATCH] chore: remove project segments gate for oss users (#8666) 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. ![image](https://github.com/user-attachments/assets/1fb0213a-4541-4f01-8f61-48725f4602e1) --- .../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',