|
|
@@ -15,7 +15,7 @@ import {
|
|
|
SidebarFooter,
|
|
|
} from "@/components/ui/sidebar";
|
|
|
import { useNavigate } from "react-router-dom";
|
|
|
-import { LayoutDashboard, Phone, BarChart3, Settings, CreditCard, Layers3, PhoneCall, LogOut, Brain, Database, Store, ChevronDown } from "lucide-react";
|
|
|
+import { LayoutDashboard, Phone, BarChart3, Settings, CreditCard, Layers3, PhoneCall, LogOut, Brain, Database, Store, ChevronDown, Package, Globe } from "lucide-react";
|
|
|
import { useAuth } from "@/components/context/AuthContext";
|
|
|
import { useShop } from "@/components/context/ShopContext";
|
|
|
import { useTranslation } from 'react-i18next';
|
|
|
@@ -171,7 +171,7 @@ export function AppSidebar() {
|
|
|
{/* AI Assistant Section */}
|
|
|
<SidebarGroup className="mt-4">
|
|
|
<div className="px-3 py-2 text-xs font-semibold text-slate-500 uppercase tracking-wider">
|
|
|
- {t('sidebar.aiAssistant') || 'AI Assistant'}
|
|
|
+ {t('sidebar.aiAssistant')}
|
|
|
</div>
|
|
|
<SidebarGroupContent>
|
|
|
<SidebarMenu>
|
|
|
@@ -181,7 +181,7 @@ export function AppSidebar() {
|
|
|
<SidebarMenuButton className="w-full justify-start text-slate-300 hover:text-white hover:bg-slate-800/50">
|
|
|
<div className="flex items-center gap-3 px-3 py-2 rounded-lg cursor-pointer w-full">
|
|
|
<Brain className="w-4 h-4" />
|
|
|
- <span className="flex-1">{t('sidebar.aiMenu') || 'AI Configuration'}</span>
|
|
|
+ <span className="flex-1">{t('sidebar.aiMenu')}</span>
|
|
|
<ChevronDown className={`w-4 h-4 transition-transform ${isAIMenuOpen ? 'rotate-180' : ''}`} />
|
|
|
</div>
|
|
|
</SidebarMenuButton>
|
|
|
@@ -197,7 +197,7 @@ export function AppSidebar() {
|
|
|
>
|
|
|
<a onClick={() => navigate('/ai-config')} className="flex items-center gap-2 cursor-pointer">
|
|
|
<Settings className="w-3 h-3" />
|
|
|
- <span>{t('sidebar.configuration') || 'Configuration'}</span>
|
|
|
+ <span>{t('sidebar.configuration')}</span>
|
|
|
</a>
|
|
|
</SidebarMenuSubButton>
|
|
|
</SidebarMenuSubItem>
|
|
|
@@ -205,21 +205,43 @@ export function AppSidebar() {
|
|
|
<SidebarMenuSubButton
|
|
|
asChild
|
|
|
className={`text-slate-300 hover:text-white hover:bg-slate-800/50 ${
|
|
|
- currentPath === '/manage-store-data' ? 'bg-cyan-500/20 text-cyan-400' : ''
|
|
|
+ currentPath === '/products' ? 'bg-cyan-500/20 text-cyan-400' : ''
|
|
|
}`}
|
|
|
>
|
|
|
<a
|
|
|
onClick={() => {
|
|
|
if (selectedShop) {
|
|
|
- navigate(`/manage-store-data?shop=${selectedShop.id}`);
|
|
|
+ navigate(`/products?shop=${selectedShop.id}`);
|
|
|
} else {
|
|
|
- navigate('/manage-store-data');
|
|
|
+ navigate('/products');
|
|
|
}
|
|
|
}}
|
|
|
className="flex items-center gap-2 cursor-pointer"
|
|
|
>
|
|
|
- <Database className="w-3 h-3" />
|
|
|
- <span>{t('sidebar.knowledgeBase') || 'Knowledge Base'}</span>
|
|
|
+ <Package className="w-3 h-3" />
|
|
|
+ <span>{t('sidebar.products')}</span>
|
|
|
+ </a>
|
|
|
+ </SidebarMenuSubButton>
|
|
|
+ </SidebarMenuSubItem>
|
|
|
+ <SidebarMenuSubItem>
|
|
|
+ <SidebarMenuSubButton
|
|
|
+ asChild
|
|
|
+ className={`text-slate-300 hover:text-white hover:bg-slate-800/50 ${
|
|
|
+ currentPath === '/website-content' ? 'bg-cyan-500/20 text-cyan-400' : ''
|
|
|
+ }`}
|
|
|
+ >
|
|
|
+ <a
|
|
|
+ onClick={() => {
|
|
|
+ if (selectedShop) {
|
|
|
+ navigate(`/website-content?shop=${selectedShop.id}`);
|
|
|
+ } else {
|
|
|
+ navigate('/website-content');
|
|
|
+ }
|
|
|
+ }}
|
|
|
+ className="flex items-center gap-2 cursor-pointer"
|
|
|
+ >
|
|
|
+ <Globe className="w-3 h-3" />
|
|
|
+ <span>{t('sidebar.websiteContent')}</span>
|
|
|
</a>
|
|
|
</SidebarMenuSubButton>
|
|
|
</SidebarMenuSubItem>
|