refactor: simplify BoardContainer and update task management

- Removed initialTasks and initialStats props from KanbanBoardContainer, now using TasksContext for task management.
- Updated useTasks hook to include a simulated delay for sync indicator during task updates.
- Replaced KanbanBoardContainer with HomePageClient in the HomePage component for a cleaner structure.
This commit is contained in:
Julien Froidefond
2025-09-14 09:13:22 +02:00
parent 9193305550
commit edbd82e8ac
5 changed files with 110 additions and 33 deletions

View File

@@ -162,6 +162,9 @@ export function useTasks(
// 3. Appel API en arrière-plan
try {
// Délai artificiel pour voir l'indicateur de sync (à supprimer en prod)
await new Promise(resolve => setTimeout(resolve, 1000));
const response = await tasksClient.updateTask(data);
// Si l'API retourne des données différentes, on met à jour