import React, { useMemo } from 'react'; import { Link, useNavigate } from 'react-router-dom'; import { GraduationCap, Sparkles, TrendingUp, BookOpen, ArrowRight } from 'lucide-react'; import { usePreferences } from '@/lib/krowHooks'; import { allSkills } from '@/lib/skills/registry'; import { useWorkforcePaths } from '@/lib/skills/usePageSkills'; import { AdminPage } from '@/pages/admin/_shell'; import { cn } from '@/lib/utils'; /** * Workspace & Skills — Full-width workforce capabilities & AI governance hub. */ export default function AdminWorkspace() { const navigate = useNavigate(); const preferences = usePreferences(); /* Owliver's skills from Markdown registry */ const skills = useMemo( () => allSkills(preferences.customSkills || []), [preferences.customSkills] ); const disabledSkills = preferences.disabledSkills || []; const activeSkills = skills.filter((s) => !disabledSkills.includes(s.id)).length; /* Workforce training paths from registry */ const { paths } = useWorkforcePaths(); return (
{/* ── 1. Hero Banner (Full Width) ───────────────────────────────── */}
Workforce Intelligence Hub

Capabilities & Skill Governance

Govern Owliver AI agent capabilities, configure workforce training paths, and track talent progression across your organization.

Registered Skills

{skills.length}

{activeSkills} Active

Training Paths

{paths.length}

Verified Ladders
{/* ── 2. Full Width 2-Column Grid ───────────────────────────────── */}
{/* ── Left Column: Owliver AI Capabilities ───────────────────── */}

Owliver AI Capabilities

{skills.length} Registered · {activeSkills} Active

Owliver capabilities define what the AI assistant can execute autonomously during candidate screening, background matching, and contextual analysis.

{/* Skills Sample List */}
{skills.slice(0, 4).map((s) => { const isActive = !disabledSkills.includes(s.id); return (

{s.name || s.id}

{s.description &&

{s.description}

}
{isActive ? 'Active' : 'Disabled'}
); })}
{/* CTA Button */}
Manage Owliver Skills & Agent Capabilities
{/* ── Right Column: Workforce Training & Skill Development ──────── */}
{/* Workforce Training */}

Workforce Training Paths

{paths.length} Active Paths

Structured learning challenges and skill verification ladders where workforce candidates prove their real-world capabilities.

{/* Paths Sample List */}
{paths.slice(0, 3).map((p) => (

{p.name || p.id}

{p.category &&

{p.category} Path

}
Verified Path
))}
{/* CTA Button */}
Manage Training Paths & Proving Challenges
{/* Skill Development */}

Skill Progression Tracking

Live Analytics

Track talent advancement across training paths, verified levels, and candidate endorsement histories.

View Skill Progression & Talent Growth
{/* ── 3. Unified Registry Architecture Banner ───────────────────── */}

Unified Markdown Registry Architecture

Skills define what Owliver can execute autonomously. Training paths define what the human workforce can be verified in. Both are defined as structured Markdown in one central registry, keeping candidate evaluation and skill progression seamlessly synchronized.

); }