From ee1e1c0671b7633e73ef89740306e63f3825fe24 Mon Sep 17 00:00:00 2001 From: Lars Date: Fri, 24 Jul 2026 18:04:26 +0200 Subject: [PATCH] fix: Sprint-AP Bearbeiten, Sprint-Verschiebung und klarere Aktionsleiste. Behebt editingActionId-Bug in Plan/Work-Sprint; Schnellzuweisung AP zu anderem Sprint ohne Voll-Reload. Co-authored-by: Cursor --- frontend/src/components/ActionForm.jsx | 15 ++++-- frontend/src/components/ActionHubCard.jsx | 46 ++++++++++++++----- .../src/components/InitiativeActionsHub.jsx | 5 +- .../src/components/SprintTransferSelect.jsx | 46 +++++++++++++++++++ .../context/InitiativeOperationsContext.jsx | 23 ++++++++-- .../initiative/InitiativeExecutionPage.jsx | 12 ++--- frontend/src/pages/modes/PlanSprintPage.jsx | 13 ++++-- frontend/src/pages/modes/WorkSprintPage.jsx | 27 +++++++---- frontend/src/styles/components.css | 31 ++++++++++++- 9 files changed, 178 insertions(+), 40 deletions(-) create mode 100644 frontend/src/components/SprintTransferSelect.jsx 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 && (