Erfassen und Transparent: Archetyp, Methode und Auspraegung in der UI sichtbar.
Test Suite / pytest-backend (push) Failing after 2s
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 3s
Test Suite / compose-smoke (push) Has been skipped
Deploy Development / deploy (push) Failing after 50s

Method-Profiles-API und Auswahl beim Anlegen/Profil; Steuerungs-Meta in Listen und Plan; Projekt-Archetyp-Spiegel, Next-Action-Links und Umlaut-Fix fuer testbare Guidance.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-07-10 12:36:12 +02:00
1 parent 95b743d6fd
commit efb45a3ee6
31 files changed
+965 -65

No files matched your search

@@ -8,8 +8,11 @@ import { ErrorState } from '../components/ErrorState.jsx'
import { LoadingState } from '../components/LoadingState.jsx'
import { scopedPath } from '../utils/routes.js'
import { WidgetCard } from '../components/WidgetCard.jsx'
import { ArchetypeBadge } from '../components/ArchetypeBadge.jsx'
import { useEntityArchetypes } from '../hooks/useEntityArchetypes.js'
export function InitiativePortfolioWidget() {
const { initiativeArchetypes } = useEntityArchetypes()
const [initiatives, setInitiatives] = useState([])
const [loading, setLoading] = useState(true)
const [error, setError] = useState(null)
@@ -60,6 +63,10 @@ export function InitiativePortfolioWidget() {
<p className="initiative-portfolio-card-goal muted">{item.goal}</p>
)}
<div className="initiative-portfolio-card-badges">
<ArchetypeBadge
archetypeKey={item.archetype_key}
archetypes={initiativeArchetypes}
/>
<StatusBadge kind="initiative" status={item.status} />
<PriorityBadge priority={item.priority} />
</div>
+30 -5
View File
@@ -15,6 +15,25 @@ function NextActionList({ items, initiativeId, showInitiativeLink = true }) {
)
}
function actionLinkForItem(item) {
if (item.action_id) {
return { to: actionPath(item.action_id), label: 'Arbeitspaket' }
}
if (item.backlog_item_id && item.initiative_id) {
return {
to: scopedPath('/plan/inbox', { initiativeId: item.initiative_id }),
label: 'Zum Eingang',
}
}
if (item.kind === 'create_action' && item.initiative_id) {
return {
to: scopedPath('/plan/work', { initiativeId: item.initiative_id }),
label: 'Arbeitspaket anlegen',
}
}
return null
}
return (
<ol className="item-list next-action-list">
{items.map((item, index) => (
@@ -34,11 +53,17 @@ function NextActionList({ items, initiativeId, showInitiativeLink = true }) {
)}
</div>
<div className="list-item-meta">
{item.action_id && (
<Link to={actionPath(item.action_id)} className="btn btn-primary btn-sm">
Arbeitspaket
</Link>
)}
{(() => {
const link = actionLinkForItem(item)
if (link) {
return (
<Link to={link.to} className="btn btn-primary btn-sm">
{link.label}
</Link>
)
}
return null
})()}
{showInitiativeLink && item.initiative_id && !initiativeId && (
<Link
to={scopedPath('/control/status', { initiativeId: item.initiative_id })}