mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-22 03:02:35 +00:00
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
This commit is contained in:
parent
2246aee35f
commit
4e11022425
4 changed files with 8 additions and 11 deletions
|
|
@ -216,7 +216,7 @@ export function ReportingPanel() {
|
|||
<BarChart size={24} />
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="text-lg font-bold text-white mb-2">Enterprise Insights</h3>
|
||||
<h3 class="text-lg font-bold text-white mb-2">Advanced Insights</h3>
|
||||
<p class="text-slate-400 leading-relaxed">
|
||||
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.
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ export const SecurityOverviewPanel: Component<SecurityOverviewPanelProps> = (pro
|
|||
<ul class="space-y-0.5 list-disc list-inside">
|
||||
<li>Enable HTTPS via a reverse proxy for encrypted connections</li>
|
||||
<li>Use strong, unique passwords and rotate credentials regularly</li>
|
||||
<li>Consider SSO/OIDC for enterprise authentication needs</li>
|
||||
<li>Consider SSO/OIDC for centralized team authentication</li>
|
||||
<li>Review API token scopes and remove unused tokens</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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<SettingsTab, { title: string; description: st
|
|||
},
|
||||
'security-sso': {
|
||||
title: 'Single Sign-On',
|
||||
description: 'Configure OIDC providers for enterprise authentication.',
|
||||
description: 'Configure OIDC providers for team authentication.',
|
||||
},
|
||||
'security-roles': {
|
||||
title: 'Roles',
|
||||
|
|
@ -2517,7 +2517,7 @@ const Settings: Component<SettingsProps> = (props) => {
|
|||
<item.icon class="w-4 h-4" {...(item.iconProps || {})} />
|
||||
<Show when={!sidebarCollapsed()}>
|
||||
<span class="truncate">{item.label}</span>
|
||||
<Show when={item.badge && !isEnterprise()}>
|
||||
<Show when={item.badge && !isPro()}>
|
||||
<span class="ml-auto px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-wider bg-gradient-to-r from-indigo-500 to-purple-500 text-white rounded-md shadow-sm">
|
||||
{item.badge}
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ export async function loadLicenseStatus(force = false): Promise<void> {
|
|||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue