2026-07-05 18:29:47 +02:00
|
|
|
import { useInitiativeOperations } from '../../context/InitiativeOperationsContext.jsx'
|
|
|
|
|
import { BacklogSection } from '../../components/BacklogSection.jsx'
|
|
|
|
|
|
|
|
|
|
export function InitiativeInboxPage() {
|
|
|
|
|
const {
|
|
|
|
|
backlogItems,
|
2026-07-06 08:43:11 +02:00
|
|
|
roadmapItems,
|
2026-07-05 18:29:47 +02:00
|
|
|
capabilities,
|
|
|
|
|
formBusy,
|
|
|
|
|
error,
|
|
|
|
|
handleCreateBacklog,
|
2026-07-06 08:43:11 +02:00
|
|
|
handleBacklogGate,
|
2026-07-05 18:29:47 +02:00
|
|
|
handleBacklogStatus,
|
|
|
|
|
handleConvertBacklog,
|
|
|
|
|
handleDeleteBacklog,
|
|
|
|
|
} = useInitiativeOperations()
|
|
|
|
|
|
|
|
|
|
if (!capabilities.has('kairo.initiative.read')) {
|
|
|
|
|
return null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
{error && <p className="error">{error}</p>}
|
|
|
|
|
<BacklogSection
|
|
|
|
|
items={backlogItems}
|
2026-07-06 08:43:11 +02:00
|
|
|
roadmapItems={roadmapItems}
|
2026-07-05 18:29:47 +02:00
|
|
|
canManage={capabilities.has('kairo.backlog.manage')}
|
|
|
|
|
onCreate={handleCreateBacklog}
|
2026-07-09 11:26:48 +02:00
|
|
|
onUpdate={handleUpdateBacklog}
|
2026-07-05 18:29:47 +02:00
|
|
|
onConvert={handleConvertBacklog}
|
|
|
|
|
onDelete={handleDeleteBacklog}
|
|
|
|
|
busy={formBusy}
|
|
|
|
|
/>
|
|
|
|
|
</>
|
|
|
|
|
)
|
|
|
|
|
}
|