feat(plan): Join-Gate im Gate-Designer für alle Archetypen
Deploy Development / deploy (push) Successful in 48s
Test Suite / pytest-backend (push) Failing after 4m44s
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) Successful in 48s
Test Suite / pytest-backend (push) Failing after 4m44s
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
Typ Join/Schaltknoten anlegbar, Detail ohne Verify, visuelle Kennzeichnung im Graph. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
3a0ef3a734
commit
b80f52cb50
7 files changed
+95
-23
No files matched your search
@@ -3,6 +3,7 @@ import { gatePath } from '../utils/routes.js'
|
||||
import {
|
||||
MILESTONE_STATUS_LABELS,
|
||||
ROADMAP_ITEM_TYPE_LABELS,
|
||||
isJoinGateItem,
|
||||
} from '../constants/status.js'
|
||||
import { StatusBadge } from './StatusBadge.jsx'
|
||||
|
||||
@@ -25,6 +26,7 @@ export function GateDesignerNodePanel({
|
||||
}) {
|
||||
if (!item) return null
|
||||
|
||||
const joinGate = isJoinGateItem(item)
|
||||
const graphItem = graphState?.items?.[item.id]
|
||||
|
||||
const progress = criteriaProgress?.[item.id]
|
||||
@@ -72,8 +74,15 @@ export function GateDesignerNodePanel({
|
||||
)}
|
||||
</dl>
|
||||
|
||||
{item.goal_description && (
|
||||
<p className="gate-designer-node-panel__goal muted">{item.goal_description}</p>
|
||||
{joinGate && (
|
||||
<p className="gate-designer-node-panel__topology muted">
|
||||
Schaltknoten — schaltet, wenn alle Eingänge (requires) erreicht sind. Keine Checkliste,
|
||||
kein manuelles Verify.
|
||||
</p>
|
||||
)}
|
||||
|
||||
{item.goal_description && (
|
||||
<p className="gate-designer-node-panel__goal muted">{item.goal_description}</p>
|
||||
)}
|
||||
|
||||
{graphItem?.parallel_group_keys?.length > 0 && (
|
||||
|
||||
@@ -610,6 +610,7 @@ export function GateGraphDesigner({
|
||||
const nodeClass =
|
||||
'gate-map-view__node gate-map-view__node--' +
|
||||
(item.status || 'planned') +
|
||||
(item.item_type === 'join_gate' ? ' gate-map-view__node--join_gate' : '') +
|
||||
(isSelected ? ' gate-graph-designer__node--selected' : '') +
|
||||
(draggingNodeId === node.id ? ' gate-graph-designer__node--dragging' : '')
|
||||
return (
|
||||
|
||||
@@ -171,6 +171,7 @@ export function GateMapView({ initiativeId, items, graphState: graphStateProp, e
|
||||
const nodeClass =
|
||||
'gate-map-view__node gate-map-view__node--' +
|
||||
(item.status || 'planned') +
|
||||
(item.item_type === 'join_gate' ? ' gate-map-view__node--join_gate' : '') +
|
||||
(enforceBlocking && nodeGraph?.blocked ? ' gate-map-view__node--blocked' : '') +
|
||||
(nodeGraph?.ready ? ' gate-map-view__node--ready' : '')
|
||||
return (
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
import { useState } from 'react'
|
||||
import {
|
||||
MILESTONE_STATUSES,
|
||||
MILESTONE_STATUS_LABELS,
|
||||
ROADMAP_ITEM_TYPES_FOR_DESIGNER,
|
||||
ROADMAP_ITEM_TYPE_LABELS,
|
||||
} from '../constants/status.js'
|
||||
|
||||
const ITEM_TYPES = ['milestone', 'review_gate', 'maturity_stage']
|
||||
const EDITABLE_STATUSES = MILESTONE_STATUSES.filter(
|
||||
(s) => !['reached', 'moved', 'discarded'].includes(s),
|
||||
)
|
||||
@@ -17,6 +18,9 @@ export function RoadmapItemForm({
|
||||
submitLabel = 'Anlegen',
|
||||
mode = 'create',
|
||||
}) {
|
||||
const [itemType, setItemType] = useState(initial.item_type || 'milestone')
|
||||
const isJoinGate = itemType === 'join_gate'
|
||||
|
||||
async function handleSubmit(e) {
|
||||
e.preventDefault()
|
||||
const form = e.target
|
||||
@@ -27,7 +31,7 @@ export function RoadmapItemForm({
|
||||
item_type: form.item_type.value,
|
||||
sequencing_mode: initial.sequencing_mode || 'sequential',
|
||||
}
|
||||
if (mode === 'create') {
|
||||
if (mode === 'create' && !isJoinGate) {
|
||||
const initialCriterion = form.initial_criterion_title?.value?.trim()
|
||||
if (initialCriterion) {
|
||||
payload.initial_criterion_title = initialCriterion
|
||||
@@ -46,13 +50,23 @@ export function RoadmapItemForm({
|
||||
{mode === 'create' && (
|
||||
<label>
|
||||
Typ
|
||||
<select name="item_type" defaultValue={initial.item_type || 'milestone'}>
|
||||
{ITEM_TYPES.map((t) => (
|
||||
<select
|
||||
name="item_type"
|
||||
value={itemType}
|
||||
onChange={(e) => setItemType(e.target.value)}
|
||||
>
|
||||
{ROADMAP_ITEM_TYPES_FOR_DESIGNER.map((t) => (
|
||||
<option key={t} value={t}>
|
||||
{ROADMAP_ITEM_TYPE_LABELS[t] || t}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
{isJoinGate && (
|
||||
<span className="muted form-hint">
|
||||
Schaltknoten: sammelt Eingänge (AND) und schaltet Ausgänge — keine Übungen, kein
|
||||
manuelles Verify.
|
||||
</span>
|
||||
)}
|
||||
</label>
|
||||
)}
|
||||
<label>
|
||||
@@ -62,7 +76,9 @@ export function RoadmapItemForm({
|
||||
defaultValue={initial.title || ''}
|
||||
maxLength={255}
|
||||
required
|
||||
placeholder="z. B. MVP nutzbar im Alltag"
|
||||
placeholder={
|
||||
isJoinGate ? 'z. B. Integration abgeschlossen' : 'z. B. MVP nutzbar im Alltag'
|
||||
}
|
||||
disabled={statusLocked}
|
||||
/>
|
||||
</label>
|
||||
@@ -72,14 +88,20 @@ export function RoadmapItemForm({
|
||||
name="goal_description"
|
||||
rows={3}
|
||||
defaultValue={initial.goal_description || ''}
|
||||
placeholder="Kurzer Kontext — prüfbare Akzeptanz legst du als Kriterien an."
|
||||
placeholder={
|
||||
isJoinGate
|
||||
? 'Konsolidierter Meilenstein — welche Pfade laufen hier zusammen?'
|
||||
: 'Kurzer Kontext — prüfbare Akzeptanz legst du als Kriterien an.'
|
||||
}
|
||||
disabled={statusLocked}
|
||||
/>
|
||||
<span className="muted form-hint">
|
||||
Die Checkliste auf der Gate-Detailseite ist führend für Verify.
|
||||
</span>
|
||||
{!isJoinGate && (
|
||||
<span className="muted form-hint">
|
||||
Die Checkliste auf der Gate-Detailseite ist führend für Verify.
|
||||
</span>
|
||||
)}
|
||||
</label>
|
||||
{mode === 'create' && (
|
||||
{mode === 'create' && !isJoinGate && (
|
||||
<label>
|
||||
Erstes Kriterium (optional)
|
||||
<input
|
||||
@@ -104,6 +126,7 @@ export function RoadmapItemForm({
|
||||
<p className="muted form-hint">
|
||||
Reihenfolge und Parallelität steuerst du über Kanten auf der Gate-Detailseite — nicht mehr
|
||||
über ein Abfolge-Feld.
|
||||
{isJoinGate && ' Eingänge: Join → Work-Gate (requires). Ausgänge: Work-Gate → Join.'}
|
||||
</p>
|
||||
{mode === 'edit' && (
|
||||
<label>
|
||||
|
||||
Reference in new issue
Block a user