From 0402420fbc04a96cfc3d173a763bf4233e1ba866 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Wed, 20 May 2026 18:20:52 +0100 Subject: [PATCH] fix visibility --- .../src/ee/licence/components/oss-details.tsx | 6 +++-- .../components/sidebar/space-sidebar.tsx | 23 ++++++++++++++----- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/apps/client/src/ee/licence/components/oss-details.tsx b/apps/client/src/ee/licence/components/oss-details.tsx index 23be9f1a4..bee039700 100644 --- a/apps/client/src/ee/licence/components/oss-details.tsx +++ b/apps/client/src/ee/licence/components/oss-details.tsx @@ -5,9 +5,10 @@ const enterpriseFeatures = [ "AI Integration (Chat, Search & Assistant)", "MCP Support", "SSO (SAML, OIDC, LDAP)", + "SCIM Provisioning", "Multi-factor Authentication (2FA)", "Page-level Permissions", - "Page verification & approval workflow", + "Page Verification & Approval Workflow", "Audit Logs", "Enterprise Controls", "API Keys", @@ -15,7 +16,8 @@ const enterpriseFeatures = [ "Full-text Search in Attachments (PDF, DOCX)", "Resolve Comments", "Confluence Import", - "DOCX Import", + "PDF & DOCX Import", + "Templates", ]; export default function OssDetails() { diff --git a/apps/client/src/features/space/components/sidebar/space-sidebar.tsx b/apps/client/src/features/space/components/sidebar/space-sidebar.tsx index d03dd4448..f5c6ea0e7 100644 --- a/apps/client/src/features/space/components/sidebar/space-sidebar.tsx +++ b/apps/client/src/features/space/components/sidebar/space-sidebar.tsx @@ -56,6 +56,7 @@ import { useToggleSidebar } from "@/components/layouts/global/hooks/hooks/use-to import { searchSpotlight } from "@/features/search/constants"; import TemplatePickerModal from "@/ee/template/components/template-picker-modal"; import { useHasFeature } from "@/ee/hooks/use-feature"; +import { useUpgradeLabel } from "@/ee/hooks/use-upgrade-label"; import { Feature } from "@/ee/features"; import { ErrorBoundary } from "react-error-boundary"; @@ -256,6 +257,7 @@ function SpaceMenu({ { open: openTemplatePicker, close: closeTemplatePicker }, ] = useDisclosure(false); const hasTemplates = useHasFeature(Feature.TEMPLATES); + const upgradeLabel = useUpgradeLabel(); const { data: watchStatus } = useSpaceWatchStatusQuery(spaceId); const watchMutation = useWatchSpaceMutation(); @@ -325,15 +327,24 @@ function SpaceMenu({ {isWatching ? t("Stop watching space") : t("Watch space")} - {hasTemplates && canManagePages && ( + {canManagePages && ( <> - } + - {t("Templates")} - + } + data-disabled={!hasTemplates || undefined} + aria-disabled={!hasTemplates || undefined} + > + {t("Templates")} + + )}