AP1.12b: Modal-Bearbeitung für Profil, Projekte und Backlog im Plan-Modus.
Deploy Development / deploy (push) Successful in 53s
Test Suite / pytest-backend (push) Successful in 1m47s
Test Suite / lint-backend (push) Successful in 3s
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 12s
Deploy Development / deploy (push) Successful in 53s
Test Suite / pytest-backend (push) Successful in 1m47s
Test Suite / lint-backend (push) Successful in 3s
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 12s
Ersetzt Inline-Formulare durch Dialoge; Scope-Breadcrumb aktualisiert sich nach Profil-Speichern. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
bbadf22d39
commit
e50c04c96f
14 files changed
+529
-135
No files matched your search
@@ -12,6 +12,7 @@ import {
|
||||
getInitiativeSteeringSnapshot,
|
||||
listInitiativeActions,
|
||||
createInitiativeAction,
|
||||
updateInitiative,
|
||||
} from '../api/initiatives.js'
|
||||
import { updateAction, setActionAssignments } from '../api/actions.js'
|
||||
import {
|
||||
@@ -309,6 +310,20 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
}
|
||||
}
|
||||
|
||||
async function handleUpdateInitiative(body) {
|
||||
setFormBusy(true)
|
||||
try {
|
||||
await updateInitiative(id, body)
|
||||
await load()
|
||||
return true
|
||||
} catch (err) {
|
||||
setError(err.message)
|
||||
return false
|
||||
} finally {
|
||||
setFormBusy(false)
|
||||
}
|
||||
}
|
||||
|
||||
async function handleCreateBacklog(body) {
|
||||
setFormBusy(true)
|
||||
try {
|
||||
@@ -321,6 +336,20 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
}
|
||||
}
|
||||
|
||||
async function handleUpdateBacklog(itemId, body) {
|
||||
setFormBusy(true)
|
||||
try {
|
||||
await updateBacklogItem(itemId, body)
|
||||
await load()
|
||||
return true
|
||||
} catch (err) {
|
||||
setError(err.message)
|
||||
return false
|
||||
} finally {
|
||||
setFormBusy(false)
|
||||
}
|
||||
}
|
||||
|
||||
async function handleBacklogGate(itemId, roadmapItemId) {
|
||||
try {
|
||||
await updateBacklogItem(itemId, {
|
||||
@@ -654,6 +683,8 @@ export function InitiativeOperationsProvider({ children, initiativeId: initiativ
|
||||
handleBlockerStatus,
|
||||
handleDeleteBlocker,
|
||||
handleCreateBacklog,
|
||||
handleUpdateBacklog,
|
||||
handleUpdateInitiative,
|
||||
handleBacklogGate,
|
||||
handleBacklogStatus,
|
||||
handleConvertBacklog,
|
||||
|
||||
@@ -78,6 +78,13 @@ export function ProgramScopeProvider({ children }) {
|
||||
setSearchParams({}, { replace: true })
|
||||
}, [setSearchParams])
|
||||
|
||||
const refreshInitiativeMeta = useCallback(() => {
|
||||
if (!initiativeId) return
|
||||
getInitiative(initiativeId)
|
||||
.then((data) => setInitiativeTitle(data.title || ''))
|
||||
.catch(() => setInitiativeTitle(''))
|
||||
}, [initiativeId])
|
||||
|
||||
const applyFromInitiative = useCallback(
|
||||
(id, { keepProject = false } = {}) => {
|
||||
if (!id) return
|
||||
@@ -130,6 +137,7 @@ export function ProgramScopeProvider({ children }) {
|
||||
applyFromProject,
|
||||
applyFromAction,
|
||||
hrefWithScope,
|
||||
refreshInitiativeMeta,
|
||||
hasScope: Boolean(initiativeId),
|
||||
}),
|
||||
[
|
||||
@@ -143,6 +151,7 @@ export function ProgramScopeProvider({ children }) {
|
||||
applyFromProject,
|
||||
applyFromAction,
|
||||
hrefWithScope,
|
||||
refreshInitiativeMeta,
|
||||
],
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user