From 4e11022425559e063df75dd28709dab6ee56147e Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sat, 10 Jan 2026 12:49:51 +0000 Subject: [PATCH] refactor(ui): remove user-facing 'enterprise' terminology - Replace 'enterprise authentication' with 'team authentication' - Replace 'Enterprise Insights' with 'Advanced Insights' - Deprecate isEnterprise() in favor of isPro() and hasFeature() - Update Settings.tsx to use isPro() for badge visibility --- .../src/components/Settings/ReportingPanel.tsx | 2 +- .../src/components/Settings/SecurityOverviewPanel.tsx | 2 +- frontend-modern/src/components/Settings/Settings.tsx | 6 +++--- frontend-modern/src/stores/license.ts | 9 +++------ 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/frontend-modern/src/components/Settings/ReportingPanel.tsx b/frontend-modern/src/components/Settings/ReportingPanel.tsx index b486e98de..ae22c48cf 100644 --- a/frontend-modern/src/components/Settings/ReportingPanel.tsx +++ b/frontend-modern/src/components/Settings/ReportingPanel.tsx @@ -216,7 +216,7 @@ export function ReportingPanel() {
-

Enterprise Insights

+

Advanced Insights

Reports are generated directly from the historical metrics store. PDF reports provide a summarized view with average, minimum, and maximum values, while CSV exports provide raw granular data for external analysis in tools like Excel or BI suites.

diff --git a/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx b/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx index cd59bc878..f89088cbc 100644 --- a/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx +++ b/frontend-modern/src/components/Settings/SecurityOverviewPanel.tsx @@ -145,7 +145,7 @@ export const SecurityOverviewPanel: Component = (pro
  • Enable HTTPS via a reverse proxy for encrypted connections
  • Use strong, unique passwords and rotate credentials regularly
  • -
  • Consider SSO/OIDC for enterprise authentication needs
  • +
  • Consider SSO/OIDC for centralized team authentication
  • Review API token scopes and remove unused tokens
diff --git a/frontend-modern/src/components/Settings/Settings.tsx b/frontend-modern/src/components/Settings/Settings.tsx index b23e8ec5b..aa1f99458 100644 --- a/frontend-modern/src/components/Settings/Settings.tsx +++ b/frontend-modern/src/components/Settings/Settings.tsx @@ -81,7 +81,7 @@ import type { SecurityStatus as SecurityStatusInfo } from '@/types/config'; import { eventBus } from '@/stores/events'; import { updateStore } from '@/stores/updates'; -import { isEnterprise, loadLicenseStatus } from '@/stores/license'; +import { isPro, loadLicenseStatus } from '@/stores/license'; // Type definitions interface DiscoveredServer { @@ -377,7 +377,7 @@ const SETTINGS_HEADER_META: Record = (props) => { {item.label} - + {item.badge} diff --git a/frontend-modern/src/stores/license.ts b/frontend-modern/src/stores/license.ts index 9f2444421..21b3d39e7 100644 --- a/frontend-modern/src/stores/license.ts +++ b/frontend-modern/src/stores/license.ts @@ -36,7 +36,7 @@ export async function loadLicenseStatus(force = false): Promise { } /** - * Helper to check if the current license is Pulse Pro or Enterprise. + * Helper to check if the current license is Pulse Pro (any paid tier). */ export const isPro = createMemo(() => { const current = licenseStatus(); @@ -44,12 +44,9 @@ export const isPro = createMemo(() => { }); /** - * Helper to check if the current license is Enterprise. + * @deprecated Use isPro() or hasFeature() instead. Kept for backwards compatibility. */ -export const isEnterprise = createMemo(() => { - const current = licenseStatus(); - return Boolean(current?.valid && (current.tier === 'enterprise' || current.tier === 'msp')); -}); +export const isEnterprise = isPro; /** * Check if a specific feature is enabled by the current license.