feat: vendor sidebar section, remove example tenant, add Logto link
- Sidebar: Tenants moved into expandable "Vendor" section with sub-items for Tenants and Identity (Logto console link) - Bootstrap: removed example organization creation (Phase 6 org) — tenants are now created exclusively via the vendor console - Removed BootstrapDataSeeder (no auto-seeded tenant/license) - Bootstrap log updated to reflect clean-slate approach Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@ import {
|
||||
Sidebar,
|
||||
TopBar,
|
||||
} from '@cameleer/design-system';
|
||||
import { LayoutDashboard, ShieldCheck, Server, Users, Settings, KeyRound, Building } from 'lucide-react';
|
||||
import { LayoutDashboard, ShieldCheck, Server, Users, Settings, KeyRound, Building, Fingerprint } from 'lucide-react';
|
||||
import { useAuth } from '../auth/useAuth';
|
||||
import { useScopes } from '../auth/useScopes';
|
||||
import { useOrgStore } from '../auth/useOrganization';
|
||||
@@ -62,12 +62,25 @@ export function Layout() {
|
||||
{isVendor && (
|
||||
<Sidebar.Section
|
||||
icon={<Building size={16} />}
|
||||
label="Tenants"
|
||||
open={false}
|
||||
active={isActive(location, '/vendor/tenants')}
|
||||
label="Vendor"
|
||||
open={onVendorRoute}
|
||||
active={isActive(location, '/vendor')}
|
||||
onToggle={() => navigate('/vendor/tenants')}
|
||||
>
|
||||
{null}
|
||||
<div
|
||||
style={{ padding: '6px 12px 6px 36px', fontSize: 13, cursor: 'pointer',
|
||||
color: isActive(location, '/vendor/tenants') ? 'var(--text-primary)' : 'var(--text-muted)' }}
|
||||
onClick={() => navigate('/vendor/tenants')}
|
||||
>
|
||||
Tenants
|
||||
</div>
|
||||
<div
|
||||
style={{ padding: '6px 12px 6px 36px', fontSize: 13, cursor: 'pointer', color: 'var(--text-muted)' }}
|
||||
onClick={() => window.open('/console', '_blank', 'noopener')}
|
||||
>
|
||||
<Fingerprint size={13} style={{ verticalAlign: 'middle', marginRight: 6 }} />
|
||||
Identity (Logto)
|
||||
</div>
|
||||
</Sidebar.Section>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user