From d64ed9bbcd8c4f104251689f92aaff5b086b8c01 Mon Sep 17 00:00:00 2001 From: R0m1k3 Date: Wed, 10 Dec 2025 14:51:22 +0100 Subject: [PATCH] feat: add mobile calendar page to display orders and deliveries --- client/src/pages/mobile/CalendarPage.tsx | 38 +++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/client/src/pages/mobile/CalendarPage.tsx b/client/src/pages/mobile/CalendarPage.tsx index a5a35e4..d4e9382 100644 --- a/client/src/pages/mobile/CalendarPage.tsx +++ b/client/src/pages/mobile/CalendarPage.tsx @@ -313,7 +313,43 @@ export default function MobileCalendarPage() { )} )} + + {/* DEBUG SECTION - VISIBLE ON MOBILE */} +
+

DEBUG INFO:

+

Current Month: {format(currentMonth, 'yyyy-MM')}

+

Store ID: {selectedStoreId ? selectedStoreId : 'None'}

+

Orders: {loadingOrders ? 'Loading...' : orders?.length || 0}

+

Deliveries: {loadingDeliveries ? 'Loading...' : deliveries?.length || 0}

+

Total Events: {events.length}

+

User: {user ? user.username : 'No user'}

+ + {events.length > 0 && ( +
+

First Event Sample:

+

Title: {events[0].title}

+

Raw Date: {String(events[0].date)}

+

Parsed: {new Date(events[0].date).toString()}

+
+ )} +
+ + {event.status} + + )} - + + + + )) + ) +} + + )} + + ); }