diff --git a/frontend/src/components/ActionForm.jsx b/frontend/src/components/ActionForm.jsx index 6731545..9396a84 100644 --- a/frontend/src/components/ActionForm.jsx +++ b/frontend/src/components/ActionForm.jsx @@ -3,6 +3,7 @@ import { ACTION_STATUS_LABELS, PRIORITY_LABELS } from '../constants/status.js' import { ActorSelect } from './ActorSelect.jsx' import { GateSelect } from './GateSelect.jsx' import { flattenLeafProjectOptions, getLeafProjects } from '../utils/projectTree.js' +import { PLANNING_SPRINT_STATUSES } from '../utils/workCycleActions.js' function isoToLocalInput(iso) { if (!iso) return '' @@ -47,7 +48,9 @@ export function ActionForm({ const defaultActors = initial.assigned_actor_ids || [] const leafProjects = getLeafProjects(projects) const projectOptions = flattenLeafProjectOptions(projects) - const cycleOptions = workCycles.filter((c) => c.status !== 'completed') + const cycleOptions = workCycles.filter( + (c) => PLANNING_SPRINT_STATUSES.has(c.status) || c.id === initial.work_cycle_id, + ) const defaultCycleId = initial.work_cycle_id || (activeWorkCycle?.id && !initial.id ? activeWorkCycle.id : '') @@ -108,13 +111,19 @@ export function ActionForm({ /> {cycleOptions.length > 0 && (