From c1bae8a9f7b0e9d5be666a10f4cb44a96380aca7 Mon Sep 17 00:00:00 2001 From: Manus AI Date: Wed, 5 Nov 2025 00:05:46 -0500 Subject: [PATCH] feat: improve calendar UI and widen desktop layout for collaborative workflows - Widen desktop chat/calendar area from 50% to 60% width - Reduce desktop map area from 50% to 40% width - Remove max-width constraint from calendar notepad (now uses full width) - Add visual feedback to calendar icon when active (desktop and mobile) These changes improve the user experience for collaborative geospatial workflows by providing more horizontal space for: - Survey requirements and detailed planning - Multiple collaborator tags and mentions - Location context and future event planning - Better information density and readability The calendar icon now highlights with an accent background when the calendar is open, providing clear visual feedback to users about the current state. All existing functionality is preserved, including: - 7-day sliding date window navigation - Location tagging with MapPin button - Map integration (flyTo functionality) - Chat context integration - Mobile responsive layout (unchanged) Files modified: - components/chat.tsx: Desktop layout width adjustments (60/40 split) - components/calendar-notepad.tsx: Full width usage - components/header.tsx: Calendar icon active state (desktop) - components/mobile-icons-bar.tsx: Calendar icon active state (mobile) --- components/calendar-notepad.tsx | 2 +- components/chat.tsx | 4 ++-- components/header.tsx | 4 ++-- components/mobile-icons-bar.tsx | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/calendar-notepad.tsx b/components/calendar-notepad.tsx index 0c439613..8cc9d44d 100644 --- a/components/calendar-notepad.tsx +++ b/components/calendar-notepad.tsx @@ -91,7 +91,7 @@ export function CalendarNotepad({ chatId }: CalendarNotepadProps) { }; return ( -
+
diff --git a/components/mobile-icons-bar.tsx b/components/mobile-icons-bar.tsx index d1cd17da..1e04be66 100644 --- a/components/mobile-icons-bar.tsx +++ b/components/mobile-icons-bar.tsx @@ -26,7 +26,7 @@ interface MobileIconsBarProps { export const MobileIconsBar: React.FC = ({ onAttachmentClick }) => { const [, setMessages] = useUIState() const { clearChat } = useActions() - const { toggleCalendar } = useCalendarToggle() + const { toggleCalendar, isCalendarOpen } = useCalendarToggle() const handleNewChat = async () => { setMessages([]) @@ -42,7 +42,7 @@ export const MobileIconsBar: React.FC = ({ onAttachmentClic -