From 68bab7890902a69898e2989323d674cba3124e09 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Mon, 1 Sep 2025 20:31:50 +0000 Subject: [PATCH] Display all pending orders instead of limiting to the last four Modify the Dashboard component to display all pending orders rather than a limited subset of the last four. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 98f01874-e00c-4bbe-9d71-b0b338001848 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/98f01874-e00c-4bbe-9d71-b0b338001848/XDIQsDu --- client/src/pages/Dashboard.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/src/pages/Dashboard.tsx b/client/src/pages/Dashboard.tsx index b4e5692..9e1dc7b 100644 --- a/client/src/pages/Dashboard.tsx +++ b/client/src/pages/Dashboard.tsx @@ -225,15 +225,14 @@ export default function Dashboard() { }) .slice(0, 4) : []; // Afficher les 4 dernières commandes - // Les 4 dernières commandes en attente + // Toutes les commandes en attente const pendingOrders = Array.isArray(allOrders) ? allOrders .filter((order: any) => order.status === 'pending') .sort((a: any, b: any) => { const dateA = safeDate(a.createdAt); const dateB = safeDate(b.createdAt); return (dateB ? dateB.getTime() : 0) - (dateA ? dateA.getTime() : 0); - }) - .slice(0, 4) : []; // Afficher les 4 dernières commandes en attente + }) : []; // Afficher toutes les commandes en attente const upcomingDeliveries = Array.isArray(allDeliveries) ? allDeliveries .filter((d: any) => {