AP1.12d: Plan-Outline-Knoten Arbeit mit Actions-Liste im Plan-Kontext.
Deploy Development / deploy (push) Successful in 56s
Test Suite / pytest-backend (push) Failing after 1m48s
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
Deploy Development / deploy (push) Successful in 56s
Test Suite / pytest-backend (push) Failing after 1m48s
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
Route /plan/work, Modal-Anlage, Links zu Objektseiten; Outline zeigt Zähler für Eingang und Arbeit. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
a99d4a8974
commit
4f2f801889
9 files changed
+273
-11
No files matched your search
@@ -0,0 +1,64 @@
|
||||
import { RequireInitiativeScope } from '../../components/RequireInitiativeScope.jsx'
|
||||
import { ScopedInitiativeProvider } from '../../layout/ScopedInitiativeProvider.jsx'
|
||||
import { PlanActionsSection } from '../../components/PlanActionsSection.jsx'
|
||||
import { LoadingState } from '../../components/LoadingState.jsx'
|
||||
import { useInitiativeOperations } from '../../context/InitiativeOperationsContext.jsx'
|
||||
import { useProgramScope } from '../../context/ProgramScopeContext.jsx'
|
||||
|
||||
function PlanWorkInner() {
|
||||
const ops = useInitiativeOperations()
|
||||
const { projectId: scopeProjectId } = useProgramScope()
|
||||
const {
|
||||
actions,
|
||||
projects,
|
||||
roadmapItems,
|
||||
capabilities,
|
||||
hideDone,
|
||||
setHideDone,
|
||||
loading,
|
||||
error,
|
||||
formBusy,
|
||||
actors,
|
||||
actorsLoading,
|
||||
actorsError,
|
||||
actorsUsedFallback,
|
||||
reloadActors,
|
||||
handleCreateAction,
|
||||
} = ops
|
||||
|
||||
if (loading) {
|
||||
return <LoadingState message="Lade Arbeitspakete …" />
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
{error && <p className="error">{error}</p>}
|
||||
<PlanActionsSection
|
||||
actions={actions}
|
||||
projects={projects}
|
||||
roadmapItems={roadmapItems}
|
||||
scopeProjectId={scopeProjectId}
|
||||
hideDone={hideDone}
|
||||
onHideDoneChange={setHideDone}
|
||||
canManage={capabilities.has('kairo.action.manage')}
|
||||
onCreateAction={handleCreateAction}
|
||||
actors={actors}
|
||||
actorsLoading={actorsLoading}
|
||||
actorsError={actorsError}
|
||||
actorsUsedFallback={actorsUsedFallback}
|
||||
onReloadActors={reloadActors}
|
||||
busy={formBusy}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export function PlanWorkPage() {
|
||||
return (
|
||||
<RequireInitiativeScope lead="Arbeitspakete gehören zu einem Vorhaben im Scope.">
|
||||
<ScopedInitiativeProvider>
|
||||
<PlanWorkInner />
|
||||
</ScopedInitiativeProvider>
|
||||
</RequireInitiativeScope>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user