From 6af464eb7033e8672b663b4bf94706fd034bd26f Mon Sep 17 00:00:00 2001 From: alma Date: Sat, 24 Jan 2026 16:00:17 +0100 Subject: [PATCH] Widget Devoir Finition --- components/flow.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/flow.tsx b/components/flow.tsx index 428f519..aada93f 100644 --- a/components/flow.tsx +++ b/components/flow.tsx @@ -28,6 +28,7 @@ interface Task { editFrom?: string; type?: string; dependingTicketId?: number | null; + source?: 'leantime' | 'twenty-crm'; } interface ProjectSummary { @@ -145,7 +146,8 @@ export function Duties() { status: t.status, statusType: typeof t.status, }))); - leantimeTasks = leantimeData; + // Mark tasks with source + leantimeTasks = leantimeData.map((t: Task) => ({ ...t, source: 'leantime' as const })); } } else { console.warn('Failed to fetch Leantime tasks:', leantimeResponse); @@ -156,7 +158,8 @@ export function Duties() { if (twentyCrmResponse.status === 'fulfilled' && twentyCrmResponse.value.ok) { const twentyCrmData = await twentyCrmResponse.value.json(); if (Array.isArray(twentyCrmData)) { - twentyCrmTasks = twentyCrmData; + // Mark tasks with source + twentyCrmTasks = twentyCrmData.map((t: Task) => ({ ...t, source: 'twenty-crm' as const })); } } else { console.warn('Failed to fetch Twenty CRM tasks:', twentyCrmResponse);