diff --git a/attached_assets/image_1755259056135.png b/attached_assets/image_1755259056135.png new file mode 100644 index 0000000..f8db2a5 Binary files /dev/null and b/attached_assets/image_1755259056135.png differ diff --git a/client/src/components/WeatherWidget.tsx b/client/src/components/WeatherWidget.tsx index 55e07cf..b3e6967 100644 --- a/client/src/components/WeatherWidget.tsx +++ b/client/src/components/WeatherWidget.tsx @@ -118,9 +118,6 @@ const WeatherIcon = ({ condition, size = 20 }: { condition: string; size?: numbe }; export default function WeatherWidget() { - const { toast } = useToast(); - const queryClient = useQueryClient(); - const { data: weather, isLoading, error } = useQuery({ queryKey: ['/api/weather/current'], refetchInterval: 30 * 60 * 1000, // Refetch every 30 minutes diff --git a/replit.md b/replit.md index 31c52cf..c7583fe 100644 --- a/replit.md +++ b/replit.md @@ -29,7 +29,7 @@ The platform is built with a clear separation of concerns, utilizing a modern fu - **Data Synchronization:** Logic is implemented to ensure data consistency between development (in-memory storage) and production (PostgreSQL) environments, particularly for order status and relationships. **Feature Specifications:** -- **Weather Integration:** A comprehensive, modern weather interface displays detailed weather conditions sourced directly from the Visual Crossing API with French language support. Features intelligent date comparison using the same day of the week from the previous year for more relevant weather pattern analysis (e.g., Friday August 15, 2025 vs Friday August 16, 2024). Enhanced with automatic geolocation detection allowing users to click a button to auto-detect their city using GPS coordinates and Visual Crossing reverse geocoding API (August 2025). +- **Weather Integration:** A comprehensive, modern weather interface displays detailed weather conditions sourced directly from the Visual Crossing API with French language support. Features intelligent date comparison using the same day of the week from the previous year for more relevant weather pattern analysis (e.g., Friday August 15, 2025 vs Friday August 16, 2024). Enhanced with automatic geolocation detection moved to weather settings utility page for better UX organization. Fixed critical production error by removing unused toast dependencies from weather widget (August 2025). - **Order and Delivery Management:** Full CRUD operations for orders and deliveries, including linking orders to deliveries and managing their statuses. - **Reconciliation:** Functionality for reconciling Bills of Lading (BL) and invoices with immediate UI updates. - **Invoice Verification Cache:** Robust caching system for invoice verification results with automatic expiration and conflict resolution. Enhanced with unique constraint handling and graceful error management for production stability (August 2025). Fixed production SSL certificate errors and fetch timeout loops with enhanced error handling, network timeout protection, and error result caching to prevent infinite retry loops (August 2025).