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
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:
1 parent
0e7184a59e
commit
48a599e76c
34 files changed
+1895
-681
No files matched your search
@@ -57,11 +57,11 @@ export function ActionForm({
|
||||
</label>
|
||||
<ActorSelect actors={actors} defaultSelected={defaultActors} />
|
||||
<div className="form-actions">
|
||||
<button type="submit" disabled={busy}>
|
||||
<button type="submit" className="btn btn-primary" disabled={busy}>
|
||||
{busy ? 'Speichern …' : submitLabel}
|
||||
</button>
|
||||
{onCancel && (
|
||||
<button type="button" className="secondary" onClick={onCancel} disabled={busy}>
|
||||
<button type="button" className="btn btn-secondary" onClick={onCancel} disabled={busy}>
|
||||
Abbrechen
|
||||
</button>
|
||||
)}
|
||||
|
||||
@@ -4,7 +4,7 @@ import { PriorityBadge } from '../components/PriorityBadge.jsx'
|
||||
|
||||
export function ActionListItem({ action, showInitiative = false, manageLink }) {
|
||||
return (
|
||||
<li className="list-item action-item">
|
||||
<li className="list-item action-item card-list-item">
|
||||
<div className="list-item-main">
|
||||
<strong>{action.title}</strong>
|
||||
{showInitiative && action.initiative_title && (
|
||||
@@ -16,8 +16,8 @@ export function ActionListItem({ action, showInitiative = false, manageLink }) {
|
||||
<StatusBadge status={action.status} />
|
||||
<PriorityBadge priority={action.priority} />
|
||||
{manageLink && (
|
||||
<Link to={manageLink} className="link-button">
|
||||
Bearbeiten
|
||||
<Link to={manageLink} className="link-inline">
|
||||
Öffnen
|
||||
</Link>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
import { NavLink, useLocation } from 'react-router-dom'
|
||||
import { getAppNavItems, isNavItemActive } from '../config/appNav.js'
|
||||
|
||||
export function BottomNav({ capabilities }) {
|
||||
const loc = useLocation()
|
||||
const items = getAppNavItems(capabilities)
|
||||
|
||||
return (
|
||||
<nav className="bottom-nav" aria-label="Hauptnavigation">
|
||||
{items.map((item) => (
|
||||
<NavLink
|
||||
key={item.key}
|
||||
to={item.to}
|
||||
end={!!item.end}
|
||||
className={({ isActive }) =>
|
||||
isNavItemActive(loc.pathname, item, isActive) ? 'nav-item active' : 'nav-item'
|
||||
}
|
||||
>
|
||||
<item.Icon size={22} strokeWidth={2} aria-hidden />
|
||||
<span>{item.shortLabel}</span>
|
||||
</NavLink>
|
||||
))}
|
||||
</nav>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
import { useSession } from '../context/SessionContext.jsx'
|
||||
|
||||
export function ContextIndicator({ variant = 'mobile' }) {
|
||||
const { context } = useSession()
|
||||
const tenant = context?.tenant
|
||||
const actor = context?.actor
|
||||
|
||||
if (!tenant) {
|
||||
return (
|
||||
<div className={`context-indicator context-indicator--${variant}`}>
|
||||
<span className="context-indicator__chip">Kein aktiver Tenant</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={`context-indicator context-indicator--${variant}`}>
|
||||
<span className="context-indicator__chip" title="Tenant">
|
||||
{tenant.name}
|
||||
</span>
|
||||
{actor && (
|
||||
<span className="context-indicator__chip" title="Actor">
|
||||
{actor.type}
|
||||
</span>
|
||||
)}
|
||||
{tenant.role && (
|
||||
<span className="context-indicator__chip" title="Tenant-Rolle">
|
||||
{tenant.role}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
import { NavLink, useLocation } from 'react-router-dom'
|
||||
import { LogOut } from 'lucide-react'
|
||||
import { getAppNavItems, isNavItemActive } from '../config/appNav.js'
|
||||
import { ContextIndicator } from './ContextIndicator.jsx'
|
||||
|
||||
export function DesktopSidebar({ capabilities, user, onLogout }) {
|
||||
const loc = useLocation()
|
||||
const items = getAppNavItems(capabilities)
|
||||
|
||||
const initial = (user?.display_name || user?.email || '?').trim().slice(0, 1).toUpperCase()
|
||||
|
||||
return (
|
||||
<aside className="desktop-sidebar" aria-label="Hauptnavigation">
|
||||
<div className="desktop-sidebar__brand">
|
||||
<div className="desktop-sidebar__logo" aria-hidden />
|
||||
<div className="desktop-sidebar__titles">
|
||||
<div className="desktop-sidebar__title">Kairo</div>
|
||||
<div className="desktop-sidebar__subtitle">Jinkendo</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<ContextIndicator variant="desktop" />
|
||||
|
||||
<nav className="desktop-sidebar__nav">
|
||||
{items.map((item) => (
|
||||
<NavLink
|
||||
key={item.key}
|
||||
to={item.to}
|
||||
end={!!item.end}
|
||||
className={({ isActive }) =>
|
||||
'desktop-sidebar__link' +
|
||||
(isNavItemActive(loc.pathname, item, isActive)
|
||||
? ' desktop-sidebar__link--active'
|
||||
: '')
|
||||
}
|
||||
>
|
||||
<item.Icon size={20} strokeWidth={2} aria-hidden />
|
||||
<span>{item.label}</span>
|
||||
</NavLink>
|
||||
))}
|
||||
</nav>
|
||||
|
||||
<div className="desktop-sidebar__footer">
|
||||
<div className="desktop-sidebar__user-row">
|
||||
<div className="desktop-sidebar__avatar" aria-hidden>
|
||||
{initial}
|
||||
</div>
|
||||
<span className="desktop-sidebar__user-name">{user?.display_name || user?.email}</span>
|
||||
<button
|
||||
type="button"
|
||||
className="desktop-sidebar__logout"
|
||||
onClick={onLogout}
|
||||
title="Abmelden"
|
||||
aria-label="Abmelden"
|
||||
>
|
||||
<LogOut size={18} />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
)
|
||||
}
|
||||
@@ -3,7 +3,7 @@ export function ErrorState({ message, onRetry }) {
|
||||
<div className="state-error">
|
||||
<p>{message || 'Ein Fehler ist aufgetreten.'}</p>
|
||||
{onRetry && (
|
||||
<button type="button" className="secondary" onClick={onRetry}>
|
||||
<button type="button" className="btn btn-secondary" onClick={onRetry}>
|
||||
Erneut versuchen
|
||||
</button>
|
||||
)}
|
||||
|
||||
@@ -50,11 +50,11 @@ export function InitiativeForm({
|
||||
</select>
|
||||
</label>
|
||||
<div className="form-actions">
|
||||
<button type="submit" disabled={busy}>
|
||||
<button type="submit" className="btn btn-primary" disabled={busy}>
|
||||
{busy ? 'Speichern …' : submitLabel}
|
||||
</button>
|
||||
{onCancel && (
|
||||
<button type="button" className="secondary" onClick={onCancel} disabled={busy}>
|
||||
<button type="button" className="btn btn-secondary" onClick={onCancel} disabled={busy}>
|
||||
Abbrechen
|
||||
</button>
|
||||
)}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
export function WidgetCard({
|
||||
title,
|
||||
subtitle,
|
||||
actions,
|
||||
variant,
|
||||
children,
|
||||
className = '',
|
||||
footer,
|
||||
}) {
|
||||
return (
|
||||
<section
|
||||
className={`card widget-card${variant ? ` card--${variant}` : ''} ${className}`.trim()}
|
||||
>
|
||||
{(title || actions) && (
|
||||
<header className="card-header">
|
||||
<div>
|
||||
{title && <h3 className="card-title">{title}</h3>}
|
||||
{subtitle && <p className="card-subtitle">{subtitle}</p>}
|
||||
</div>
|
||||
{actions}
|
||||
</header>
|
||||
)}
|
||||
<div className="card-body">{children}</div>
|
||||
{footer && <footer className="card-footer">{footer}</footer>}
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user