import { useState } from 'react' import { Link } from 'react-router-dom' import { gatePath } from '../utils/routes.js' import { ROADMAP_ITEM_TYPE_LABELS, SEQUENCING_MODE_LABELS, } from '../constants/status.js' import { StatusBadge } from './StatusBadge.jsx' import { EmptyState } from './EmptyState.jsx' import { Modal } from './Modal.jsx' import { RoadmapItemForm } from './RoadmapItemForm.jsx' function formatDate(value) { if (!value) return null try { return new Date(value.includes('T') ? value : `${value}T12:00:00`).toLocaleDateString( 'de-DE', ) } catch { return value } } export function RoadmapPlanSection({ initiativeId, items, canManage, onCreate, onDelete, busy, }) { const [showCreate, setShowCreate] = useState(false) async function handleCreateSubmit(payload) { await onCreate(payload) setShowCreate(false) } return (

Zielzustände (Gates)

Überprüfbare Zielpunkte — optional. Bearbeitung und Verify auf der Gate-Detailseite, nicht inline in der Liste.

{canManage && ( )}
{items.length === 0 && ( )} setShowCreate(false)}> setShowCreate(false)} busy={busy} submitLabel="Anlegen" mode="create" />
) }