AP1.5e: Projekt-Detail, Bearbeitung und Lifecycle in der Ausführung.
Deploy Development / deploy (push) Successful in 43s
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 3s
Test Suite / compose-smoke (push) Has been skipped
Deploy Development / deploy (push) Successful in 43s
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 3s
Test Suite / compose-smoke (push) Has been skipped
Detail-Route mit vollem Formular, Struktur-Navigator statt Inline-CRUD, Lifecycle sichtbar im Vorhaben-Header und auf Ausführung (0.15.1-ap1.5e).
This commit is contained in:
1 parent
94e815e88a
commit
33831a8c2c
13 files changed
+827
-173
No files matched your search
@@ -37,6 +37,7 @@ import {
|
||||
import {
|
||||
listInitiativeProjects,
|
||||
createInitiativeProject,
|
||||
updateProject,
|
||||
deleteProject,
|
||||
} from '../api/projects.js'
|
||||
import {
|
||||
@@ -432,15 +433,30 @@ export function InitiativeOperationsProvider({ children }) {
|
||||
setFormBusy(true)
|
||||
setError(null)
|
||||
try {
|
||||
await createInitiativeProject(id, body)
|
||||
const created = await createInitiativeProject(id, body)
|
||||
try {
|
||||
setProjects(await listInitiativeProjects(id))
|
||||
} catch (refreshErr) {
|
||||
setError(
|
||||
`Projekt angelegt, aber die Liste konnte nicht aktualisiert werden: ${refreshErr.message}`,
|
||||
)
|
||||
return false
|
||||
return created
|
||||
}
|
||||
return created
|
||||
} catch (err) {
|
||||
setError(err.message)
|
||||
return null
|
||||
} finally {
|
||||
setFormBusy(false)
|
||||
}
|
||||
}
|
||||
|
||||
async function handleUpdateProject(projectId, body) {
|
||||
setFormBusy(true)
|
||||
setError(null)
|
||||
try {
|
||||
await updateProject(projectId, body)
|
||||
setProjects(await listInitiativeProjects(id))
|
||||
return true
|
||||
} catch (err) {
|
||||
setError(err.message)
|
||||
@@ -454,9 +470,11 @@ export function InitiativeOperationsProvider({ children }) {
|
||||
try {
|
||||
await deleteProject(projectId)
|
||||
if (selectedProjectId === projectId) setSelectedProjectId('')
|
||||
await load()
|
||||
setProjects(await listInitiativeProjects(id))
|
||||
return true
|
||||
} catch (err) {
|
||||
setError(err.message)
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -647,6 +665,7 @@ export function InitiativeOperationsProvider({ children }) {
|
||||
handleMilestoneStatus: handleRoadmapItemStatus,
|
||||
handleDeleteMilestone: handleDeleteRoadmapItem,
|
||||
handleCreateProject,
|
||||
handleUpdateProject,
|
||||
handleDeleteProject,
|
||||
handleCreateEvidence,
|
||||
handleEvidenceStatus,
|
||||
|
||||
Reference in new issue
Block a user