refactor(steering): Sprint-Vorschlaege mit austauschbarem Ranker und Abhaengigkeiten
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 4m8s
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 19s
Test Suite / playwright-smoke (push) Successful in 13s
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 4m8s
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 19s
Test Suite / playwright-smoke (push) Successful in 13s
Keine feste Bug-zuerst-Policy: heuristic_v0 als Fallback, agent_v1-Slot vorbereitet, parent_action-Abhaengigkeiten und factors[] fuer spaetere KI-Steuerung. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
20636f88d2
commit
1bbc5dbfce
13 files changed
+524
-134
No files matched your search
@@ -23,7 +23,9 @@ export function SprintCommitProposalPanel({
|
||||
<div>
|
||||
<h2>Sprint-Vorschläge</h2>
|
||||
<p className="section-lead muted">
|
||||
Vom Steuerungskern priorisiert — Accept committet ins Sprint-Backlog (kein Auto-Commit).
|
||||
Vom Steuerungskern priorisiert (Ranker:{' '}
|
||||
{filtered[0]?.ranker_key || 'heuristic_v0'}) — Accept committet ins Sprint-Backlog.
|
||||
Keine feste Bug-Policy; später Agent/KI wählbar.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -35,6 +37,11 @@ export function SprintCommitProposalPanel({
|
||||
{proposal.rank}. {proposal.title}
|
||||
</strong>
|
||||
<p className="list-item-sub muted">{proposalReasonLabel(proposal)}</p>
|
||||
{proposal.dependency_blocked && (
|
||||
<p className="list-item-sub muted sprint-commit-proposal__blocked">
|
||||
Abhängigkeit offen — wartet auf Feature oder Epic-Kontext
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
<div className="list-item-meta action-controls">
|
||||
{proposal.item_kind && (
|
||||
@@ -47,7 +54,7 @@ export function SprintCommitProposalPanel({
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-primary btn-sm"
|
||||
disabled={busy}
|
||||
disabled={busy || proposal.dependency_blocked}
|
||||
onClick={() =>
|
||||
onAcceptProposal?.(proposal.scope_id, {
|
||||
work_cycle_id: proposal.work_cycle_id,
|
||||
|
||||
@@ -1716,6 +1716,10 @@
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.sprint-commit-proposal__blocked {
|
||||
color: var(--jk-warning-text, #7a4b08);
|
||||
}
|
||||
|
||||
.archetype-badge {
|
||||
background: var(--jk-surface-muted, #eef2f6);
|
||||
color: var(--jk-text-secondary, #445);
|
||||
|
||||
@@ -9,13 +9,13 @@ export function sprintProposalsForCycle(proposals = [], workCycleId = '') {
|
||||
|
||||
export function proposalReasonLabel(proposal) {
|
||||
const labels = {
|
||||
bug_critical: 'Kritischer Bug',
|
||||
bug_high_priority: 'Bug (hoch)',
|
||||
bug_default: 'Bug',
|
||||
issue_default: 'Issue',
|
||||
story_high_priority: 'Story (hoch)',
|
||||
story_ready: 'Story bereit',
|
||||
idea_default: 'Idee',
|
||||
priority_critical: 'Dringlichkeit critical',
|
||||
priority_high: 'Hohe Priorität',
|
||||
candidate_bug_or_issue: 'Kandidat (Heuristik)',
|
||||
candidate_ready: 'Commit-bereit (Heuristik)',
|
||||
waiting_on_feature_action: 'Wartet auf Feature-AP',
|
||||
missing_parent_action: 'Feature-Referenz fehlt',
|
||||
dependency_blocked: 'Abhängigkeit offen',
|
||||
}
|
||||
return labels[proposal?.reason_code] || proposal?.summary || 'Vorschlag'
|
||||
}
|
||||
@@ -13,6 +13,7 @@ describe('sprintCommitProposal', () => {
|
||||
})
|
||||
|
||||
it('labels reason codes', () => {
|
||||
expect(proposalReasonLabel({ reason_code: 'bug_critical' })).toBe('Kritischer Bug')
|
||||
expect(proposalReasonLabel({ reason_code: 'priority_critical' })).toBe('Dringlichkeit critical')
|
||||
expect(proposalReasonLabel({ reason_code: 'waiting_on_feature_action' })).toContain('Feature')
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user