fix: hide server dashboard link for vendor, remove fingerprint icon
All checks were successful
CI / build (push) Successful in 52s
CI / docker (push) Successful in 43s

Vendor persona doesn't need "Open Server Dashboard" in sidebar footer.
Removed inline Fingerprint icon from Identity (Logto) menu item.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-10 17:49:40 +02:00
parent 2607ef5dbe
commit 51a1aef10e

View File

@@ -4,7 +4,7 @@ import {
Sidebar,
TopBar,
} from '@cameleer/design-system';
import { LayoutDashboard, ShieldCheck, Server, Users, Settings, Shield, Building, Fingerprint, ScrollText } from 'lucide-react';
import { LayoutDashboard, ShieldCheck, Server, Users, Settings, Shield, Building, ScrollText } from 'lucide-react';
import { useAuth } from '../auth/useAuth';
import { useScopes } from '../auth/useScopes';
import { useOrgStore } from '../auth/useOrganization';
@@ -87,7 +87,6 @@ export function Layout() {
style={{ padding: '6px 12px 6px 36px', fontSize: 13, cursor: 'pointer', color: 'var(--text-muted)' }}
onClick={() => window.open(`${window.location.protocol}//${window.location.hostname}:3002`, '_blank', 'noopener')}
>
<Fingerprint size={13} style={{ verticalAlign: 'middle', marginRight: 6 }} />
Identity (Logto)
</div>
</Sidebar.Section>
@@ -158,13 +157,15 @@ export function Layout() {
</>
)}
<Sidebar.Footer>
<Sidebar.FooterLink
icon={<Server size={16} />}
label="Open Server Dashboard"
onClick={() => window.open(serverDashboardHref, '_blank', 'noopener')}
/>
</Sidebar.Footer>
{showTenantPortal && (
<Sidebar.Footer>
<Sidebar.FooterLink
icon={<Server size={16} />}
label="Open Server Dashboard"
onClick={() => window.open(serverDashboardHref, '_blank', 'noopener')}
/>
</Sidebar.Footer>
)}
</Sidebar>
);