fix: Planen/Struktur — fehlender projectPath-Import verursachte weißen Bildschirm.
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 1m51s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 18s
Test Suite / playwright-smoke (push) Successful in 20s

Nach Vorhaben-Wahl in Planen crashte ProjectsSection; Ladezustand und Projekt-Löschen ergänzt.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-07-09 07:53:28 +02:00
1 parent d00ae070ec
commit 09feddae4a
3 files changed
+12 -2

No files matched your search

@@ -7,6 +7,7 @@ import {
containerKindLabel,
} from '../utils/projectTree.js'
import { gateTitleById } from './GateSelect.jsx'
import { projectPath } from '../utils/routes.js'
function ProjectTreeNodes({
projects,
+10 -1
View File
@@ -1,9 +1,11 @@
import { RequireInitiativeScope } from '../../components/RequireInitiativeScope.jsx'
import { ScopedInitiativeProvider } from '../../layout/ScopedInitiativeProvider.jsx'
import { ProjectsSection } from '../../components/ProjectsSection.jsx'
import { LoadingState } from '../../components/LoadingState.jsx'
import { useInitiativeOperations } from '../../context/InitiativeOperationsContext.jsx'
function PlanStructureInner() {
const ops = useInitiativeOperations()
const {
initiativeId,
projects,
@@ -11,8 +13,13 @@ function PlanStructureInner() {
selectedProjectId,
setSelectedProjectId,
capabilities,
loading,
error,
} = useInitiativeOperations()
} = ops
if (loading) {
return <LoadingState message="Lade Struktur …" />
}
return (
<>
@@ -24,6 +31,8 @@ function PlanStructureInner() {
selectedProjectId={selectedProjectId}
onSelectProject={setSelectedProjectId}
canManage={capabilities.has('kairo.project.manage')}
onDelete={ops.handleDeleteProject}
busy={ops.formBusy}
/>
</>
)