AP1.9a: Arbeitsmodi-Shell mit Scope, Objekt-Routen und Legacy-Redirects.
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Failing after 1m46s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Failing after 1m46s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Ersetzt die Vorhaben-Tab-Navigation durch Cockpit/Ausführen/Planen/Kontrolle/Team, Deep Links für APs/Projekte/Gates und Programm-Scope im Header. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
33831a8c2c
commit
e42edd86fa
54 files changed
+2489
-150
No files matched your search
@@ -0,0 +1,65 @@
|
||||
import { useEffect, useState } from 'react'
|
||||
import { Link } from 'react-router-dom'
|
||||
import { getActorWorkload } from '../../api/workspace.js'
|
||||
import { ModeShell } from '../../components/ModeShell.jsx'
|
||||
import { LoadingState } from '../../components/LoadingState.jsx'
|
||||
import { ErrorState } from '../../components/ErrorState.jsx'
|
||||
import { scopedPath } from '../../utils/routes.js'
|
||||
|
||||
export function TeamPage() {
|
||||
const [rows, setRows] = useState(null)
|
||||
const [error, setError] = useState(null)
|
||||
|
||||
useEffect(() => {
|
||||
let cancelled = false
|
||||
getActorWorkload()
|
||||
.then((data) => {
|
||||
if (!cancelled) setRows(data)
|
||||
})
|
||||
.catch((err) => {
|
||||
if (!cancelled) setError(err.message)
|
||||
})
|
||||
return () => {
|
||||
cancelled = true
|
||||
}
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<div className="app-page">
|
||||
<ModeShell modeKey="team" />
|
||||
{rows === null && !error && <LoadingState message="Lade Team-Auslastung …" />}
|
||||
{error && <ErrorState message={error} />}
|
||||
{rows && (
|
||||
<section className="card">
|
||||
<h2 className="card-title">Auslastung nach Actor</h2>
|
||||
{rows.length === 0 ? (
|
||||
<p className="muted">Keine Zuweisungen im Portfolio.</p>
|
||||
) : (
|
||||
<ul className="team-workload-list">
|
||||
{rows.map((row) => (
|
||||
<li key={row.actor_id} className="team-workload-list__item">
|
||||
<div>
|
||||
<strong>{row.actor_name || row.actor_id}</strong>
|
||||
<span className="muted">
|
||||
{' '}
|
||||
· {row.open_actions ?? 0} offen
|
||||
{(row.blocked_actions ?? 0) > 0
|
||||
? ` · ${row.blocked_actions} blockiert`
|
||||
: ''}
|
||||
</span>
|
||||
</div>
|
||||
<Link to={scopedPath('/work/mine')} className="link-inline">
|
||||
Queue ansehen
|
||||
</Link>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
<p className="page-footer-link muted">
|
||||
AP1.9b erweitert Team um Filter nach Vorhaben und direkte Zuweisungslinks.
|
||||
</p>
|
||||
</section>
|
||||
)}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user