Some checks failed
Deploy Development / deploy (push) Successful in 45s
Test Suite / pytest-backend (push) Failing after 1m46s
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 2s
Test Suite / compose-smoke (push) Has been skipped
Migration 015 für Backlog sort_order; DnD auf Desktop, Pfeile auf Mobile; PATCH-Batches für Geschwister. Co-authored-by: Cursor <cursoragent@cursor.com>
39 lines
979 B
JavaScript
39 lines
979 B
JavaScript
import { useInitiativeOperations } from '../../context/InitiativeOperationsContext.jsx'
|
|
import { BacklogSection } from '../../components/BacklogSection.jsx'
|
|
|
|
export function InitiativeInboxPage() {
|
|
const {
|
|
backlogItems,
|
|
roadmapItems,
|
|
capabilities,
|
|
formBusy,
|
|
error,
|
|
handleCreateBacklog,
|
|
handleBacklogGate,
|
|
handleBacklogStatus,
|
|
handleConvertBacklog,
|
|
handleDeleteBacklog,
|
|
} = useInitiativeOperations()
|
|
|
|
if (!capabilities.has('kairo.initiative.read')) {
|
|
return null
|
|
}
|
|
|
|
return (
|
|
<>
|
|
{error && <p className="error">{error}</p>}
|
|
<BacklogSection
|
|
items={backlogItems}
|
|
roadmapItems={roadmapItems}
|
|
canManage={capabilities.has('kairo.backlog.manage')}
|
|
onCreate={handleCreateBacklog}
|
|
onUpdate={handleUpdateBacklog}
|
|
onReorder={handleReorderBacklog}
|
|
onConvert={handleConvertBacklog}
|
|
onDelete={handleDeleteBacklog}
|
|
busy={formBusy}
|
|
/>
|
|
</>
|
|
)
|
|
}
|