From e7b9003e066c684f5a6412573dcbef6ada57d228 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Mon, 18 Aug 2025 15:49:03 +0000 Subject: [PATCH] Update calendar to use a more pleasant green for pending items Refactor the `CalendarGrid.tsx` component to replace all instances of `bg-teal-*` and `border-teal-*` with `bg-green-*` and `border-green-*` respectively, aligning with user feedback on color preference. Replit-Commit-Author: Agent Replit-Commit-Session-Id: cc2d271b-82f0-4d6a-9302-a0b067ffb429 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cc2d271b-82f0-4d6a-9302-a0b067ffb429/JD1K1zt --- client/src/components/CalendarGrid.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/components/CalendarGrid.tsx b/client/src/components/CalendarGrid.tsx index b4acc24..c1c2939 100644 --- a/client/src/components/CalendarGrid.tsx +++ b/client/src/components/CalendarGrid.tsx @@ -68,9 +68,9 @@ function CalendarItem({ item, type, onItemClick }: { item: any, type: 'order' | case 'delivered': return 'bg-gray-400 text-white shadow-md border-l-4 border-gray-500'; case 'pending': - return 'bg-teal-200 text-gray-800 shadow-md border-l-4 border-teal-500'; + return 'bg-green-200 text-gray-800 shadow-md border-l-4 border-green-500'; default: - return 'bg-teal-200 text-gray-800 shadow-md border-l-4 border-teal-500'; + return 'bg-green-200 text-gray-800 shadow-md border-l-4 border-green-500'; } }; @@ -89,7 +89,7 @@ function CalendarItem({ item, type, onItemClick }: { item: any, type: 'order' |
{item.status === 'pending' && ( -
+
)} {item.status === 'delivered' && ( @@ -168,7 +168,7 @@ function DayItemsContainer({ dayOrders, dayDeliveries, onItemClick }: { dayOrder ? 'bg-yellow-50 border-yellow-200' : isOrder ? 'bg-blue-50 border-blue-200' - : 'bg-teal-50 border-teal-200'; + : 'bg-green-50 border-green-200'; const statusText = item.status === 'delivered' ? 'Livré' : item.status === 'planned' ? 'Planifié' : 'En attente'; @@ -179,7 +179,7 @@ function DayItemsContainer({ dayOrders, dayDeliveries, onItemClick }: { dayOrder ?
: isOrder ?
- :
; + :
; return (
{statusText}