diff --git a/app/services/scheduler_service.py b/app/services/scheduler_service.py index 9bceb89..1a6ed28 100644 --- a/app/services/scheduler_service.py +++ b/app/services/scheduler_service.py @@ -10,6 +10,7 @@ from app.services.ai_service import AIService from app.services.item_service import ItemService from app.services.notification_service import NotificationService from app.services.browserless_service import browserless_service +from app.services.tracking_scraper_service import TrackingScraperService, ScrapeConfig logger = logging.getLogger(__name__) scheduler = AsyncIOScheduler() @@ -111,6 +112,7 @@ async def process_item_check(item_id: int): selector=item_data["selector"], item_id=item_id ) + # Determine availability based on content presence # If we got content, we assume available unless proven otherwise diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 134d986..cf7bed8 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -55,12 +55,9 @@ function PublicRoute({ children }) { } function AppRoutes() { - const { theme, toggleTheme } = useTheme(); - const { isAuthenticated } = useAuth(); - return ( <> - + - + } /> } /> diff --git a/frontend/src/components/layout/Layout.jsx b/frontend/src/components/layout/Layout.jsx index 690a190..ed21308 100644 --- a/frontend/src/components/layout/Layout.jsx +++ b/frontend/src/components/layout/Layout.jsx @@ -1,13 +1,13 @@ import React, { useState } from 'react'; import { Link, useLocation, useNavigate } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; -import { LayoutDashboard, Search, TrendingUp, BookOpen, Moon, Sun, Menu, LogOut, Shield, ShoppingBag } from 'lucide-react'; +import { LayoutDashboard, Search, TrendingUp, BookOpen, Menu, LogOut, Shield, ShoppingBag } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Sheet, SheetContent, SheetTrigger } from '@/components/ui/sheet'; import { cn } from '@/lib/utils'; import { useAuth } from '@/hooks/use-auth'; -const Layout = ({ children, theme, toggleTheme }) => { +const Layout = ({ children }) => { const { t } = useTranslation(); const location = useLocation(); const navigate = useNavigate(); @@ -19,6 +19,7 @@ const Layout = ({ children, theme, toggleTheme }) => { navigate('/login'); }; + // Main navigation items (without admin) const navItems = [ { icon: LayoutDashboard, label: t('nav.dashboard'), path: '/' }, { icon: Search, label: t('nav.search') || 'Recherche', path: '/search' }, @@ -27,25 +28,23 @@ const Layout = ({ children, theme, toggleTheme }) => { { icon: BookOpen, label: 'Catalogues', path: '/catalogues' }, ]; - // Add admin link for admin users - if (isAdmin) { - navItems.push({ icon: Shield, label: 'Administration', path: '/admin' }); - } - return ( -
- {/* Sidebar */} -