Correctifs UI workflow — specs + implémentation (8 chantiers) #6

Merged
matthieu merged 16 commits from docs/workflow-ui-fixes-specs into develop 2026-05-21 08:48:32 +00:00
Showing only changes of commit 3dc10f8bfb - Show all commits

View File

@@ -79,8 +79,10 @@ const dragOverCategory = ref<StatusCategory | null>(null)
const pendingPicker = ref<{ statuses: TaskStatus[], task: Task, x: number, y: number } | null>(null)
function statusesForTaskCategory(task: Task, category: StatusCategory): TaskStatus[] {
const wf = task.project?.workflow
if (!wf) return []
// GET /tasks n'embarque que l'IRI du workflow ; on résout depuis la liste projects chargée (qui embarque workflow.statuses).
const project = projects.value.find(p => p.id === task.project?.id)
const wf = project?.workflow
if (!wf || typeof wf === 'string') return []
return wf.statuses.filter(s => s.category === category)
}