AP1.12b/d: Gates per Modal und Actions in der Plan-Outline.
Test Suite / lint-backend (push) Waiting to run
Test Suite / compose-smoke (push) Waiting to run
Test Suite / k6 /api/health Baseline (push) Blocked by required conditions
Test Suite / playwright-smoke (push) Blocked by required conditions
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Has been cancelled
Test Suite / lint-backend (push) Waiting to run
Test Suite / compose-smoke (push) Waiting to run
Test Suite / k6 /api/health Baseline (push) Blocked by required conditions
Test Suite / playwright-smoke (push) Blocked by required conditions
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Has been cancelled
RoadmapPlanSection ist read-only mit Modal-Anlage; Stammdaten auf der Gate-Detailseite. Unter Arbeit zeigt die Outline offene Actions wie der Projektbaum unter Struktur. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
bcf6f83813
commit
b1686f3a98
7 files changed
+275
-181
No files matched your search
@@ -27,9 +27,6 @@ export function InitiativePlanPage() {
|
||||
items={roadmapItems}
|
||||
canManage={capabilities.has('kairo.milestone.manage')}
|
||||
onCreate={handleCreateRoadmapItem}
|
||||
onUpdateStatus={handleRoadmapItemStatus}
|
||||
onUpdateItem={handleUpdateRoadmapItem}
|
||||
onVerifyWithEvidence={handleVerifyWithEvidence}
|
||||
onDelete={handleDeleteRoadmapItem}
|
||||
busy={formBusy}
|
||||
/>
|
||||
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
deferRoadmapCriterion,
|
||||
verifyRoadmapItemReached,
|
||||
reopenRoadmapItem,
|
||||
updateRoadmapItem,
|
||||
} from '../../api/roadmap.js'
|
||||
import { ErrorState } from '../../components/ErrorState.jsx'
|
||||
import { LoadingState } from '../../components/LoadingState.jsx'
|
||||
@@ -23,12 +24,15 @@ import {
|
||||
CRITERION_STATUS_LABELS,
|
||||
MILESTONE_STATUS_LABELS,
|
||||
ROADMAP_ITEM_TYPE_LABELS,
|
||||
SEQUENCING_MODE_LABELS,
|
||||
} from '../../constants/status.js'
|
||||
import { useCapabilities } from '../../hooks/useCapabilities.js'
|
||||
import { useInitiativeOperations } from '../../context/InitiativeOperationsContext.jsx'
|
||||
import { scopedPath } from '../../utils/routes.js'
|
||||
import { listGateContributions } from '../../api/journey.js'
|
||||
import { GateContributionsSection } from '../../components/GateContributionsSection.jsx'
|
||||
import { Modal } from '../../components/Modal.jsx'
|
||||
import { RoadmapItemForm } from '../../components/RoadmapItemForm.jsx'
|
||||
|
||||
function CriterionDecisionForm({ label, onSubmit, busy }) {
|
||||
const [title, setTitle] = useState('')
|
||||
@@ -95,6 +99,7 @@ export function RoadmapItemDetailPage({ overrideItemId }) {
|
||||
const [contributions, setContributions] = useState(null)
|
||||
const [contributionsLoading, setContributionsLoading] = useState(true)
|
||||
const [contributionsError, setContributionsError] = useState(null)
|
||||
const [editingMeta, setEditingMeta] = useState(false)
|
||||
|
||||
const loadContributions = useCallback(async () => {
|
||||
setContributionsLoading(true)
|
||||
@@ -171,10 +176,24 @@ export function RoadmapItemDetailPage({ overrideItemId }) {
|
||||
{ROADMAP_ITEM_TYPE_LABELS[item.item_type] || item.item_type}
|
||||
{' · '}
|
||||
{MILESTONE_STATUS_LABELS[item.status] || item.status}
|
||||
{' · '}
|
||||
{SEQUENCING_MODE_LABELS[item.sequencing_mode] || item.sequencing_mode}
|
||||
</p>
|
||||
{item.goal_description && <p>{item.goal_description}</p>}
|
||||
</div>
|
||||
<StatusBadge kind="milestone" status={item.status} />
|
||||
<div className="section-header__actions">
|
||||
<StatusBadge kind="milestone" status={item.status} />
|
||||
{canManage && item.status !== 'reached' && (
|
||||
<button
|
||||
type="button"
|
||||
className="btn btn-secondary btn-sm"
|
||||
onClick={() => setEditingMeta(true)}
|
||||
disabled={busy}
|
||||
>
|
||||
Stammdaten
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p className="muted">
|
||||
@@ -365,6 +384,26 @@ export function RoadmapItemDetailPage({ overrideItemId }) {
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<Modal
|
||||
open={editingMeta}
|
||||
title="Plan-Element bearbeiten"
|
||||
onClose={() => setEditingMeta(false)}
|
||||
>
|
||||
<RoadmapItemForm
|
||||
mode="edit"
|
||||
initial={item}
|
||||
busy={busy}
|
||||
submitLabel="Speichern"
|
||||
onCancel={() => setEditingMeta(false)}
|
||||
onSubmit={async (payload) => {
|
||||
await runAction(async () => {
|
||||
await updateRoadmapItem(itemId, payload)
|
||||
setEditingMeta(false)
|
||||
})
|
||||
}}
|
||||
/>
|
||||
</Modal>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user