AP0.6b: Jinkendo UX/PWA Remediation — App Shell, Design-Tokens, responsive Nav, PWA-Manifest
Deploy Development / deploy (push) Successful in 43s
Test Suite / pytest-backend (push) Successful in 29s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 19s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-07-05 06:58:48 +02:00
1 parent 0e7184a59e
commit 48a599e76c
34 files changed
+1895 -681

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
import { LayoutDashboard, FolderKanban, ListChecks } from 'lucide-react'
import { getNavViews } from '../registry/viewRegistry.js'
/** @typedef {{ key: string, to: string, label: string, shortLabel: string, end?: boolean, Icon: import('react').ForwardRefExoticComponent, matchPrefix?: string }} AppNavItem */
const ICON_BY_KEY = {
'kairo.workspace': LayoutDashboard,
'kairo.initiatives': FolderKanban,
'kairo.my_actions': ListChecks,
}
/**
* @param {Set<string>|string[]} capabilities
* @returns {AppNavItem[]}
*/
export function getAppNavItems(capabilities) {
return getNavViews(capabilities).map((view) => ({
key: view.key,
to: view.path,
label: view.navLabel || view.title,
shortLabel: view.shortLabel || view.title,
end: view.path !== '/initiatives',
Icon: ICON_BY_KEY[view.key] || LayoutDashboard,
matchPrefix: view.matchPrefix,
}))
}
/**
* @param {string} pathname
* @param {AppNavItem} item
* @param {boolean} routerIsActive
*/
export function isNavItemActive(pathname, item, routerIsActive) {
if (item.matchPrefix) {
return pathname.startsWith(item.matchPrefix)
}
return routerIsActive
}