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
@@ -5,6 +5,7 @@ import { ActionList } from '../components/ActionList.jsx'
|
||||
import { EmptyState } from '../components/EmptyState.jsx'
|
||||
import { ErrorState } from '../components/ErrorState.jsx'
|
||||
import { LoadingState } from '../components/LoadingState.jsx'
|
||||
import { WidgetCard } from '../components/WidgetCard.jsx'
|
||||
|
||||
export function BlockedActionsWidget() {
|
||||
const [actions, setActions] = useState([])
|
||||
@@ -29,13 +30,16 @@ export function BlockedActionsWidget() {
|
||||
}, [load])
|
||||
|
||||
return (
|
||||
<div className="widget-card widget-card-alert">
|
||||
<div className="widget-header">
|
||||
<h3>Blockierte Maßnahmen</h3>
|
||||
<button type="button" className="link-button" onClick={load} disabled={loading}>
|
||||
<WidgetCard
|
||||
title="Blockierte Maßnahmen"
|
||||
subtitle="Erfordern Aufmerksamkeit"
|
||||
variant="alert"
|
||||
actions={
|
||||
<button type="button" className="btn btn-ghost" onClick={load} disabled={loading}>
|
||||
Aktualisieren
|
||||
</button>
|
||||
</div>
|
||||
}
|
||||
>
|
||||
{loading && <LoadingState />}
|
||||
{!loading && error && <ErrorState message={error} onRetry={load} />}
|
||||
{!loading && !error && (
|
||||
@@ -47,8 +51,12 @@ export function BlockedActionsWidget() {
|
||||
/>
|
||||
)}
|
||||
{!loading && !error && actions.length > 0 && (
|
||||
<p className="widget-footer muted">Blockierte Maßnahmen erfordern Aufmerksamkeit.</p>
|
||||
<p className="muted mt-sm">
|
||||
<Link to="/my-actions" className="link-inline">
|
||||
In „Meine Maßnahmen“ bearbeiten
|
||||
</Link>
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
</WidgetCard>
|
||||
)
|
||||
}
|
||||
@@ -6,6 +6,7 @@ import { PriorityBadge } from '../components/PriorityBadge.jsx'
|
||||
import { EmptyState } from '../components/EmptyState.jsx'
|
||||
import { ErrorState } from '../components/ErrorState.jsx'
|
||||
import { LoadingState } from '../components/LoadingState.jsx'
|
||||
import { WidgetCard } from '../components/WidgetCard.jsx'
|
||||
|
||||
export function InitiativesWidget() {
|
||||
const [initiatives, setInitiatives] = useState([])
|
||||
@@ -32,13 +33,14 @@ export function InitiativesWidget() {
|
||||
}, [load])
|
||||
|
||||
return (
|
||||
<div className="widget-card">
|
||||
<div className="widget-header">
|
||||
<h3>Aktive Vorhaben</h3>
|
||||
<Link to="/initiatives" className="link-button">
|
||||
<WidgetCard
|
||||
title="Aktive Vorhaben"
|
||||
actions={
|
||||
<Link to="/initiatives" className="btn btn-ghost">
|
||||
Alle
|
||||
</Link>
|
||||
</div>
|
||||
}
|
||||
>
|
||||
{loading && <LoadingState />}
|
||||
{!loading && error && <ErrorState message={error} onRetry={load} />}
|
||||
{!loading && !error && initiatives.length === 0 && (
|
||||
@@ -47,7 +49,7 @@ export function InitiativesWidget() {
|
||||
{!loading && !error && initiatives.length > 0 && (
|
||||
<ul className="item-list">
|
||||
{initiatives.map((item) => (
|
||||
<li key={item.id} className="list-item">
|
||||
<li key={item.id} className="list-item card-list-item">
|
||||
<Link to={`/initiatives/${item.id}`} className="list-item-link">
|
||||
<strong>{item.title}</strong>
|
||||
</Link>
|
||||
@@ -59,6 +61,6 @@ export function InitiativesWidget() {
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
</div>
|
||||
</WidgetCard>
|
||||
)
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import { ActionList } from '../components/ActionList.jsx'
|
||||
import { EmptyState } from '../components/EmptyState.jsx'
|
||||
import { ErrorState } from '../components/ErrorState.jsx'
|
||||
import { LoadingState } from '../components/LoadingState.jsx'
|
||||
import { WidgetCard } from '../components/WidgetCard.jsx'
|
||||
|
||||
export function MyOpenActionsWidget() {
|
||||
const [actions, setActions] = useState([])
|
||||
@@ -29,13 +30,22 @@ export function MyOpenActionsWidget() {
|
||||
}, [load])
|
||||
|
||||
return (
|
||||
<div className="widget-card">
|
||||
<div className="widget-header">
|
||||
<h3>Meine offenen Maßnahmen</h3>
|
||||
<button type="button" className="link-button" onClick={load} disabled={loading}>
|
||||
<WidgetCard
|
||||
title="Meine offenen Maßnahmen"
|
||||
subtitle="Offen und in Arbeit — ohne blockiert"
|
||||
actions={
|
||||
<button type="button" className="btn btn-ghost" onClick={load} disabled={loading}>
|
||||
Aktualisieren
|
||||
</button>
|
||||
</div>
|
||||
}
|
||||
footer={
|
||||
actions.length > 0 ? (
|
||||
<Link to="/my-actions" className="link-inline">
|
||||
Alle meine Maßnahmen →
|
||||
</Link>
|
||||
) : null
|
||||
}
|
||||
>
|
||||
{loading && <LoadingState />}
|
||||
{!loading && error && <ErrorState message={error} onRetry={load} />}
|
||||
{!loading && !error && (
|
||||
@@ -48,11 +58,6 @@ export function MyOpenActionsWidget() {
|
||||
}
|
||||
/>
|
||||
)}
|
||||
{!loading && !error && actions.length > 0 && (
|
||||
<p className="widget-footer">
|
||||
<Link to="/initiatives">Alle Vorhaben →</Link>
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
</WidgetCard>
|
||||
)
|
||||
}
|
||||
@@ -1,42 +1,35 @@
|
||||
import { useSession } from '../context/SessionContext.jsx'
|
||||
import { WidgetCard } from '../components/WidgetCard.jsx'
|
||||
|
||||
export function TenantContextWidget() {
|
||||
const { context, me } = useSession()
|
||||
|
||||
if (!context?.tenant) {
|
||||
return (
|
||||
<div className="widget-card">
|
||||
<h3>Kontext</h3>
|
||||
<p className="muted">Kein aktiver Tenant — bitte Tenant wählen.</p>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="widget-card">
|
||||
<h3>Kontext</h3>
|
||||
<dl className="context-dl">
|
||||
<div>
|
||||
<dt>Nutzer</dt>
|
||||
<dd>{me?.display_name}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Tenant</dt>
|
||||
<dd>{context.tenant.name}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Tenant-Rolle</dt>
|
||||
<dd>{context.tenant.role}</dd>
|
||||
</div>
|
||||
{context.actor && (
|
||||
<WidgetCard title="Kontext" subtitle="Aktiver Mandant und Actor">
|
||||
{!context?.tenant ? (
|
||||
<p className="muted">Kein aktiver Tenant — bitte Tenant wählen.</p>
|
||||
) : (
|
||||
<dl className="context-dl">
|
||||
<div>
|
||||
<dt>Actor</dt>
|
||||
<dd>
|
||||
{context.actor.type} · {context.actor.id.slice(0, 8)}…
|
||||
</dd>
|
||||
<dt>Nutzer</dt>
|
||||
<dd>{me?.display_name}</dd>
|
||||
</div>
|
||||
)}
|
||||
</dl>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Tenant</dt>
|
||||
<dd>{context.tenant.name}</dd>
|
||||
</div>
|
||||
<div>
|
||||
<dt>Tenant-Rolle</dt>
|
||||
<dd>{context.tenant.role}</dd>
|
||||
</div>
|
||||
{context.actor && (
|
||||
<div>
|
||||
<dt>Actor</dt>
|
||||
<dd>{context.actor.type}</dd>
|
||||
</div>
|
||||
)}
|
||||
</dl>
|
||||
)}
|
||||
</WidgetCard>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user