Some checks failed
Deploy Development / deploy (push) Successful in 38s
Test Suite / pytest-backend (push) Successful in 43s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 12s
Test Suite / k6 /health Baseline (push) Successful in 33s
Test Suite / playwright-tests (push) Has been cancelled
- Added documentation for the new Superadmin CRUD endpoints for managing AI Skill Retrieval Profiles (`/api/admin/ai-skill-retrieval-profiles*`). - Updated the ACCESS_LAYER_ENDPOINT_AUDIT.md to include the new Superadmin API and its exempt status. - Registered the ai_skill_retrieval_admin router in the backend and updated versioning to reflect the changes. - Enhanced the frontend with a new Admin page for AI Skill Retrieval, including navigation and API integration for profile management.
38 lines
1.3 KiB
JavaScript
38 lines
1.3 KiB
JavaScript
import { NavLink } from 'react-router-dom'
|
|
import { TreePine, FolderTree, Download, Grid3x3, Users, Scale, Brain } from 'lucide-react'
|
|
|
|
/**
|
|
* Admin-Seiten-Navigation (horizontal) — nur für Super-Admins (globaler Portal-Mandant).
|
|
*/
|
|
export default function AdminPageNav() {
|
|
const pages = [
|
|
{ to: '/admin/hierarchy', label: 'Hierarchie', icon: TreePine },
|
|
{ to: '/admin/users', label: 'Nutzer', icon: Users },
|
|
{ to: '/admin/maturity-models', label: 'Fähigkeitsmatrix', icon: Grid3x3 },
|
|
{ to: '/admin/catalogs', label: 'Kataloge', icon: FolderTree },
|
|
{ to: '/admin/mediawiki-import', label: 'Wiki-Import', icon: Download },
|
|
{ to: '/admin/legal-documents', label: 'Rechtstexte', icon: Scale },
|
|
{ to: '/admin/ai-skill-retrieval', label: 'KI Retrieval', icon: Brain },
|
|
]
|
|
|
|
return (
|
|
<nav className="admin-top-nav" aria-label="Administration">
|
|
{pages.map((page) => {
|
|
const Icon = page.icon
|
|
return (
|
|
<NavLink
|
|
key={page.to}
|
|
to={page.to}
|
|
className={({ isActive }) =>
|
|
'admin-top-nav__link' + (isActive ? ' admin-top-nav__link--active' : '')
|
|
}
|
|
>
|
|
<Icon size={18} strokeWidth={2} aria-hidden />
|
|
<span>{page.label}</span>
|
|
</NavLink>
|
|
)
|
|
})}
|
|
</nav>
|
|
)
|
|
}
|